Discussion:
[SR-Users] Call disconnects within 30 seconds
Rahul MathuR
2014-08-12 11:37:08 UTC
Permalink
Hello,

I have an iPhone/Android/Windows 8 based UAC, proxy server Kamailio and Sip
server FreeSwitch.
Whenever I call directly from UAC to Sip server, the call gets established
for as long as I want, however when I use the proxy in between, it gets
disconnected within 30 seconds. It seems that FS sends a BYE within 30
seconds.

I would really appreciate if anybody please guide me where I am going wrong
in this case ?
--
Warm Regds.
MathuRahul
davy van de moere
2014-08-12 12:15:01 UTC
Permalink
Are you sure you're getting the ACK correctly to FS?

FS typically has this behavior when it did not correctly receive a
confirmation of an answer, and after 30 seconds disconnects, as for FS the
call has failed.

Do you have a trace of the packets?

grtz,
Davy Van De Moere
Post by Rahul MathuR
Hello,
I have an iPhone/Android/Windows 8 based UAC, proxy server Kamailio and
Sip server FreeSwitch.
Whenever I call directly from UAC to Sip server, the call gets established
for as long as I want, however when I use the proxy in between, it gets
disconnected within 30 seconds. It seems that FS sends a BYE within 30
seconds.
I would really appreciate if anybody please guide me where I am going
wrong in this case ?
--
Warm Regds.
MathuRahul
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Rahul MathuR
2014-08-12 12:39:08 UTC
Permalink
Hello Davy,

Thanks for writing back..

Tonight I'll take the tcpdump on Kamailio box and share the file.

Please note that Kamailio and Freeswitch are both on public IP & at
Freeswitch param, enable_timer=false is set.

Is there any explicit way wherein ACKs can be transmitted to FS ?


Thanks in advance !


On Tue, Aug 12, 2014 at 1:15 PM, davy van de moere <
Post by davy van de moere
Are you sure you're getting the ACK correctly to FS?
FS typically has this behavior when it did not correctly receive a
confirmation of an answer, and after 30 seconds disconnects, as for FS the
call has failed.
Do you have a trace of the packets?
grtz,
Davy Van De Moere
Post by Rahul MathuR
Hello,
I have an iPhone/Android/Windows 8 based UAC, proxy server Kamailio and
Sip server FreeSwitch.
Whenever I call directly from UAC to Sip server, the call gets
established for as long as I want, however when I use the proxy in between,
it gets disconnected within 30 seconds. It seems that FS sends a BYE within
30 seconds.
I would really appreciate if anybody please guide me where I am going
wrong in this case ?
--
Warm Regds.
MathuRahul
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Warm Regds.
MathuRahul
davy
2014-08-12 12:42:52 UTC
Permalink
If your Kamailio setup is close to vanilla, it should do it by default. But Kamailio is a very powerfull tool, it can easily be setup to stop passing over ACKs :)

To attempt to answer what explicitly sends along the ACKs, that will most likely be the t_relay function, together with the logic which went before it…

A good old tcpdump will most likely enlighten us.
Post by Rahul MathuR
Hello Davy,
Thanks for writing back..
Tonight I'll take the tcpdump on Kamailio box and share the file.
Please note that Kamailio and Freeswitch are both on public IP & at Freeswitch param, enable_timer=false is set.
Is there any explicit way wherein ACKs can be transmitted to FS ?
Thanks in advance !
Are you sure you're getting the ACK correctly to FS?
FS typically has this behavior when it did not correctly receive a confirmation of an answer, and after 30 seconds disconnects, as for FS the call has failed.
Do you have a trace of the packets?
grtz,
Davy Van De Moere
Hello,
I have an iPhone/Android/Windows 8 based UAC, proxy server Kamailio and Sip server FreeSwitch.
Whenever I call directly from UAC to Sip server, the call gets established for as long as I want, however when I use the proxy in between, it gets disconnected within 30 seconds. It seems that FS sends a BYE within 30 seconds.
I would really appreciate if anybody please guide me where I am going wrong in this case ?
--
Warm Regds.
MathuRahul
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Warm Regds.
MathuRahul
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
davy van de moere
2014-08-13 15:20:38 UTC
Permalink
Hey Rahul,

thank you for your pcap file. Your astpp is indeed not succeeding in
getting the OK delivered correctly to your pjsua. Also those 400 Bad
Session Description are no good.

I do see as well fragmented packets passing by, perhaps an easy test would
be to have everything be sent over TCP. Big sip packets tend to suffer over
UDP networks. From your sip packets your setup looks quite standard,
although with a lot of headers (which is fine), so I'ld give it a try with
sending everything over tcp, t_relay_to_tcp should help you out!

Good luck!


--- In reply to ---
I guess the attachment size was greater than 60Kb thereby getting
quarentined.
Re-sending it to you so that this issue could be resolved.
Post by davy
If your Kamailio setup is close to vanilla, it should do it by default.
But Kamailio is a very powerfull tool, it can easily be setup to stop
passing over ACKs :)
To attempt to answer what explicitly sends along the ACKs, that will most
likely be the t_relay function, together with the logic which went before
it

A good old tcpdump will most likely enlighten us.
Hello Davy,
Thanks for writing back..
Tonight I'll take the tcpdump on Kamailio box and share the file.
Please note that Kamailio and Freeswitch are both on public IP & at
Freeswitch param, enable_timer=false is set.
Is there any explicit way wherein ACKs can be transmitted to FS ?
Thanks in advance !
On Tue, Aug 12, 2014 at 1:15 PM, davy van de moere <
Post by davy van de moere
Are you sure you're getting the ACK correctly to FS?
FS typically has this behavior when it did not correctly receive a
confirmation of an answer, and after 30 seconds disconnects, as for FS the
call has failed.
Do you have a trace of the packets?
grtz,
Davy Van De Moere
Post by Rahul MathuR
Hello,
I have an iPhone/Android/Windows 8 based UAC, proxy server Kamailio and
Sip server FreeSwitch.
Whenever I call directly from UAC to Sip server, the call gets
established for as long as I want, however when I use the proxy in between,
it gets disconnected within 30 seconds. It seems that FS sends a BYE within
30 seconds.
I would really appreciate if anybody please guide me where I am going
wrong in this case ?
--
Warm Regds.
MathuRahul
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Warm Regds.
MathuRahul
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Rahul MathuR
2014-08-13 11:10:36 UTC
Permalink
Hello Davy,

I am attaching the abridged pcap file for the simplicity.
Please guide me how to resolve this issue.

Thanks again for your help !!
Post by davy
If your Kamailio setup is close to vanilla, it should do it by default.
But Kamailio is a very powerfull tool, it can easily be setup to stop
passing over ACKs :)
To attempt to answer what explicitly sends along the ACKs, that will most
likely be the t_relay function, together with the logic which went before
it

A good old tcpdump will most likely enlighten us.
Hello Davy,
Thanks for writing back..
Tonight I'll take the tcpdump on Kamailio box and share the file.
Please note that Kamailio and Freeswitch are both on public IP & at
Freeswitch param, enable_timer=false is set.
Is there any explicit way wherein ACKs can be transmitted to FS ?
Thanks in advance !
On Tue, Aug 12, 2014 at 1:15 PM, davy van de moere <
Post by davy van de moere
Are you sure you're getting the ACK correctly to FS?
FS typically has this behavior when it did not correctly receive a
confirmation of an answer, and after 30 seconds disconnects, as for FS the
call has failed.
Do you have a trace of the packets?
grtz,
Davy Van De Moere
Post by Rahul MathuR
Hello,
I have an iPhone/Android/Windows 8 based UAC, proxy server Kamailio and
Sip server FreeSwitch.
Whenever I call directly from UAC to Sip server, the call gets
established for as long as I want, however when I use the proxy in between,
it gets disconnected within 30 seconds. It seems that FS sends a BYE within
30 seconds.
I would really appreciate if anybody please guide me where I am going
wrong in this case ?
--
Warm Regds.
MathuRahul
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Warm Regds.
MathuRahul
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Warm Regds.
MathuRahul
Rahul MathuR
2014-08-14 06:12:06 UTC
Permalink
Hello Davy,

My constraint is that I cannot use TCP for this solution.
I am attaching my kamailio.cfg file, please please help me to resolve this
issue as soon as possible (it has already chewed many nights :( )




On Wed, Aug 13, 2014 at 8:50 PM, davy van de moere <
Post by davy van de moere
Hey Rahul,
thank you for your pcap file. Your astpp is indeed not succeeding in
getting the OK delivered correctly to your pjsua. Also those 400 Bad
Session Description are no good.
I do see as well fragmented packets passing by, perhaps an easy test would
be to have everything be sent over TCP. Big sip packets tend to suffer over
UDP networks. From your sip packets your setup looks quite standard,
although with a lot of headers (which is fine), so I'ld give it a try with
sending everything over tcp, t_relay_to_tcp should help you out!
Good luck!
--- In reply to ---
I guess the attachment size was greater than 60Kb thereby getting
quarentined.
Re-sending it to you so that this issue could be resolved.
If your Kamailio setup is close to vanilla, it should do it by default.
Post by davy
But Kamailio is a very powerfull tool, it can easily be setup to stop
passing over ACKs :)
To attempt to answer what explicitly sends along the ACKs, that will most
likely be the t_relay function, together with the logic which went before
it

A good old tcpdump will most likely enlighten us.
Hello Davy,
Thanks for writing back..
Tonight I'll take the tcpdump on Kamailio box and share the file.
Please note that Kamailio and Freeswitch are both on public IP & at
Freeswitch param, enable_timer=false is set.
Is there any explicit way wherein ACKs can be transmitted to FS ?
Thanks in advance !
On Tue, Aug 12, 2014 at 1:15 PM, davy van de moere <
Post by davy van de moere
Are you sure you're getting the ACK correctly to FS?
FS typically has this behavior when it did not correctly receive a
confirmation of an answer, and after 30 seconds disconnects, as for FS the
call has failed.
Do you have a trace of the packets?
grtz,
Davy Van De Moere
Post by Rahul MathuR
Hello,
I have an iPhone/Android/Windows 8 based UAC, proxy server Kamailio and
Sip server FreeSwitch.
Whenever I call directly from UAC to Sip server, the call gets
established for as long as I want, however when I use the proxy in between,
it gets disconnected within 30 seconds. It seems that FS sends a BYE within
30 seconds.
I would really appreciate if anybody please guide me where I am going
wrong in this case ?
--
Warm Regds.
MathuRahul
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Warm Regds.
MathuRahul
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Warm Regds.
MathuRahul
--
Warm Regds.
MathuRahul
Rahul MathuR
2014-08-14 06:55:56 UTC
Permalink
Thanks for the help !!
It is now resolved.. my special thanks to Davy !!!!!!
Post by Rahul MathuR
Hello Davy,
My constraint is that I cannot use TCP for this solution.
I am attaching my kamailio.cfg file, please please help me to resolve this
issue as soon as possible (it has already chewed many nights :( )
On Wed, Aug 13, 2014 at 8:50 PM, davy van de moere <
Post by davy van de moere
Hey Rahul,
thank you for your pcap file. Your astpp is indeed not succeeding in
getting the OK delivered correctly to your pjsua. Also those 400 Bad
Session Description are no good.
I do see as well fragmented packets passing by, perhaps an easy test
would be to have everything be sent over TCP. Big sip packets tend to
suffer over UDP networks. From your sip packets your setup looks quite
standard, although with a lot of headers (which is fine), so I'ld give it a
try with sending everything over tcp, t_relay_to_tcp should help you out!
Good luck!
--- In reply to ---
I guess the attachment size was greater than 60Kb thereby getting
quarentined.
Re-sending it to you so that this issue could be resolved.
If your Kamailio setup is close to vanilla, it should do it by default.
Post by davy
But Kamailio is a very powerfull tool, it can easily be setup to stop
passing over ACKs :)
To attempt to answer what explicitly sends along the ACKs, that will
most likely be the t_relay function, together with the logic which went
before it

A good old tcpdump will most likely enlighten us.
Hello Davy,
Thanks for writing back..
Tonight I'll take the tcpdump on Kamailio box and share the file.
Please note that Kamailio and Freeswitch are both on public IP & at
Freeswitch param, enable_timer=false is set.
Is there any explicit way wherein ACKs can be transmitted to FS ?
Thanks in advance !
On Tue, Aug 12, 2014 at 1:15 PM, davy van de moere <
Post by davy van de moere
Are you sure you're getting the ACK correctly to FS?
FS typically has this behavior when it did not correctly receive a
confirmation of an answer, and after 30 seconds disconnects, as for FS the
call has failed.
Do you have a trace of the packets?
grtz,
Davy Van De Moere
Post by Rahul MathuR
Hello,
I have an iPhone/Android/Windows 8 based UAC, proxy server Kamailio
and Sip server FreeSwitch.
Whenever I call directly from UAC to Sip server, the call gets
established for as long as I want, however when I use the proxy in between,
it gets disconnected within 30 seconds. It seems that FS sends a BYE within
30 seconds.
I would really appreciate if anybody please guide me where I am going
wrong in this case ?
--
Warm Regds.
MathuRahul
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Warm Regds.
MathuRahul
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Warm Regds.
MathuRahul
--
Warm Regds.
MathuRahul
--
Warm Regds.
MathuRahul
Loading...