Re: [SR-Users] commands out of sync you can't run this command now

2011-12-12 Thread MingHon
im using version: kamailio 3.1.4 (i386/linux) after kamctl start it return INFO: Starting Kamailio : INFO: started (pid: 3589) ps aux | grep 3589 root 3609 0.0 0.0 4012 704 pts/0S+ 15:48 0:00 grep 3589 here is the log message. Dec 13 15:43:41 hostname /usr/local/sbin/kamailio[

Re: [SR-Users] set host as inactive and probing in dispatcher

2011-12-12 Thread Uri Shacked
I installed with those instructions once... from scratch I thought mayby there is a quicker way (like update in windows msi. :-)) when my system is already configured nicely.. Thanks, I must say i think kamailio is great !! a real SIP application server, perfect for many implementations. C

Re: [SR-Users] commands out of sync you can't run this command now

2011-12-12 Thread Daniel-Constantin Mierla
Hello, On 12/12/11 4:09 PM, MingHon wrote: btw im using kamailio 3.1 which one exactly? Just send output of 'kamailio -V'. Also, watch the log messages with debug=3 and get the one related to the error messages to see which module is executing that command. Cheers, Daniel, On Mon, Dec

Re: [SR-Users] commands out of sync you can't run this command now

2011-12-12 Thread MingHon
btw im using kamailio 3.1 On Mon, Dec 12, 2011 at 11:08 PM, MingHon wrote: > Hi List, > > im doing a fresh install, everything installed successfully but when > > i try to start kamailio with kamctl start i receive this error. > > when im using mysql 5.5 rpm version i get this error > > if

[SR-Users] commands out of sync you can't run this command now

2011-12-12 Thread MingHon
Hi List, im doing a fresh install, everything installed successfully but when i try to start kamailio with kamctl start i receive this error. when im using mysql 5.5 rpm version i get this error if install with mysql 5.0 rpm i dont receive that error it run perfectly. is mysql 5.5 incompat

Re: [SR-Users] set host as inactive and probing in dispatcher

2011-12-12 Thread Daniel-Constantin Mierla
Hello, On 12/12/11 1:35 PM, Uri Shacked wrote: thanks, since i am not so good with linux... :-( sorry after doing GIT like : # git clone –depth 1 git://git.sip-router.org/sip-router kamailio # cd kamailio # git checkout -b 3.2 origin/3.2 # m

Re: [SR-Users] Via header branch parameter in ACK message not unique

2011-12-12 Thread Daniel-Constantin Mierla
Hello, On 12/12/11 12:02 PM, Phillman25 Kyriacou wrote: Dear Daniel Thanks, this worked! I will inform my carrier that they are handling the ACK 200 message wrong. just one question: the syn_branch=0 is used for only stateless ACK messages? it is used for all stateless forwarded requests. By i

Re: [SR-Users] set host as inactive and probing in dispatcher

2011-12-12 Thread Uri Shacked
thanks, since i am not so good with linux... :-( sorry after doing GIT like : # git clone –depth 1 git://git.sip-router.org/sip-router kamailio # cd kamailio # git checkout -b 3.2 origin/3.2 # make FLAVOUR=kamailio cfg what do i do next? make install? On Mon, Dec 12, 2011 at 12:18 PM, Da

Re: [SR-Users] 503 on DB Error

2011-12-12 Thread Daniel-Constantin Mierla
Hello, On 12/12/11 10:46 AM, Alex Hermann wrote: On Monday 12 December 2011, Daniel-Constantin Mierla wrote: On 12/10/11 11:36 AM, Olle E. Johansson wrote: I have been thinking about this as well. We could implement a db_ping function so we could test in the routing script before calling funct

Re: [SR-Users] 503 on DB Error

2011-12-12 Thread Olle E. Johansson
12 dec 2011 kl. 11:26 skrev Daniel-Constantin Mierla: > Hello, > > On 12/12/11 10:49 AM, Olle E. Johansson wrote: >> 12 dec 2011 kl. 10:33 skrev Daniel-Constantin Mierla: >> >>> Hello, >>> >>> On 12/10/11 11:36 AM, Olle E. Johansson wrote: 9 dec 2011 kl. 18:54 skrev Spencer Thomason:

Re: [SR-Users] route return value confusion

2011-12-12 Thread Daniel-Constantin Mierla
Hello, On 12/12/11 10:45 AM, Juha Heinanen wrote: Daniel-Constantin Mierla writes: cannot test it for now personally, but what you get if you do: route(TEST_ROUTE_MINUS_ONE); $var(r) = $rc; xlog("returned code by route minus one is: $var(r)\n"); Maybe this will give some leads I can follow

Re: [SR-Users] 503 on DB Error

2011-12-12 Thread Daniel-Constantin Mierla
Hello, On 12/12/11 10:49 AM, Olle E. Johansson wrote: 12 dec 2011 kl. 10:33 skrev Daniel-Constantin Mierla: Hello, On 12/10/11 11:36 AM, Olle E. Johansson wrote: 9 dec 2011 kl. 18:54 skrev Spencer Thomason: Hello all, Is it possible to configure Kamailio to reply to a request with a 503 if

Re: [SR-Users] route return value confusion

2011-12-12 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > cannot test it for now personally, but what you get if you do: > > route(TEST_ROUTE_MINUS_ONE); > > $var(r) = $rc; > > xlog("returned code by route minus one is: $var(r)\n"); > > Maybe this will give some leads I can follow in the code... daniel, i correctl

Re: [SR-Users] set host as inactive and probing in dispatcher

2011-12-12 Thread Daniel-Constantin Mierla
Hello, you have to upgrade to 3.2.1 (or use the latest git branch 3.2). The current keepalive mechanism was refactored a bit after the release of 3.2.0, as they were overlapping cases. Cheers, Daniel On 12/12/11 11:13 AM, Uri Shacked wrote: version : version: kamailio 3.2.0 (i386/linux) e19

Re: [SR-Users] route return value confusion

2011-12-12 Thread Morten Isaksen
I had a similar problem with avp_db_query if (avp_db_query(...) == -2) { xlog("..."); } did not work, but $var(r) = avp_db_query(); if ($var(r) == -2) { xlog("..."); } did work. /Morten On Sat, Dec 10, 2011 at 3:16 PM, Juha Heinanen wrote: > i have defined two routes: > > route [TES

Re: [SR-Users] set host as inactive and probing in dispatcher

2011-12-12 Thread Uri Shacked
version : version: kamailio 3.2.0 (i386/linux) e19bb8 flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DS

Re: [SR-Users] Music on hold with freeswitch as SBC

2011-12-12 Thread Olle E. Johansson
12 dec 2011 kl. 10:45 skrev Daniel-Constantin Mierla: > Hello, > > On 12/9/11 9:04 PM, Gautam Batra wrote: >> Hello, >> >> I have a kamailio sip proxy server with freeswitch acting as SBC. I want to >> redirect the call to freeswitch when hold is pressed so that i can play >> music on hold. I

Re: [SR-Users] 503 on DB Error

2011-12-12 Thread Olle E. Johansson
12 dec 2011 kl. 10:33 skrev Daniel-Constantin Mierla: > Hello, > > On 12/10/11 11:36 AM, Olle E. Johansson wrote: >> 9 dec 2011 kl. 18:54 skrev Spencer Thomason: >> >>> Hello all, >>> Is it possible to configure Kamailio to reply to a request with a 503 if it >>> cannot connect to a necessary

Re: [SR-Users] 503 on DB Error

2011-12-12 Thread Alex Hermann
On Monday 12 December 2011, Daniel-Constantin Mierla wrote: > On 12/10/11 11:36 AM, Olle E. Johansson wrote: > > I have been thinking about this as well. We could implement a db_ping > > function so we could test in the routing script before calling functions > > that use the DB. It's harder with s

Re: [SR-Users] Music on hold with freeswitch as SBC

2011-12-12 Thread Daniel-Constantin Mierla
Hello, On 12/9/11 9:04 PM, Gautam Batra wrote: Hello, I have a kamailio sip proxy server with freeswitch acting as SBC. I want to redirect the call to freeswitch when hold is pressed so that i can play music on hold. I tried this by using rewritehostport in case of a re-invite, but the call

Re: [SR-Users] route return value confusion

2011-12-12 Thread Daniel-Constantin Mierla
Hello, cannot test it for now personally, but what you get if you do: route(TEST_ROUTE_MINUS_ONE); $var(r) = $rc; xlog("returned code by route minus one is: $var(r)\n"); Maybe this will give some leads I can follow in the code... Cheers, Daniel On 12/10/11 3:16 PM, Juha Heinanen wrote: i

Re: [SR-Users] 503 on DB Error

2011-12-12 Thread Daniel-Constantin Mierla
Hello, On 12/10/11 11:36 AM, Olle E. Johansson wrote: 9 dec 2011 kl. 18:54 skrev Spencer Thomason: Hello all, Is it possible to configure Kamailio to reply to a request with a 503 if it cannot connect to a necessary database for the operation? I.e. Kamailio cannot connect to the database, w

Re: [SR-Users] use of $stat(name)

2011-12-12 Thread Daniel-Constantin Mierla
Hello, On 12/12/11 10:17 AM, Uri Shacked wrote: hi, anyone knows what is the options to use $stat ? in siremis there are some examples. but, where can i see what kind of names can i write in the (name) part and what kind of info do they give? using $stat(x) can be done if you load pv module.

Re: [SR-Users] Via header branch parameter in ACK message not unique

2011-12-12 Thread Daniel-Constantin Mierla
Hello, On 12/12/11 8:18 AM, Phillman25 Kyriacou wrote: Dear List I'm currently facing an issue with a carrier whereby they are complaining that the via header branch parameter (sip.Via.branch == "z9hG4bKcydzigwkX") in the ACK messages is not unique which results in some calls being successf

[SR-Users] use of $stat(name)

2011-12-12 Thread Uri Shacked
hi, anyone knows what is the options to use $stat ? in siremis there are some examples. but, where can i see what kind of names can i write in the (name) part and what kind of info do they give? thanks, Uri ___ SIP Express Router (SER) and Kamailio (Ope

Re: [SR-Users] set host as inactive and probing in dispatcher

2011-12-12 Thread Daniel-Constantin Mierla
Hello, cn you give output of 'kamailio -V' and the log messages with debug=3 in config file? Note that from the moment you set the gateway in some state and you dump the list via mi, there can be keepalives that change the state. Cheers, Daniel On 12/11/11 3:42 PM, Uri Shacked wrote: Hi,