Re: [SR-Users] database reconnection db_unixodbc

2019-01-26 Thread Karthik Srinivasan
. Thank you. Karthik On Fri, Jan 25, 2019 at 3:16 AM Henning Westerholt wrote: > Am Mittwoch, 23. Januar 2019, 18:13:26 CET schrieb Karthik Srinivasan: > > An update regarding this item: > > > > I have tested release 5.1.x and 5.2.x and neither release resolves the > &g

Re: [SR-Users] database reconnection db_unixodbc

2019-01-23 Thread Karthik Srinivasan
change to resolve this is relatively straightforward. Henning, thanks again for your feedback on this. Karthik On Mon, Jan 21, 2019 at 9:09 AM Karthik Srinivasan wrote: > Henning, > > Thank you for the response. > > I will open an issue and test out the latest releases. &

Re: [SR-Users] database reconnection db_unixodbc

2019-01-21 Thread Karthik Srinivasan
Henning, Thank you for the response. I will open an issue and test out the latest releases. Thanks again for the feedback. Karthik On Sun, Jan 20, 2019 at 9:31 AM Henning Westerholt wrote: > Am Freitag, 18. Januar 2019, 18:28:09 CET schrieb Karthik Srinivasan: > > I am testing how

[SR-Users] database reconnection db_unixodbc

2019-01-18 Thread Karthik Srinivasan
Hello, I am testing how kamailio reacts to various database conditions. One such condition is if the database engine is simply shut down (that is, database server process no longer running, tcp listening socket closed, etc...) I am utilizing the db_unixodbc module to connect to an Informix

Re: [SR-Users] database connections per child process

2018-11-22 Thread Karthik Srinivasan
tails, like the values for some > modparams set for couple of modules(like db_url, sqlcon, ...) > > Cheers, > Daniel > On 22.11.18 05:01, Karthik Srinivasan wrote: > > Hello, > > Is there a formula/algorithm that determines how many TCP connections are > made per chi

[SR-Users] database connections per child process

2018-11-21 Thread Karthik Srinivasan
Hello, Is there a formula/algorithm that determines how many TCP connections are made per child process to a database server defined by sqlops' sqlcon parameter? ex: if i have 1 database on a database server defined by sqlcon, and i have 1 UDP child process, i notice that the child process has

Re: [SR-Users] uri==myself

2018-07-20 Thread Karthik Srinivasan
Please disregard the follow up question i posted. I misled myself in thinking the variables themselves were being populated by defaulted ports. rather it's the check to ==myself that's doing it. thanks again. Karthik On Fri, Jul 20, 2018 at 11:36 AM, Karthik Srinivasan wrote: > One fol

Re: [SR-Users] uri==myself

2018-07-20 Thread Karthik Srinivasan
) that the variable "from_uri" will have a default port set just like the "uri" variable. Thanks, Karthik On Fri, Jul 20, 2018 at 10:26 AM, Karthik Srinivasan wrote: > Yes, i see it defaulting there. Thanks again for the help. > > Karthik > > On Fri, Jul 20,

Re: [SR-Users] uri==myself

2018-07-20 Thread Karthik Srinivasan
t; is set in the r-uri. > > Cheers, > Daniel > > On 20.07.18 06:48, Karthik Srinivasan wrote: > > So, i think i have determined the root cause of my issue: > > Background info: > - I have a request URI of an INVITE that contains no port number. > - My applic

Re: [SR-Users] uri==myself

2018-07-19 Thread Karthik Srinivasan
to change this defaulting behavior; I am just curious where it is set. Thanks, Karthik On Thu, Jul 19, 2018 at 3:37 PM, Karthik Srinivasan wrote: > standby, i have the debug mode spitting out tons of logs now. > > time for me to review. > > will let you know if i need help. > > than

Re: [SR-Users] uri==myself

2018-07-19 Thread Karthik Srinivasan
standby, i have the debug mode spitting out tons of logs now. time for me to review. will let you know if i need help. thanks, karthik On Thu, Jul 19, 2018 at 3:15 PM, Karthik Srinivasan wrote: > Unfortunately same result as before: > > $var(myself) = 0; >if (uri

Re: [SR-Users] uri==myself

2018-07-19 Thread Karthik Srinivasan
es above the regex part isn't supposed to match and hence > correctly returns false. > ... > > } > > route{ > >route(INIT_VARS); > > ... > } > > Thanks, > > Karthik > > On Thu, Jul 19, 2018 at 11:46 AM, Daniel-Constantin Mierla < > mico..

Re: [SR-Users] uri==myself

2018-07-19 Thread Karthik Srinivasan
the next best step, i can pursue that with some advice on how to print that variable. Thanks, Karthik On Thu, Jul 19, 2018 at 12:09 PM, Karthik Srinivasan wrote: > Yes, they are used at the very same place. here is a code snippet of where > i added it for testing purposes: >

Re: [SR-Users] uri==myself

2018-07-19 Thread Karthik Srinivasan
print $var(myself) it prints 1 // in both cases above the regex part isn't supposed to match and hence correctly returns false. ... } route{ route(INIT_VARS); ... } Thanks, Karthik On Thu, Jul 19, 2018 at 11:46 AM, Daniel-Constantin Mierla < mico...@gmail.com> wrote: > Hello, >

Re: [SR-Users] can't assign values to $fU

2018-06-14 Thread Karthik Srinivasan
t's why changes to it are visible. The > corresponding variables pointing to the SIP message buffer are $ou, $oU, ... > Cheers, > Daniel > > On 13.06.18 23:05, Karthik Srinivasan wrote: > > Henning, > > Thanks for the explanation. This does clear it up for me. > > Do

Re: [SR-Users] can't assign values to $fU

2018-06-13 Thread Karthik Srinivasan
or rather a list of the pseudo vars that fall under the special case; assuming this list is smaller. On Wed, Jun 13, 2018 at 4:05 PM, Karthik Srinivasan wrote: > Henning, > > Thanks for the explanation. This does clear it up for me. > > Do you happen to know if there is a list

Re: [SR-Users] can't assign values to $fU

2018-06-13 Thread Karthik Srinivasan
PM, Alex Balashov wrote: > You may need to run msg_apply_changes() before this change is > immediately visible in route script. > > On Wed, Jun 13, 2018 at 12:45:19PM -0500, Karthik Srinivasan wrote: > > > From the online documentation:$fU - From URI username > > > &

[SR-Users] can't assign values to $fU

2018-06-13 Thread Karthik Srinivasan
From the online documentation:$fU - From URI username *$fU* - reference to username in URI of 'From' header It is R/W variable (you can assign values to it directly in configuration file) But i am no able to assign values to $fU. Has anyone experienced this? Snippet of code in the

Re: [SR-Users] count of registered users or count of tls connections

2018-05-23 Thread Karthik Srinivasan
a valid full JSON-RPC document. It can be a > dynamic string with variables. The result of the command can be accessed > via $jsonrpl(key) pseudo variables. > > On Wed, May 23, 2018 at 5:20 PM, Karthik Srinivasan < > ksriniva2...@gmail.com> wrote: > >> Hi Julien, >>

Re: [SR-Users] count of registered users or count of tls connections

2018-05-23 Thread Karthik Srinivasan
ou can retrieve this information using kamcmd > > kamcmd stats.get_statistics all | grep usrloc > kamcmd tls.info > > Not sure what you meant by "via the routing file" > > > > On Wed, May 23, 2018 at 10:32 AM, Karthik Srinivasan < > ksriniva2...@gmail.co

Re: [SR-Users] count of registered users or count of tls connections

2018-05-23 Thread Karthik Srinivasan
PM, Karthik Srinivasan <ksriniva2...@gmail.com > wrote: > Hello, > > Via the routing file i am trying to find access two items: > > > ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/

[SR-Users] count of registered users or count of tls connections

2018-05-23 Thread Karthik Srinivasan
Hello, Via the routing file i am trying to find access two items: ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] logging sip messages

2018-03-15 Thread Karthik Srinivasan
amailio.org/docs/modules/stable/modules/sipdump.html > The look also at siptrace, it can do it to datebase, or, as suggested in > another reply, homer sipcapture project. > > Cheers, > Daniel > > On 02.03.18 21:12, Karthik Srinivasan wrote: > > Hello: > > I am tryi

[SR-Users] logging sip messages

2018-03-02 Thread Karthik Srinivasan
Hello: I am trying to find a simple way to log each and every SIP message that Kamailio receives or Kamailio sends. In a nutshell, here is what i'm trying to accomplish: - log sip message received; log ip address and port of where message was received from - log sip message to be sent or sent;