Re: [SR-Users] Recommended configuration for TCP support
In general, it happens in our network (as more and more Via headers are added). Sorry, I didn't understand your last sentence. What do you mean by not connect if there is no active connection after location lookup? From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Daniel-Constantin Mierla Sent: Monday, May 04, 2015 11:07 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Recommended configuration for TCP support Hello, where are typically those issues with truncated SDP? On the phones? If you use tcp and have phones behind the nat, it is recommended to not connect if there is no active connection after location lookup -- see core functions for tcp. Cheers, Daniel On 04/05/15 13:54, Mickael Marrache wrote: Hi, We sometimes get issues caused by truncated SDP bodies. Therefore, we are looking at using TCP instead of UDP. What is the recommended configuration when TCP is used? Currently, I only have the following: children=16 listen=udp:ip:5060 listen=tcp:ip:5060 disable_tcp=no tcp_connection_lifetime=605 (registration expiry is 600) Also, is there a difference with UDP regarding NAT handling? Thanks, Mickael ___ 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://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, May 27-29, 2015 Berlin, Germany - http://www.kamailioworld.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] Double record routes
That is normal behaviour if double RR is enabled in the RR module; two Record-Routes will be added if Kamailio is multihomed and the invite exits a different interface to the one it entered.--AlexBalashov|Principal|EvaristeSystemsLLC303PerimeterCenterNorth,Suite300Atlanta,GA30346UnitedStatesTel:+1-800-250-5920(toll-free)/+1-678-954-0671(direct)Web:http://www.evaristesys.com/,http://www.csrpswitch.com/SentfrommyBlackBerry.From: Mickael MarracheSent: Tuesday, May 5, 2015 08:27To: sr-users@lists.sip-router.orgReply To: Kamailio (SER) - Users Mailing ListSubject: [SR-Users] Double record routesHi,We are adding TCP support to our load balancer and for some reason it adds two record route headers.The instance have two IP addresses on which it binds: one if the VIP address and the second is the non-VIP address.I explicitly set the tcp_source_ipv4 parameter with the VIP address so that it is used as source address for outbound TCP connection.So, we get the following INVITE going from the load balancer to a proxy:T 2015/05/05 12:08:49.715822 VIP:54667 - PROXY:5060 [AP]INVITE sip:1...@mycompany.com SIP/2.0.Record-Route: sip:NONVIP;transport=tcp;r2=on;lr.Record-Route: sip:VIP;transport=tcp;r2=on;lr.Via: SIP/2.0/TCP NONVIP;branch=z9hG4bK6f4.688efa90a17e02181ef7a11fecf8bb72.0;i=3.Via: SIP/2.0/TCP 1.1.1.1:4598;received=2.2.2.2;branch=z9hG4bKmqFaCxNo6m3f5LW4;rport=40020.You can see the INVITE is sent from the VIP address (as specified using the tcp_source_ipv4 parameter). However, the added Via corresponds to the non-VIP address. Also, you can see the two record route headers added for both addresses.Any idea?Thanks,Mickael ___ 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] Double record routes
Here, there are 2 interfaces but only the VIP should be used. Also, the INVITE exits the same interface it entered (i.e. the VIP) but exits with a different source port (because of the TCP connection). I tried disabling double RR, I only see the VIP record route now, however I still see the top Via with the non-VIP interface although the INVITE is forwarded to the proxy using the VIP interface. From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Tuesday, May 05, 2015 3:31 PM To: Mickael Marrache; sr-users@lists.sip-router.org Subject: Re: [SR-Users] Double record routes That is normal behaviour if double RR is enabled in the RR module; two Record-Routes will be added if Kamailio is multihomed and the invite exits a different interface to the one it entered. -- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ Sent from my BlackBerry. From: Mickael Marrache Sent: Tuesday, May 5, 2015 08:27 To: sr-users@lists.sip-router.org Reply To: Kamailio (SER) - Users Mailing List Subject: [SR-Users] Double record routes Hi, We are adding TCP support to our load balancer and for some reason it adds two record route headers. The instance have two IP addresses on which it binds: one if the VIP address and the second is the non-VIP address. I explicitly set the tcp_source_ipv4 parameter with the VIP address so that it is used as source address for outbound TCP connection. So, we get the following INVITE going from the load balancer to a proxy: T 2015/05/05 12:08:49.715822 VIP:54667 - PROXY:5060 [AP] INVITE sip:1...@mycompany.com SIP/2.0. Record-Route: sip:NONVIP;transport=tcp;r2=on;lr. Record-Route: sip:VIP;transport=tcp;r2=on;lr. Via: SIP/2.0/TCP NONVIP;branch=z9hG4bK6f4.688efa90a17e02181ef7a11fecf8bb72.0;i=3. Via: SIP/2.0/TCP 1.1.1.1:4598;received=2.2.2.2;branch=z9hG4bKmqFaCxNo6m3f5LW4;rport=40020. You can see the INVITE is sent from the VIP address (as specified using the tcp_source_ipv4 parameter). However, the added Via corresponds to the non-VIP address. Also, you can see the two record route headers added for both addresses. Any idea? Thanks, Mickael ___ 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] hash table not loading
Hello, I get the result: kamailio # kamcmd htable.dump abc error: 500 - No such htable -Olli On 5.5.2015 10:19, Daniel-Constantin Mierla wrote: Hello, can you list the content of the table 'abc'? Cheers, Daniel On 04/05/15 21:44, Olli Attila wrote: Hello, I am trying to load a test hash table on kamailio startup but I keep getting the following error with kamctl after i restart Kamailio and try to list all the tables in memory: kamcmd htable.listTables error: 500 - No htables I have the following configured in kamailio.cfg: # loading the htable module loadmodule htable.so # - htable params - modparam(htable, htable, abc=size=8;autoexpire=0;dbtable=htable;) modparam(htable, db_url, DBURL) modparam(htable, fetch_rows, 1000) The DBURL is pointed to the kamailio database on the same machine. #!ifndef DBURL #!define DBURL mysql://kamailio:kamailiorw@localhost/kamailio #!endif I have also added the following values for testing purposes to the kamailio.htable: id key_namekey_type value_type key_value expires -- -- -- - - 1 test 0 0 12345 0 Is there anything else that i might be missing here? Im running kamailio v.4.2.4. Cheers, -- Olli ___ 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] hash table not loading
Hello, I get the result: kamailio # kamcmd htable.dump abc error: 500 - No such htable --Olli On 5.5.2015 10:19, Daniel-Constantin Mierla wrote: Hello, can you list the content of the table 'abc'? Cheers, Daniel On 04/05/15 21:44, Olli Attila wrote: Hello, I am trying to load a test hash table on kamailio startup but I keep getting the following error with kamctl after i restart Kamailio and try to list all the tables in memory: kamcmd htable.listTables error: 500 - No htables I have the following configured in kamailio.cfg: # loading the htable module loadmodule htable.so # - htable params - modparam(htable, htable, abc=size=8;autoexpire=0;dbtable=htable;) modparam(htable, db_url, DBURL) modparam(htable, fetch_rows, 1000) The DBURL is pointed to the kamailio database on the same machine. #!ifndef DBURL #!define DBURL mysql://kamailio:kamailiorw@localhost/kamailio #!endif I have also added the following values for testing purposes to the kamailio.htable: id key_namekey_type value_type key_value expires -- -- -- - - 1 test 0 0 12345 0 Is there anything else that i might be missing here? Im running kamailio v.4.2.4. Cheers, -- Olli ___ 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] hash table not loading
Hello, can you check that you have no improper #!ifdef conditions? Maybe the part of the config related to htable is not enabled. Cheers, Daniel On 05/05/15 16:22, Olli Attila wrote: Hello, I get the result: kamailio # kamcmd htable.dump abc error: 500 - No such htable --Olli On 5.5.2015 10:19, Daniel-Constantin Mierla wrote: Hello, can you list the content of the table 'abc'? Cheers, Daniel On 04/05/15 21:44, Olli Attila wrote: Hello, I am trying to load a test hash table on kamailio startup but I keep getting the following error with kamctl after i restart Kamailio and try to list all the tables in memory: kamcmd htable.listTables error: 500 - No htables I have the following configured in kamailio.cfg: # loading the htable module loadmodule htable.so # - htable params - modparam(htable, htable, abc=size=8;autoexpire=0;dbtable=htable;) modparam(htable, db_url, DBURL) modparam(htable, fetch_rows, 1000) The DBURL is pointed to the kamailio database on the same machine. #!ifndef DBURL #!define DBURL mysql://kamailio:kamailiorw@localhost/kamailio #!endif I have also added the following values for testing purposes to the kamailio.htable: id key_namekey_type value_type key_value expires -- -- -- - - 1 test 0 0 12345 0 Is there anything else that i might be missing here? Im running kamailio v.4.2.4. Cheers, -- Olli ___ 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://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, May 27-29, 2015 Berlin, Germany - http://www.kamailioworld.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] hash table not loading
Hello, Problem solved. I had improper #!ifdef conditions defined and therefore the htable definitions were not enabled. Thank you Daniel. -Olli On 5.5.2015 18:48, Daniel-Constantin Mierla wrote: Hello, can you check that you have no improper #!ifdef conditions? Maybe the part of the config related to htable is not enabled. Cheers, Daniel On 05/05/15 16:22, Olli Attila wrote: Hello, I get the result: kamailio # kamcmd htable.dump abc error: 500 - No such htable --Olli On 5.5.2015 10:19, Daniel-Constantin Mierla wrote: Hello, can you list the content of the table 'abc'? Cheers, Daniel On 04/05/15 21:44, Olli Attila wrote: Hello, I am trying to load a test hash table on kamailio startup but I keep getting the following error with kamctl after i restart Kamailio and try to list all the tables in memory: kamcmd htable.listTables error: 500 - No htables I have the following configured in kamailio.cfg: # loading the htable module loadmodule htable.so # - htable params - modparam(htable, htable, abc=size=8;autoexpire=0;dbtable=htable;) modparam(htable, db_url, DBURL) modparam(htable, fetch_rows, 1000) The DBURL is pointed to the kamailio database on the same machine. #!ifndef DBURL #!define DBURL mysql://kamailio:kamailiorw@localhost/kamailio #!endif I have also added the following values for testing purposes to the kamailio.htable: id key_namekey_type value_type key_value expires -- -- -- - - 1 test 0 0 12345 0 Is there anything else that i might be missing here? Im running kamailio v.4.2.4. Cheers, -- Olli ___ 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
[SR-Users] Double record routes
Hi, We are adding TCP support to our load balancer and for some reason it adds two record route headers. The instance have two IP addresses on which it binds: one if the VIP address and the second is the non-VIP address. I explicitly set the tcp_source_ipv4 parameter with the VIP address so that it is used as source address for outbound TCP connection. So, we get the following INVITE going from the load balancer to a proxy: T 2015/05/05 12:08:49.715822 VIP:54667 - PROXY:5060 [AP] INVITE sip:1...@mycompany.com SIP/2.0. Record-Route: sip:NONVIP;transport=tcp;r2=on;lr. Record-Route: sip:VIP;transport=tcp;r2=on;lr. Via: SIP/2.0/TCP NONVIP;branch=z9hG4bK6f4.688efa90a17e02181ef7a11fecf8bb72.0;i=3. Via: SIP/2.0/TCP 1.1.1.1:4598;received=2.2.2.2;branch=z9hG4bKmqFaCxNo6m3f5LW4;rport=40020. You can see the INVITE is sent from the VIP address (as specified using the tcp_source_ipv4 parameter). However, the added Via corresponds to the non-VIP address. Also, you can see the two record route headers added for both addresses. Any idea? Thanks, Mickael ___ 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] Double record routes
Hello, do you have mhomed enabled? Are there routes from both IP addresses to the destination? IIRC, not that long ago I pointed to some article about linux not ensuring what would be the local ip used for tcp connections when many interfaces are having routes to destination. I couldn't find it quickly now, though. What you can try is to force advertised address with: listen=tcp:1.2.3.4:5060 advertise 1.2.3.4:5060 Cheers, Daniel On 05/05/15 15:02, Mickael Marrache wrote: Here, there are 2 interfaces but only the VIP should be used. Also, the INVITE exits the same interface it entered (i.e. the VIP) but exits with a different source port (because of the TCP connection). I tried disabling double RR, I only see the VIP record route now, however I still see the top Via with the non-VIP interface although the INVITE is forwarded to the proxy using the VIP interface. *From:*sr-users [mailto:sr-users-boun...@lists.sip-router.org] *On Behalf Of *Alex Balashov *Sent:* Tuesday, May 05, 2015 3:31 PM *To:* Mickael Marrache; sr-users@lists.sip-router.org *Subject:* Re: [SR-Users] Double record routes That is normal behaviour if double RR is enabled in the RR module; two Record-Routes will be added if Kamailio is multihomed and the invite exits a different interface to the one it entered. -- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ Sent from my BlackBerry. *From: *Mickael Marrache *Sent: *Tuesday, May 5, 2015 08:27 *To: *sr-users@lists.sip-router.org mailto:sr-users@lists.sip-router.org *Reply To: *Kamailio (SER) - Users Mailing List *Subject: *[SR-Users] Double record routes Hi, We are adding TCP support to our load balancer and for some reason it adds two record route headers. The instance have two IP addresses on which it binds: one if the VIP address and the second is the non-VIP address. I explicitly set the tcp_source_ipv4 parameter with the VIP address so that it is used as source address for outbound TCP connection. So, we get the following INVITE going from the load balancer to a proxy: T 2015/05/05 12:08:49.715822 VIP:54667 - PROXY:5060 [AP] INVITE sip:1...@mycompany.com SIP/2.0. Record-Route: sip:NONVIP;transport=tcp;r2=on;lr. Record-Route: sip:VIP;transport=tcp;r2=on;lr. Via: SIP/2.0/TCP NONVIP;branch=z9hG4bK6f4.688efa90a17e02181ef7a11fecf8bb72.0;i=3. Via: SIP/2.0/TCP 1.1.1.1:4598;received=2.2.2.2;branch=z9hG4bKmqFaCxNo6m3f5LW4;rport=40020. You can see the INVITE is sent from the VIP address (as specified using the tcp_source_ipv4 parameter). However, the added Via corresponds to the non-VIP address. Also, you can see the two record route headers added for both addresses. Any idea? Thanks, Mickael ___ 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://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, May 27-29, 2015 Berlin, Germany - http://www.kamailioworld.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] Double record routes
Hi, After making some tests, I found that if I configure the VIP interface before the non-VIP one, all works fine. listen=tcp:VIP:5060 listen=tcp:nonVIP:5060 Double RR is still enabled but only one RR header is added (with the VIP interface). Also, only one Via header is added (with the VIP interface). The incoming INVITE is forwarded using a random source port, not 5060. I assume it is the source port used to establish the TCP connection with the proxy (next hop from the load balancer). However, this port doesn't appear in the inserted RR and Via headers - don't know why. Mickael From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Daniel-Constantin Mierla Sent: Tuesday, May 05, 2015 10:13 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Double record routes Hello, do you have mhomed enabled? Are there routes from both IP addresses to the destination? IIRC, not that long ago I pointed to some article about linux not ensuring what would be the local ip used for tcp connections when many interfaces are having routes to destination. I couldn't find it quickly now, though. What you can try is to force advertised address with: listen=tcp:1.2.3.4:5060 advertise 1.2.3.4:5060 Cheers, Daniel On 05/05/15 15:02, Mickael Marrache wrote: Here, there are 2 interfaces but only the VIP should be used. Also, the INVITE exits the same interface it entered (i.e. the VIP) but exits with a different source port (because of the TCP connection). I tried disabling double RR, I only see the VIP record route now, however I still see the top Via with the non-VIP interface although the INVITE is forwarded to the proxy using the VIP interface. From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Tuesday, May 05, 2015 3:31 PM To: Mickael Marrache; sr-users@lists.sip-router.org Subject: Re: [SR-Users] Double record routes That is normal behaviour if double RR is enabled in the RR module; two Record-Routes will be added if Kamailio is multihomed and the invite exits a different interface to the one it entered. -- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ Sent from my BlackBerry. From: Mickael Marrache Sent: Tuesday, May 5, 2015 08:27 To: sr-users@lists.sip-router.org Reply To: Kamailio (SER) - Users Mailing List Subject: [SR-Users] Double record routes Hi, We are adding TCP support to our load balancer and for some reason it adds two record route headers. The instance have two IP addresses on which it binds: one if the VIP address and the second is the non-VIP address. I explicitly set the tcp_source_ipv4 parameter with the VIP address so that it is used as source address for outbound TCP connection. So, we get the following INVITE going from the load balancer to a proxy: T 2015/05/05 12:08:49.715822 VIP:54667 - PROXY:5060 [AP] INVITE sip:1...@mycompany.com SIP/2.0. Record-Route: sip:NONVIP;transport=tcp;r2=on;lr. Record-Route: sip:VIP;transport=tcp;r2=on;lr. Via: SIP/2.0/TCP NONVIP;branch=z9hG4bK6f4.688efa90a17e02181ef7a11fecf8bb72.0;i=3. Via: SIP/2.0/TCP 1.1.1.1:4598;received=2.2.2.2;branch=z9hG4bKmqFaCxNo6m3f5LW4;rport=40020. You can see the INVITE is sent from the VIP address (as specified using the tcp_source_ipv4 parameter). However, the added Via corresponds to the non-VIP address. Also, you can see the two record route headers added for both addresses. Any idea? Thanks, Mickael ___ 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://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, May 27-29, 2015 Berlin, Germany - http://www.kamailioworld.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] hash table not loading
On 05/05/15 18:08, Olli Attila wrote: Hello, Problem solved. I had improper #!ifdef conditions defined and therefore the htable definitions were not enabled. Thank you Daniel. Welcome! It can happen! Cheers, Daniel -Olli On 5.5.2015 18:48, Daniel-Constantin Mierla wrote: Hello, can you check that you have no improper #!ifdef conditions? Maybe the part of the config related to htable is not enabled. Cheers, Daniel On 05/05/15 16:22, Olli Attila wrote: Hello, I get the result: kamailio # kamcmd htable.dump abc error: 500 - No such htable --Olli On 5.5.2015 10:19, Daniel-Constantin Mierla wrote: Hello, can you list the content of the table 'abc'? Cheers, Daniel On 04/05/15 21:44, Olli Attila wrote: Hello, I am trying to load a test hash table on kamailio startup but I keep getting the following error with kamctl after i restart Kamailio and try to list all the tables in memory: kamcmd htable.listTables error: 500 - No htables I have the following configured in kamailio.cfg: # loading the htable module loadmodule htable.so # - htable params - modparam(htable, htable, abc=size=8;autoexpire=0;dbtable=htable;) modparam(htable, db_url, DBURL) modparam(htable, fetch_rows, 1000) The DBURL is pointed to the kamailio database on the same machine. #!ifndef DBURL #!define DBURL mysql://kamailio:kamailiorw@localhost/kamailio #!endif I have also added the following values for testing purposes to the kamailio.htable: id key_namekey_type value_type key_value expires -- -- -- - - 1 test 0 0 12345 0 Is there anything else that i might be missing here? Im running kamailio v.4.2.4. Cheers, -- Olli ___ 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://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, May 27-29, 2015 Berlin, Germany - http://www.kamailioworld.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] hash table not loading
Hello, I am trying to load a test hash table on kamailio startup but I keep getting the following error with kamctl after i restart Kamailio and try to list all the tables in memory: kamcmd htable.listTables error: 500 - No htables I have the following configured in kamailio.cfg: # loading the htable module loadmodule htable.so # - htable params - modparam(htable, htable, abc=size=8;autoexpire=0;dbtable=htable;) modparam(htable, db_url, DBURL) modparam(htable, fetch_rows, 1000) The DBURL is pointed to the kamailio database on the same machine. #!ifndef DBURL #!define DBURL mysql://kamailio:kamailiorw@localhost/kamailio #!endif I have also added the following values for testing purposes to the kamailio.htable: id key_namekey_type value_type key_value expires -- -- -- - - 1 test 0 0 12345 0 Is there anything else that i might be missing here? Im running kamailio v.4.2.4. Cheers, -- Olli ___ 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 proxy for far-end nat traversal
Hello, do you have rtpproxy or rtpengine for relaying rtp packets? Kamailio is routing only sip packets, you need the rtp relay application to help with media streams. Cheers, Daniel On 01/05/15 13:15, rahul.ultimate wrote: Hello I need a small guidance on creating a light weight proxy which only forwards the msgs to my sip server and also does supports symmetrical nated clients. The way I have created the configuration is a slight modification of : https://github.com/xlab1/sipfe_kamailio/blob/master/kamailio.cfg Problem is unless the sip clients use STUN media packets are not routed. And sometimes even the signalling does not pass through. Should i not use fix_nated_register and switch to fix _ nated_contact always ? Because in all those cases where signalling does not pass through, I see RTO. My best guess is kamailio trying to communicate with private ip. Anything which I can try that you could suggest from the top of yourmind woyld be muc appreciated. Thanks Rahul Sent from Samsung Mobile ___ 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://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, May 27-29, 2015 Berlin, Germany - http://www.kamailioworld.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] sht_rm_name_re() question
Hello, On 29/04/15 19:01, Yufei Tao wrote: Hi I've hit a problem with sht_rm_name_re() in htable module. I was calling it like this: sht_rm_name_re(Dlg=$var(callid)::tenant); But when I used sipp to generate 600 concurrent calls for example, I called this function when receiving BYE. But it removed more entries than it should. Seems when removing removing some entry with callid 1-3798@192.168.60.80 mailto:1-3798@192.168.60.80, it also removed entries for [1-9]1-3798@192.168.60.80 mailto:1-3798@192.168.60.80. How do I add '^' in front and '$' at the end of the regexp string when calling this function please? Here I don't really need regexp in fact, just want to do an exact match. But I didn't find any other functions for deleting entries. The ^ has to be added after =. For $, add $$ at the end, because of variable evaluation a single $ will not work. Also, maybe you can try with the operators from $shtcn() -- there is one for string comparison -- I don't recall if they are also for the functions, but a test should be fast: http://www.kamailio.org/wiki/cookbooks/4.2.x/pseudovariables#shtcn_htable_exp Cheers, Daniel -- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, May 27-29, 2015 Berlin, Germany - http://www.kamailioworld.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] hash table not loading
Hello, can you list the content of the table 'abc'? Cheers, Daniel On 04/05/15 21:44, Olli Attila wrote: Hello, I am trying to load a test hash table on kamailio startup but I keep getting the following error with kamctl after i restart Kamailio and try to list all the tables in memory: kamcmd htable.listTables error: 500 - No htables I have the following configured in kamailio.cfg: # loading the htable module loadmodule htable.so # - htable params - modparam(htable, htable, abc=size=8;autoexpire=0;dbtable=htable;) modparam(htable, db_url, DBURL) modparam(htable, fetch_rows, 1000) The DBURL is pointed to the kamailio database on the same machine. #!ifndef DBURL #!define DBURL mysql://kamailio:kamailiorw@localhost/kamailio #!endif I have also added the following values for testing purposes to the kamailio.htable: id key_namekey_type value_type key_value expires -- -- -- - - 1 test 0 0 12345 0 Is there anything else that i might be missing here? Im running kamailio v.4.2.4. Cheers, -- Olli ___ 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://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, May 27-29, 2015 Berlin, Germany - http://www.kamailioworld.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] UAC not answer with new register after 401 reply from porvider
On 30/04/15 12:46, Yuriy Gorlichenko wrote: This happens only with one trunk. We also have plivo trunks and it works fine. Syslog show nothing when this message comes Started with debug mode and saw that realms didn't mach. Sorry for stupid questions. All works fine. Note that if you don't set the realm value in database, then the one from 401 is used. So, unless you want to enforce the realm, you better leave it empty in the database. Cheers, Daniel 2015-04-30 13:24 GMT+03:00 Daniel-Constantin Mierla mico...@gmail.com mailto:mico...@gmail.com: Hello, does that happen in all cases or just for some records? Can you rung with debug=3 and check the syslog messages for what happens at that moment when 401 is processed? Cheers, Daniel On 30/04/15 11:37, Yuriy Gorlichenko wrote: Hello. We have an issue with REGISTER to Provider. When Provider answers 401 Kamailio don't send any REGISTER with digest auth IP ourservice.com.5068 provider.dev.5060: UDP, length 468 E...U...@.3 mailto:E...U...@.3' ..AREGISTER sip:provider.dev SIP/2.0 Via: SIP/2.0/UDP ourservice.com:5068;branch=z9hG4bK4238.45a4a626.0 To: sip:lo...@provider.dev From: sip:lo...@provider.dev;tag=6a39af2190f8b2c99cc63bfeb3a3959c-1ff8 CSeq: 10 REGISTER Call-ID: 1b3f9f5d5822eca2-16...@ourservice.com mailto:1b3f9f5d5822eca2-16...@ourservice.com Max-Forwards: 70 Content-Length: 0 User-Agent: kamailio (4.3.0-dev5 (x86_64/linux)) Contact: sip:lo...@ourservice.com:5068 http://sip:lo...@ourservice.com:5068 Expires: 360 IP provider.dev.5060 ourservice.com.5068: UDP, length 572 E..XC...-.W. DkJSIP/2.0 401 Unauthorized Via: SIP/2.0/UDP ourservice.com:5068;branch=z9hG4bK4238.45a4a626.0;received=23.100.24.250 From: sip:lo...@provider.dev;tag=6a39af2190f8b2c99cc63bfeb3a3959c-1ff8 To: sip:lo...@provider.dev;tag=as6ad61d4a Call-ID: 1b3f9f5d5822eca2-16...@ourservice.com mailto:1b3f9f5d5822eca2-16...@ourservice.com CSeq: 10 REGISTER Server: FastTel SoftSwitch Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH Supported: replaces WWW-Authenticate: Digest algorithm=MD5, realm=provider.dev, nonce=63fc6951 Content-Length: 0 ___ 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://twitter.com/#!/miconda http://twitter.com/#%21/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, May 27-29, 2015 Berlin, Germany - http://www.kamailioworld.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 -- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, May 27-29, 2015 Berlin, Germany - http://www.kamailioworld.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