Greetings. May anyone give me advice? I have working Kamailio with TLS. It is used by iOS softphone - i developed own one based on resiprocate. All signalling is TLS. Almost everything is fine.
But looks kamailio sends CRLF messages sometimes. If it happens when softphone is in background mode - it is killed by iOS (as iOS prohibits too often awakes from background mode).
How I can disable these messages? I see natping_interval = 30 and ping_nated_only=0 Should I set natping_interval to zero ?
Thank you :)
On 26.11.2012 05:13, Dmytro Bogovych wrote:
Greetings. May anyone give me advice? I have working Kamailio with TLS. It is used by iOS softphone - i developed own one based on resiprocate. All signalling is TLS. Almost everything is fine.
But looks kamailio sends CRLF messages sometimes. If it happens when softphone is in background mode - it is killed by iOS (as iOS prohibits too often awakes from background mode).
How I can disable these messages? I see natping_interval = 30 and ping_nated_only=0 Should I set natping_interval to zero ?
Either set the interval to 0 or set ping_nated_only=1 and make sure to not set the NAT flag for the iphone clients.
A problem may be firewalls/NAT between the iPhone and Kamailio, as they may drop the TCP connection is there is no activity for too long time.
regards Klaus
Hello,
this might be actually related to tcp connection keepalive:
http://www.kamailio.org/wiki/cookbooks/3.3.x/core#tcp_crlf_ping
IIRC, nathelper pings only udp contacts.
Cheers, Daniel
On 11/26/12 10:54 AM, Klaus Darilion wrote:
On 26.11.2012 05:13, Dmytro Bogovych wrote:
Greetings. May anyone give me advice? I have working Kamailio with TLS. It is used by iOS softphone - i developed own one based on resiprocate. All signalling is TLS. Almost everything is fine.
But looks kamailio sends CRLF messages sometimes. If it happens when softphone is in background mode - it is killed by iOS (as iOS prohibits too often awakes from background mode).
How I can disable these messages? I see natping_interval = 30 and ping_nated_only=0 Should I set natping_interval to zero ?
Either set the interval to 0 or set ping_nated_only=1 and make sure to not set the NAT flag for the iphone clients.
A problem may be firewalls/NAT between the iPhone and Kamailio, as they may drop the TCP connection is there is no activity for too long time.
regards Klaus
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
Thank you, i will try it.
On Mon, Nov 26, 2012 at 12:05 PM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Hello,
this might be actually related to tcp connection keepalive:
http://www.kamailio.org/wiki/**cookbooks/3.3.x/core#tcp_crlf_**pinghttp://www.kamailio.org/wiki/cookbooks/3.3.x/core#tcp_crlf_ping
IIRC, nathelper pings only udp contacts.
Cheers, Daniel
On 11/26/12 10:54 AM, Klaus Darilion wrote:
On 26.11.2012 05:13, Dmytro Bogovych wrote:
Greetings. May anyone give me advice? I have working Kamailio with TLS. It is used by iOS softphone - i developed own one based on resiprocate. All signalling is TLS. Almost everything is fine.
But looks kamailio sends CRLF messages sometimes. If it happens when softphone is in background mode - it is killed by iOS (as iOS prohibits too often awakes from background mode).
How I can disable these messages? I see natping_interval = 30 and ping_nated_only=0 Should I set natping_interval to zero ?
Either set the interval to 0 or set ping_nated_only=1 and make sure to not set the NAT flag for the iphone clients.
A problem may be firewalls/NAT between the iPhone and Kamailio, as they may drop the TCP connection is there is no activity for too long time.
regards Klaus
______________________________**_________________ 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
-- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/**micondahttp://www.linkedin.com/in/miconda
______________________________**_________________ 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
BTW can I set interval between these ping packets? I think 4-5 minutes will be good enough to not kill application and retain the connection for some routers...
On Mon, Nov 26, 2012 at 12:05 PM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Hello,
this might be actually related to tcp connection keepalive:
http://www.kamailio.org/wiki/**cookbooks/3.3.x/core#tcp_crlf_**pinghttp://www.kamailio.org/wiki/cookbooks/3.3.x/core#tcp_crlf_ping
IIRC, nathelper pings only udp contacts.
Cheers, Daniel
On 11/26/12 10:54 AM, Klaus Darilion wrote:
On 26.11.2012 05:13, Dmytro Bogovych wrote:
Greetings. May anyone give me advice? I have working Kamailio with TLS. It is used by iOS softphone - i developed own one based on resiprocate. All signalling is TLS. Almost everything is fine.
But looks kamailio sends CRLF messages sometimes. If it happens when softphone is in background mode - it is killed by iOS (as iOS prohibits too often awakes from background mode).
How I can disable these messages? I see natping_interval = 30 and ping_nated_only=0 Should I set natping_interval to zero ?
Either set the interval to 0 or set ping_nated_only=1 and make sure to not set the NAT flag for the iphone clients.
A problem may be firewalls/NAT between the iPhone and Kamailio, as they may drop the TCP connection is there is no activity for too long time.
regards Klaus
______________________________**_________________ 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
-- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/**micondahttp://www.linkedin.com/in/miconda
______________________________**_________________ 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