Re: [SR-Users] Kamailio not increasing cseq
Hello, On 2/20/13 7:44 PM, Camila Troncoso wrote: Hi all, I'm working for a while with Kamailio+Freeswitch as SBC. I have this structure: ** When I make a call from one client connected to LCR, it is route to my SBC and afterwards to his destiny in the cloud passing though a gateway. When the destiny is unreachable, the LCR reroutes the call to another gateway. Sometimes the LCR send this retry again to the SBC , because the second gateway is also in the cloud, but when this happens, FreeSWITCH answer with : 482 Request merged because it detects that is the same call. This is because the second INVITE has the same Call-ID and same Cseq. Kamailio *is not* increasing CSeq. Is there a way to resolve this? it is a second branch, the top via header of the second invite should have a different branch parameter than the previous one. Freeswitch should detect that and handle it as a separate branch of the call, too. Try changing the r-uri a bit and see if works (e.g., set a prefix that you remove it if set), as an workaround. Also, is the CANCEL sent to Freeswitch for first branch? Or is Freeswitch sending a negative reply? Cheers, Daniel -- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, April 16-17, 2013, Berlin - http://conference.kamailio.com - ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Difference between shared and script variable
Hello, On 2/19/13 11:41 PM, Mino Haluz wrote: Thank you very much for this. One question regarding $sht. Does it need locking like $shv does? depends what operation you do. A read does not need locking, a write does not need, but updates that uses itself need. Cheers, Daniel On Thu, Feb 14, 2013 at 8:35 AM, Daniel-Constantin Mierla mico...@gmail.com mailto:mico...@gmail.com wrote: Hello, $shv(...) is referred as shared memory variable because it stores the value in shared memory. That means if you set $shv(x) in one process, you can read its value from another process. You have to be sure you don't have races in setting the variable, that could be achieved with locks from cfgutils. $var(...) is referred as private memory variable because it stores the value in private memory. That means its value is valid in the context of the same process (e.g., use it while processing the same sip message on a single routing block type, like running the main request route block, or reply route block, etc). It is not safe to use it for transactions, like setting it in request route block and reading it in failure route block (use avps for that case). $var(...) is faster to use and does not need locking at all. These are usually referred as script variable, but this term can be confused with all the config file variables. Cheers, Daniel On 2/12/13 3:13 PM, Mino Haluz wrote: Hi, what is the difference between shared and script variable ? Thanks Mino ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org mailto:sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla -http://www.asipto.com http://twitter.com/#!/miconda http://twitter.com/#%21/miconda -http://www.linkedin.com/in/miconda Kamailio World Conference, April 16-17, 2013, Berlin -http://conference.kamailio.com - ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org mailto:sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, April 16-17, 2013, Berlin - http://conference.kamailio.com - ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Weird out-of-memory message on start/stop
My curiosity now, what means the syslog message: ... t of memory [6720] I guess the last is pid. Is it like just last part of OUt of memory? Never had this message so far, iirc. Cheers, Daniel On 2/19/13 11:58 AM, Andreas Granig wrote: Hi, On 02/19/2013 11:26 AM, Andreas Granig wrote: On 02/19/2013 11:24 AM, Andreas Granig wrote: Maybe some of you have encountered this funny error message when starting and even killing kamailio on a Debian 6 with 2.6.x and 3.x kernels and 2.11.3-4: 2.11.3-4 is the libc version, btw. Oh. Setting ulimit -l unlimited does the trick. Andreas ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, April 16-17, 2013, Berlin - http://conference.kamailio.com - ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Errors leading to kamailio proc crash
Can I increase the shared memory when kamailio is still running or configure it somewhere in a configuration file to use x amount of shared memory? The kamailio process is managed by heartbeat/pacemaker as a resource and I was advised not to manually restart a resource which is managed by heartbeat/pacemaker. The virtual server Kamailio is running on is up for 133 days now. But the kamailio process was up for a couple of weeks, since it has been restarted a few times. Where can I find the coredump? From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Daniel-Constantin Mierla Sent: Thursday, February 21, 2013 9:34 AM To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List Subject: Re: [SR-Users] Errors leading to kamailio proc crash Default shared memory is 32MB, that is quite low if you have a lot of traffic. You can increase it with '-m' command line parameter. Try to get a coredump and then send the backtrace. It will help to discover where is the issue, even when out of memory, there should be no crash. For that, use 'ulimit -c unlimited' before starting the sip server. How long it was running? Can it be eventually reproduced? Also, to be sure is not an issue already fixed, upgrade to latest 3.3.x, you don't have to change anything in database or config file. Cheers, Daniel On 2/19/13 2:38 PM, Grant Bagdasarian wrote: Forgot to mention the version: version: kamailio 3.3.1 (i386/linux) 2d0f6f 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, F_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. id: 2d0f6f compiled on 10:35:51 Oct 22 2012 with gcc 4.4.3 From: sr-users-boun...@lists.sip-router.orgmailto:sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Grant Bagdasarian Sent: Tuesday, February 19, 2013 2:36 PM To: sr-users@lists.sip-router.orgmailto:sr-users@lists.sip-router.org Subject: [SR-Users] Errors leading to kamailio proc crash Hello, Last Thursday our kamailio process crashed. There are a lot of memory related errors in there. See attachment for details. Did the machine run out of memory? How do I prevent this from happening again? The machine has 4GB of memory. Regards, Grant ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.orgmailto:sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, April 16-17, 2013, Berlin - http://conference.kamailio.com - ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] msg_apply_changes() in route[RELAY] gets error
Hello, When I used msg_apply_changes(); in route[RELAY] included in request_route, Received ERROR: textopsx [textopsx.c:116]: invalid usage - not in request route. Why? Thanks, Julia. ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] SOS!! Kamailio 3.1.x Load Balancer doesn't work
Dear All, I am trying to use Kamailio 3.1.x server (called LB here) as the Load Balancer for two other Kamailio server (called server01 and server02 here) . Client A - Kamailio LB - Kamailio server01 Client B - Kamailio LB - Kamailio server01 If I dont use LB here , and letting Client A and B connect to Kamailio server01 directly , all the communication is fine. While using Kamailio LB ,without luck, although the sip client A and B get 200 from server01 for Register, they cannot reach each other for Message and Invite. It will be great appreciated if anyone can give a hint. my config for Kamailio LB is as below : == debug=2 # debug level (cmd line: -dd) fork=yes log_stderror=yes # (cmd line: -E) children=2 check_via=no # (cmd. line: -v) dns=off # (cmd. line: -r) rev_dns=off # (cmd. line: -R) port=5060 # for more info: sip_router -h # -- module loading -- mpath=/usr/local/lib64/kamailio/modules_k/:/usr/local/lib64/kamailio/modules/ loadmodule sl.so loadmodule tm.so loadmodule rr.so loadmodule maxfwd.so loadmodule usrloc.so loadmodule registrar.so loadmodule textops.so loadmodule mi_fifo.so loadmodule dispatcher.so loadmodule db_mysql.so # - setting module-specific parameters --- # -- dispatcher params -- modparam(mi_fifo, fifo_name, /tmp/openser_fifo) modparam(dispatcher, db_url,mysql://.@) modparam(usrloc, db_mode, 0) modparam(rr, enable_full_lr, 1) route{ if (!mf_process_maxfwd_header(10)) { sl_send_reply(483,Too Many Hops); exit; }; # if (!method==REGISTER) #record_route(); ds_select_dst(1,4); forward(); exit; } .. == best regards, chanea ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Kamailio not increasing cseq
Hi Daniel, In deed the Ruri is the only difference with the second invite. For the first Invite, I received an “503 Service unavailable” from the gateway , it goues trough the SBC and it is pass to the LCR so it reroutes the call to the second gateway in the cloud. I asked in FreeSWITCH forum for this issue and they said that the problem is Cseq not increasing, Freeswitch doesn’t take Ruri as compare. Regards, Camila *From:* sr-users-boun...@lists.sip-router.org [mailto: sr-users-boun...@lists.sip-router.org] *On Behalf Of *Daniel-Constantin Mierla *Sent:* jueves, 21 de febrero de 2013 5:08 *To:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List *Subject:* Re: [SR-Users] Kamailio not increasing cseq Hello, On 2/20/13 7:44 PM, Camila Troncoso wrote: Hi all, I’m working for a while with Kamailio+Freeswitch as SBC. I have this structure: * * When I make a call from one client connected to LCR, it is route to my SBC and afterwards to his destiny in the cloud passing though a gateway. When the destiny is unreachable, the LCR reroutes the call to another gateway. Sometimes the LCR send this retry again to the SBC , because the second gateway is also in the cloud, but when this happens, FreeSWITCH answer with : “482 Request merged” because it detects that is the same call. This is because the second INVITE has the same Call-ID and same Cseq. Kamailio *is not* increasing CSeq. Is there a way to resolve this? it is a second branch, the top via header of the second invite should have a different branch parameter than the previous one. Freeswitch should detect that and handle it as a separate branch of the call, too. Try changing the r-uri a bit and see if works (e.g., set a prefix that you remove it if set), as an workaround. Also, is the CANCEL sent to Freeswitch for first branch? Or is Freeswitch sending a negative reply? Cheers, Daniel -- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, April 16-17, 2013, Berlin - http://conference.kamailio.com - ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] [sr-dev] SOS!! Kamailio 3.1.x Load Balancer doesn't work
Are the clients behind NAT? If yes, you have to use proper NAT traversal on the LB. Further, for outgoing INVITEs you have to route the requests through the LB, either by static forwarding to the LB or using the Path extension. regards Klaus On 21.02.2013 12:36, chanea wrote: Dear All, I am trying to use Kamailio 3.1.x server (called LB here) as the Load Balancer for two other Kamailio server (called server01 and server02 here) . Client A - Kamailio LB - Kamailio server01 Client B - Kamailio LB - Kamailio server01 If I dont use LB here , and letting Client A and B connect to Kamailio server01 directly , all the communication is fine. While using Kamailio LB ,without luck, although the sip client A and B get 200 from server01 for Register, they cannot reach each other for Message and Invite. It will be great appreciated if anyone can give a hint. my config for Kamailio LB is as below : == debug=2 # debug level (cmd line: -dd) fork=yes log_stderror=yes # (cmd line: -E) children=2 check_via=no # (cmd. line: -v) dns=off # (cmd. line: -r) rev_dns=off # (cmd. line: -R) port=5060 # for more info: sip_router -h # -- module loading -- mpath=/usr/local/lib64/kamailio/modules_k/:/usr/local/lib64/kamailio/modules/ loadmodule sl.so loadmodule tm.so loadmodule rr.so loadmodule maxfwd.so loadmodule usrloc.so loadmodule registrar.so loadmodule textops.so loadmodule mi_fifo.so loadmodule dispatcher.so loadmodule db_mysql.so # - setting module-specific parameters --- # -- dispatcher params -- modparam(mi_fifo, fifo_name, /tmp/openser_fifo) modparam(dispatcher, db_url,mysql://.@) modparam(usrloc, db_mode, 0) modparam(rr, enable_full_lr, 1) route{ if (!mf_process_maxfwd_header(10)) { sl_send_reply(483,Too Many Hops); exit; }; # if (!method==REGISTER) #record_route(); ds_select_dst(1,4); forward(); exit; } .. == best regards, chanea ___ sr-dev mailing list sr-...@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] uac_replace_from / New URI shorter than old URI
Hi, this last weekend we went live from the old 3.0 version to the latest stable release of Kamailio (3,3,0). All went well, except for one issue. We make use of uac_replace_from in our config, in case a client needs CLIR: uac_replace_from(Anonymous,sip:anonymous@anonymous.invalid); Since the upgrade we receive the following error: uac [replace.c:521]: new URI shorter than old URI Which causes the call to be disconnected after about 20/30 seconds. This, because the ACK is received by Kamailio, but cannot be 'linked' to the transaction i guess. What is exactly causing this issue and, more importantly, is there any way to resolve this? Thanks in advance, Regards, Ronald Voermans ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Weird out-of-memory message on start/stop
Hi Daniel, On 02/21/2013 09:38 AM, Daniel-Constantin Mierla wrote: My curiosity now, what means the syslog message: ... t of memory [6720] I guess the last is pid. Is it like just last part of OUt of memory? Never had this message so far, iirc. What I found through debugging is that this message should actually mean out of memory, and it's yielded by libc, I guess during mmap and/or locking the memory (not exactly sure what kamailio does in that regards). Andreas ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] [sr-dev] SOS!! Kamailio 3.1.x Load Balancer doesn't work
Dear Klaus, Thanks for your help. Both the server and clients are behind NAT. After adding NAT traversal on the LB , now the clients are able to talk to each other via MESSAGE method. However, there is another issue that , every time the client A sends one message to the server , the client B gets 3 or 4 copies of it from the server. Any idea how this happen? best regards, chanea On Fri, Feb 22, 2013 at 12:35 AM, Klaus Darilion klaus.mailingli...@pernau.at wrote: Are the clients behind NAT? If yes, you have to use proper NAT traversal on the LB. Further, for outgoing INVITEs you have to route the requests through the LB, either by static forwarding to the LB or using the Path extension. regards Klaus On 21.02.2013 12:36, chanea wrote: Dear All, I am trying to use Kamailio 3.1.x server (called LB here) as the Load Balancer for two other Kamailio server (called server01 and server02 here) . Client A - Kamailio LB - Kamailio server01 Client B - Kamailio LB - Kamailio server01 If I dont use LB here , and letting Client A and B connect to Kamailio server01 directly , all the communication is fine. While using Kamailio LB ,without luck, although the sip client A and B get 200 from server01 for Register, they cannot reach each other for Message and Invite. It will be great appreciated if anyone can give a hint. my config for Kamailio LB is as below : ==** debug=2 # debug level (cmd line: -dd) fork=yes log_stderror=yes # (cmd line: -E) children=2 check_via=no # (cmd. line: -v) dns=off # (cmd. line: -r) rev_dns=off # (cmd. line: -R) port=5060 # for more info: sip_router -h # -- module loading --** mpath=/usr/local/lib64/**kamailio/modules_k/:/usr/** local/lib64/kamailio/modules/ loadmodule sl.so loadmodule tm.so loadmodule rr.so loadmodule maxfwd.so loadmodule usrloc.so loadmodule registrar.so loadmodule textops.so loadmodule mi_fifo.so loadmodule dispatcher.so loadmodule db_mysql.so # - setting module-specific parameters --- # -- dispatcher params -- modparam(mi_fifo, fifo_name, /tmp/openser_fifo) modparam(dispatcher, db_url,mysql://.@..**..) modparam(usrloc, db_mode, 0) modparam(rr, enable_full_lr, 1) route{ if (!mf_process_maxfwd_header(**10)) { sl_send_reply(483,Too Many Hops); exit; }; # if (!method==REGISTER) #record_route(); ds_select_dst(1,4); forward(); exit; } .. ==** best regards, chanea __**_ sr-dev mailing list sr-...@lists.sip-router.org http://lists.sip-router.org/**cgi-bin/mailman/listinfo/sr-**devhttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Weird out-of-memory message on start/stop
Try to look at https://bugzilla.redhat.com/show_bug.cgi?id=803827 and http://forums.cpanel.net/f34/named-wont-start-284821.html#post1191151 2013/2/21 Andreas Granig agra...@sipwise.com Hi Daniel, On 02/21/2013 09:38 AM, Daniel-Constantin Mierla wrote: My curiosity now, what means the syslog message: ... t of memory [6720] I guess the last is pid. Is it like just last part of OUt of memory? Never had this message so far, iirc. What I found through debugging is that this message should actually mean out of memory, and it's yielded by libc, I guess during mmap and/or locking the memory (not exactly sure what kamailio does in that regards). Andreas __**_ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/**cgi-bin/mailman/listinfo/sr-**usershttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Weird out-of-memory message on start/stop
Hi, On 02/21/2013 07:50 PM, Konstantin M. wrote: Try to look at https://bugzilla.redhat.com/show_bug.cgi?id=803827 and http://forums.cpanel.net/f34/named-wont-start-284821.html#post1191151 As noted above, I've found the issue already, which was caused by setting the lock-mem ulimit (the -l switch) too low. Andreas ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] uac_replace_from / New URI shorter than old URI
Responding to myself: attached is an ngrep (made by homer/sipcature server). Some strange things are happening. When I do a ngrep on the Kamailio, I see the ACK gets mangled: SIP UA - Kamalio ACK sip:08000403@10.254.254.20:5060 SIP/2.0. Via: SIP/2.0/UDP 192.168.1.10:56953;branch=z9hG4bK-d8754z-170b73a13fd7a39d-1---d8754z-. Max-Forwards: 70. Route: sip:10.254.254.1;lr;ftag=868b7d56;nat=yes;vsf=czFwOkQpYzVueyNnLEMbCDY6fyo/ejIqLXoQM2IvdwpSA14CTmo8PmQ-. Contact: sip:r.voermans@192.168.1.10:56953;transport=UDP. To: sip:08000403@10.254.254.1;transport=UDP;tag=a94c095b773be1dd6e8d668a785a9c84dac9696f. From: testcalleridsip:r.voermans@10.254.254.1;transport=UDP;tag=868b7d56. Call-ID: YWYwY2M0MTcwM2VmMTUxMTdkMTUwNDFhM2E2NjI3MTg.. CSeq: 2 ACK. Proxy-Authorization: Digest username=r.voermans,realm=10.254.254.1,nonce=USabJ1EmmfuYD+XnJVMqKQkK6/VmiXJ8,uri=sip:08000403@10.254.254.1;transport=UDP,response=25e0d8980c67d1785948a44de4e51b44,algorithm=MD5. User-Agent: Zoiper Communicator 2.04.10164 rev.10204. Content-Length: 0. . Kamailio - SIP UA U 2013/02/21 23:04:52.911391 10.254.254.1:5060 - 10.254.254.20:5060 ACK sip:08000403@10.254.254.20:5060 SIP/2.0. Record-Route: sip:10.254.254.1;lr;ftag=868b7d56;nat=yes. Via: SIP/2.0/UDP 10.254.254.1;branch=z9hG4bKcydzigwkX. Via: SIP/2.0/UDP 192.168.1.10:56953;rport=56953;branch=z9hG4bK-d8754z-170b73a13fd7a39d-1---d8754z-. Max-Forwards: 69. Contact: sip:r.voermans@192.168.1.10:56953;transport=UDP. To: sip:#x)1,+2']..qmu.vinu5l{3(yuvO!y.DP;tag=a94c095b773be1dd6e8d668a785a9c84dac9696f. From: testcalleridsip:anonymous@anonymous.invalid;tag=868b7d56. Call-ID: YWYwY2M0MTcwM2VmMTUxMTdkMTUwNDFhM2E2NjI3MTg.. CSeq: 2 ACK. User-Agent: Zoiper Communicator 2.04.10164 rev.10204. Content-Length: 0. . restore_mode modparam is set to 'auto', and I checked that the vsf in Route-headers are correct. Any clues? Regards, Ronald Op 21 feb. 2013, om 16:49 heeft Ronald Voermans r.voerm...@global-datacenter.nlmailto:r.voerm...@global-datacenter.nl het volgende geschreven: Hi, this last weekend we went live from the old 3.0 version to the latest stable release of Kamailio (3,3,0). All went well, except for one issue. We make use of uac_replace_from in our config, in case a client needs CLIR: uac_replace_from(Anonymous,sip:anonymous@anonymous.invalid); Since the upgrade we receive the following error: uac [replace.c:521]: new URI shorter than old URI Which causes the call to be disconnected after about 20/30 seconds. This, because the ACK is received by Kamailio, but cannot be 'linked' to the transaction i guess. What is exactly causing this issue and, more importantly, is there any way to resolve this? Thanks in advance, Regards, Ronald Voermans ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.orgmailto:sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users U 2013/02/21 21:55:33.436906 192.168.1.10:56953 - 10.254.254.1:5060 INVITE sip:08000403@10.254.254.1;transport=UDP SIP/2.0 Via: SIP/2.0/UDP 192.168.1.10:56953;branch=z9hG4bK-d8754z-6de76e7e5b4b8a20-1---d8754z- Max-Forwards: 69 Contact: sip:r.voermans@192.168.1.10:56953;transport=UDP To: sip:08000403@10.254.254.1;transport=UDP From: testcalleridsip:r.voermans@10.254.254.1;transport=UDP;tag=1c9f8e1e Call-ID: M2ZhNDllNzNkZmNhNzBjOTg5NGZmODdjNGMwZGZkZjQ. CSeq: 1 INVITE Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE Content-Type: application/sdp Supported: replaces, norefersub, extended-refer, X-cisco-serviceuri User-Agent: Zoiper Communicator 2.04.10164 rev.10204 Allow-Events: presence, kpml Content-Length: 230 v=0 o=ZoiperCommunicator_user 0 0 IN IP4 192.168.1.10 s=ZoiperCommunicator_session c=IN IP4 192.168.1.10 t=0 0 m=audio 8000 RTP/AVP 8 101 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=sendrecv U 2013/02/21 21:55:33.436999 10.254.254.1:5060 - 192.168.1.10:56953 SIP/2.0 100 Trying Via: SIP/2.0/UDP 192.168.1.10:56953;branch=z9hG4bK-d8754z-6de76e7e5b4b8a20-1---d8754z-;rport=56953 To: sip:08000403@10.254.254.1;transport=UDP From: testcalleridsip:r.voermans@10.254.254.1;transport=UDP;tag=1c9f8e1e Call-ID: M2ZhNDllNzNkZmNhNzBjOTg5NGZmODdjNGMwZGZkZjQ. CSeq: 1 INVITE Server: kamailio (3.3.3 (x86_64/linux)) Content-Length: 0 U 2013/02/21 21:55:33.437050 10.254.254.1:5060 - 192.168.1.10:56953 SIP/2.0 407 Proxy Authentication Required Via: SIP/2.0/UDP 192.168.1.10:56953;branch=z9hG4bK-d8754z-6de76e7e5b4b8a20-1---d8754z-;rport=56953 To: sip:08000403@10.254.254.1;transport=UDP;tag=f3d9132ccd7454f67ea80bf2bf6bdae6.af7b From: testcalleridsip:r.voermans@10.254.254.1;transport=UDP;tag=1c9f8e1e Call-ID: M2ZhNDllNzNkZmNhNzBjOTg5NGZmODdjNGMwZGZkZjQ. CSeq: 1 INVITE Proxy-Authenticate: Digest realm=10.254.254.1, nonce=USaK8FEmicQNRyuQ84ZPSzcxW6fNxA78 Server: kamailio (3.3.3
[SR-Users] Path and DNS SRV
Hi All, Given a situation where there are multiple registrars, behind a single load balancer, sharing the same location table in DB, I understand that Path can be used to ensure everything works nicely with clients behind NAT. So, if UA1 is registered on P1, UA2 on P2, and UA1 calls UA2... P1 performs lookup, sees path and sends via P2. What about situations where the distribution between registrars is being handled client-side through DNS SRV, not a load balancer? Path cannot be used then, right? As I understand it, in this instance add_path() will do nothing, is this correct? Thanks in advance, Charles -- www.sipcentric.com Follow us on twitter @sipcentric http://twitter.com/sipcentric Sipcentric Ltd. Company registered in England Wales no. 7365592. Registered office: Unit 10 iBIC, Birmingham Science Park, Holt Court South, Birmingham B7 4EJ. ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Update existing module or create new?
Hi, On 06/02/2013 15:16, Henning Westerholt wrote: Am Dienstag, 5. Februar 2013, 13:55:41 schrieb Charles Chance: as the original author of the module I'd think that changing or replacing the existing module would be the way to go. So far I'd not recieved that much of bug reports against the existing module. And as Alex Balashov also mentioned recently, there are some other issues with the current library. If existing users need to stay with the old module, its available in the git and the existing releases, for the new release we should go with a module which supports the newer library. It would be nice if you could stay with the existing PV API, which I modelled somehow after the htable module. If you need to change something, just announce it on the devel list and ask for feedback. We have indeed used the module in the past with no issues - so thank you for writing and sharing :) Very happy to stay with existing PVs if possible. The only thing I'd like to see different is to set value and expiry at the same time, instead of having to set value, then alter expiration. This has to be better than setting a value with some default expiry, getting that same value back again, then re-setting the value once more with a different expiry? Could this be implemented at PV level? Something like $mct(key:expiry) = value? And if expiry is omitted, we use default set in params. Hi Charles, thanks, good to know that you use it. :-) With regards to the expiry value, yes I think this could be implemented like this. Just one remark, the syntax that other PVs uses is =, like in http://www.kamailio.org/wiki/cookbooks/3.3.x/pseudovariables#sht_htable_key Then it would be $mct(key=expiry) = value Best regards, Henning Westerholt We now have an updated memcached module, working with libmemcached and also with the added ability to (optionally) specify expiry in the format $mct(key=expiry). How do we get these changes pushed back into the master? Regards, Charles -- www.sipcentric.com http://www.sipcentric.com/ Follow us on twitter @sipcentric http://twitter.com/sipcentric Sipcentric Ltd. Company registered in England Wales no. 7365592. Registered office: Unit 10 iBIC, Birmingham Science Park, Holt Court South, Birmingham B7 4EJ. ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] [sr-dev] Update existing module or create new?
http://sip-router.org/contribute/ http://sip-router.org/tracker/ Regards, Ovidiu Sas On Thu, Feb 21, 2013 at 5:37 PM, Charles Chance charles.cha...@sipcentric.com wrote: Hi, On 06/02/2013 15:16, Henning Westerholt wrote: Am Dienstag, 5. Februar 2013, 13:55:41 schrieb Charles Chance: as the original author of the module I'd think that changing or replacing the existing module would be the way to go. So far I'd not recieved that much of bug reports against the existing module. And as Alex Balashov also mentioned recently, there are some other issues with the current library. If existing users need to stay with the old module, its available in the git and the existing releases, for the new release we should go with a module which supports the newer library. It would be nice if you could stay with the existing PV API, which I modelled somehow after the htable module. If you need to change something, just announce it on the devel list and ask for feedback. We have indeed used the module in the past with no issues - so thank you for writing and sharing :) Very happy to stay with existing PVs if possible. The only thing I'd like to see different is to set value and expiry at the same time, instead of having to set value, then alter expiration. This has to be better than setting a value with some default expiry, getting that same value back again, then re-setting the value once more with a different expiry? Could this be implemented at PV level? Something like $mct(key:expiry) = value? And if expiry is omitted, we use default set in params. Hi Charles, thanks, good to know that you use it. :-) With regards to the expiry value, yes I think this could be implemented like this. Just one remark, the syntax that other PVs uses is =, like in http://www.kamailio.org/wiki/cookbooks/3.3.x/pseudovariables#sht_htable_key Then it would be $mct(key=expiry) = value Best regards, Henning Westerholt We now have an updated memcached module, working with libmemcached and also with the added ability to (optionally) specify expiry in the format $mct(key=expiry). How do we get these changes pushed back into the master? Regards, Charles -- www.sipcentric.com Follow us on twitter @sipcentric Sipcentric Ltd. Company registered in England Wales no. 7365592. Registered office: Unit 10 iBIC, Birmingham Science Park, Holt Court South, Birmingham B7 4EJ. ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Path and DNS SRV
Hi, you cannot use add_path(), but by creating your own Path header this works, e.g.: append_hf(Path: sip:term@HOSTNAME:+PORT+;lr\r\n); (from our P-CSCF config) Then your Proxy should also evaluate the DNS-SRV records. Kind regards, Carsten -- Carsten Bock CEO (Geschäftsführer) = Die ng-voice GmbH ist auf der Kamailio World 2013, 16./17. April 2013 = http://conference.kamailio.com/k01/= ng-voice GmbH Schomburgstr. 80 D-22767 Hamburg / Germany http://www.ng-voice.com mailto:cars...@ng-voice.com Office +49 40 34927219 Fax +49 40 34927220 Sitz der Gesellschaft: Hamburg Registergericht: Amtsgericht Hamburg, HRB 120189 Geschäftsführer: Carsten Bock Ust-ID: DE279344284 Hier finden Sie unsere handelsrechtlichen Pflichtangaben: http://www.ng-voice.com/imprint/ Hi All, Given a situation where there are multiple registrars, behind a single load balancer, sharing the same location table in DB, I understand that Path can be used to ensure everything works nicely with clients behind NAT. So, if UA1 is registered on P1, UA2 on P2, and UA1 calls UA2... P1 performs lookup, sees path and sends via P2. What about situations where the distribution between registrars is being handled client-side through DNS SRV, not a load balancer? Path cannot be used then, right? As I understand it, in this instance add_path() will do nothing, is this correct? Thanks in advance, Charles www.sipcentric.com Follow us on twitter @sipcentric http://twitter.com/sipcentric Sipcentric Ltd. Company registered in England Wales no. 7365592. Registered office: Unit 10 iBIC, Birmingham Science Park, Holt Court South, Birmingham B7 4EJ. ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Path and DNS SRV
Hi, Thanks for your reply. I did try that, but the path is still not stored in location table on save. I have use_path parameter of registrar module enabled. On 21 February 2013 23:17, Carsten Bock cars...@ng-voice.com wrote: Hi, you cannot use add_path(), but by creating your own Path header this works, e.g.: append_hf(Path: sip:term@HOSTNAME:+PORT+;lr\r\n); (from our P-CSCF config) Then your Proxy should also evaluate the DNS-SRV records. Kind regards, Carsten -- Carsten Bock CEO (Geschäftsführer) = Die ng-voice GmbH ist auf der Kamailio World 2013, 16./17. April 2013 = http://conference.kamailio.com/k01/= ng-voice GmbH Schomburgstr. 80 D-22767 Hamburg / Germany http://www.ng-voice.com mailto:cars...@ng-voice.com Office +49 40 34927219 Fax +49 40 34927220 Sitz der Gesellschaft: Hamburg Registergericht: Amtsgericht Hamburg, HRB 120189 Geschäftsführer: Carsten Bock Ust-ID: DE279344284 Hier finden Sie unsere handelsrechtlichen Pflichtangaben: http://www.ng-voice.com/imprint/ Hi All, Given a situation where there are multiple registrars, behind a single load balancer, sharing the same location table in DB, I understand that Path can be used to ensure everything works nicely with clients behind NAT. So, if UA1 is registered on P1, UA2 on P2, and UA1 calls UA2... P1 performs lookup, sees path and sends via P2. What about situations where the distribution between registrars is being handled client-side through DNS SRV, not a load balancer? Path cannot be used then, right? As I understand it, in this instance add_path() will do nothing, is this correct? Thanks in advance, Charles www.sipcentric.com Follow us on twitter @sipcentric http://twitter.com/sipcentric Sipcentric Ltd. Company registered in England Wales no. 7365592. Registered office: Unit 10 iBIC, Birmingham Science Park, Holt Court South, Birmingham B7 4EJ. ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- www.sipcentric.com Follow us on twitter @sipcentric http://twitter.com/sipcentric Sipcentric Ltd. Company registered in England Wales no. 7365592. Registered office: Unit 10 iBIC, Birmingham Science Park, Holt Court South, Birmingham B7 4EJ. ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] kamailio
Dears, My name is suhaib mehyar, I tried to install kamailio server, and I successfully set it up, it is locally running fine, both audio and video are very good locally but when I call a client that is connected to the server that is exist after my cisco firewall with private ip and the client is exist after his home router both audio and video are not working. Kindly any advice please??? Best Regards, Suhaib Mehyar Skype : suhaib.mehyar Mob :+962 795 161311 ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Path and DNS SRV
If the add the Path header manually, then it is not seen by the registrar/usrloc module, asthe header will only be added when generating the to be forwarded message - and this never happens as the message terminates on the registrar. You could try msg_apply_changes() after adding the Path header. regards Klaus http://kamailio.org/docs/modules/3.3.x/modules/textopsx.html#textopsx.msg_apply_changes On 22.02.2013 00:33, Charles Chance wrote: Hi, Thanks for your reply. I did try that, but the path is still not stored in location table on save. I have use_path parameter of registrar module enabled. On 21 February 2013 23:17, Carsten Bock cars...@ng-voice.com mailto:cars...@ng-voice.com wrote: Hi, you cannot use add_path(), but by creating your own Path header this works, e.g.: append_hf(Path: sip:term@HOSTNAME:+PORT+;lr\r\n); (from our P-CSCF config) Then your Proxy should also evaluate the DNS-SRV records. Kind regards, Carsten -- Carsten Bock CEO (Geschäftsführer) = Die ng-voice GmbH ist auf der Kamailio World 2013, 16./17. April 2013 = http://conference.kamailio.com/k01/= ng-voice GmbH Schomburgstr. 80 D-22767 Hamburg / Germany http://www.ng-voice.com mailto:cars...@ng-voice.com mailto:cars...@ng-voice.com Office +49 40 34927219 Fax +49 40 34927220 Sitz der Gesellschaft: Hamburg Registergericht: Amtsgericht Hamburg, HRB 120189 Geschäftsführer: Carsten Bock Ust-ID: DE279344284 Hier finden Sie unsere handelsrechtlichen Pflichtangaben: http://www.ng-voice.com/imprint/ Hi All, Given a situation where there are multiple registrars, behind a single load balancer, sharing the same location table in DB, I understand that Path can be used to ensure everything works nicely with clients behind NAT. So, if UA1 is registered on P1, UA2 on P2, and UA1 calls UA2... P1 performs lookup, sees path and sends via P2. What about situations where the distribution between registrars is being handled client-side through DNS SRV, not a load balancer? Path cannot be used then, right? As I understand it, in this instance add_path() will do nothing, is this correct? Thanks in advance, Charles www.sipcentric.com http://www.sipcentric.com/ Follow us on twitter @sipcentric http://twitter.com/sipcentric Sipcentric Ltd. Company registered in England Wales no. 7365592. Registered office: Unit 10 iBIC, Birmingham Science Park, Holt Court South, Birmingham B7 4EJ. ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org mailto:sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org mailto:sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users www.sipcentric.com http://www.sipcentric.com/ Follow us on twitter @sipcentric http://twitter.com/sipcentric Sipcentric Ltd. Company registered in England Wales no. 7365592. Registered office: Unit 10 iBIC, Birmingham Science Park, Holt Court South, Birmingham B7 4EJ. ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users