Call drops after 30 seconds

1,424 views
Skip to first unread message

Pramod Venugopal

unread,
Apr 14, 2015, 10:40:16 PM4/14/15
to 2600h...@googlegroups.com
Hello everyone

I have a Kazoo cluster setup in a VPC on AWS and experiencing a call drop issue.

I can make an outbound call from a client registered on Kazoo (a deskphone or softphone). I have full audio both ways, but the call is dropped at 30 seconds. 

The freeswitch logs say:
Via: SIP/2.0/UDP 54.148.57.6:11000;rport;branch=z9hG4bKDtpjFF2FZQgZg
Route: <sip:10.20.30.5;lr=on;ftag=as15b0c5a8>
Max-Forwards: 70
From: <sip:20631...@pbx.audian.com>;tag=HZvrmNKBQgeHa
To: "Pramod Venugopal" <sip:42562...@54.200.175.192>;tag=as15b0c5a8
CSeq: 74186631 BYE
Contact: <sip:2063130566@54.148.57.6:11000;transport=udp>
User-Agent: 2600hz
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: path, replaces
Reason: SIP;cause=408;text="ACK Timeout"
Content-Length: 0

So it looks like its getting an ACK timeout.

My profile status
Name             sipinterface_1
Domain Name       N/A
Auto-NAT         false
DBName           sofia_reg_sipinterface_1
Pres Hosts
Dialplan         XML
Context           context_2
Challenge Realm   auto_from
RTP-IP           10.20.30.12
Ext-RTP-IP       54.148.57.6
SIP-IP           10.20.30.12
Ext-SIP-IP       54.148.57.6
URL               sip:mod_...@54.148.57.6:11000
BIND-URL         sip:mod_...@54.148.57.6:11000;maddr=10.20.30.12;transport=udp,tcp
HOLD-MUSIC       local_stream://default
OUTBOUND-PROXY   N/A
CODECS IN         H263,OPUS,G7221@32000h,G7221@16000h,G722,PCMU,PCMA,G729,GSM,Speex
CODECS OUT       H263,OPUS,G7221@32000h,G7221@16000h,G722,PCMU,PCMA,G729,GSM,Speex
TEL-EVENT         101
DTMF-MODE         rfc2833
CNG               13
SESSION-TO       0
MAX-DIALOG       1000
NOMEDIA           false
LATE-NEG         true
PROXY-MEDIA       false
ZRTP-PASSTHRU     false
AGGRESSIVENAT     false
CALLS-IN         60
FAILED-CALLS-IN   25
CALLS-OUT         22
FAILED-CALLS-OUT 5
REGISTRATIONS     0

The dbtext/dispatcher has the right IP. Both sides of the call get audio. At the 30 second mark, the call is dropped. 

Darren Schreiber

unread,
Apr 14, 2015, 10:44:19 PM4/14/15
to 2600h...@googlegroups.com
Calls to your carrier originate directly from FreeSWITCH and don’t go through Kamailio. This is for the outbound leg (to the carrier) only. Phones always go via Kamailio and inbound calls from carriers should go to Kamailio.

You must make sure your firewall / router setup allows traffic from your carrier directly to/from FreeSWITCH. This issue causes about 95% of these BYE messages.

From: Pramod Venugopal <pra...@perseus-tech.com>
Reply-To: "2600h...@googlegroups.com" <2600h...@googlegroups.com>
Date: Tuesday, April 14, 2015 at 3:39 PM
To: "2600h...@googlegroups.com" <2600h...@googlegroups.com>
Subject: Call drops after 30 seconds

Hello everyone

I have a Kazoo cluster setup in a VPC on AWS and experiencing a call drop issue.

I can make an outbound call from a client registered on Kazoo (a deskphone or softphone). I have full audio both ways, but the call is dropped at 30 seconds. 

The freeswitch logs say:
BYE sip:42562...@54.200.175.192:5060 SIP/2.0
Via: SIP/2.0/UDP 54.148.57.6:11000;rport;branch=z9hG4bKDtpjFF2FZQgZg
Route: <sip:10.20.30.5;lr=on;ftag=as15b0c5a8>
Max-Forwards: 70
From: <sip:20631...@pbx.audian.com>;tag=HZvrmNKBQgeHa
To: "Pramod Venugopal" <sip:42562...@54.200.175.192>;tag=as15b0c5a8
CSeq: 74186631 BYE
Contact: <sip:20631...@54.148.57.6:11000;transport=udp>

--
You received this message because you are subscribed to the Google Groups "2600hz-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

VOIPITS INC.

unread,
Apr 15, 2015, 2:41:31 PM4/15/15
to 2600h...@googlegroups.com, dschr...@2600hz.com
I agree 100% with Darren on this one.  I had issues with certain outbound calls dropping after 15 minutes, it was caused by too restrictive of a firewall on the FS boxes.  I needed port 11,000 open to the public and it was not.  Opening up that port resolved all issues.

Hope this helps you!

Aaron
VOIPITS INC.



On Tuesday, April 14, 2015 at 6:44:19 PM UTC-4, Darren Schreiber wrote:
Calls to your carrier originate directly from FreeSWITCH and don’t go through Kamailio. This is for the outbound leg (to the carrier) only. Phones always go via Kamailio and inbound calls from carriers should go to Kamailio.

You must make sure your firewall / router setup allows traffic from your carrier directly to/from FreeSWITCH. This issue causes about 95% of these BYE messages.

From: Pramod Venugopal <pra...@perseus-tech.com>
Reply-To: "2600h...@googlegroups.com" <2600h...@googlegroups.com>
Date: Tuesday, April 14, 2015 at 3:39 PM
To: "2600h...@googlegroups.com" <2600h...@googlegroups.com>
Subject: Call drops after 30 seconds

Hello everyone

I have a Kazoo cluster setup in a VPC on AWS and experiencing a call drop issue.

I can make an outbound call from a client registered on Kazoo (a deskphone or softphone). I have full audio both ways, but the call is dropped at 30 seconds. 

The freeswitch logs say:
BYE sip:42562...@54.200.175.192:5060 SIP/2.0
Via: SIP/2.0/UDP 54.148.57.6:11000;rport;branch=z9hG4bKDtpjFF2FZQgZg
Route: <sip:10.20.30.5;lr=on;ftag=as15b0c5a8>
Max-Forwards: 70
From: <sip:20631...@pbx.audian.com>;tag=HZvrmNKBQgeHa
To: "Pramod Venugopal" <sip:42562...@54.200.175.192>;tag=as15b0c5a8

Daniel-Constantin Mierla

unread,
Apr 15, 2015, 4:40:01 PM4/15/15
to 2600h...@googlegroups.com
It appears that kamailio is listening on a private IP, without any advertised address with a public IP that can be properly routed over internet. If it runs in AWS instance with a private ip assigned to the network interface, that is set in Record-Route and used for routing the ACK, resulting in ACK not being sent back to sip server.

This is somehow confirmed by seeing the BYE with the header:
You need to set the advertise address parameter to the public ip via listen or advertised_address parameters in kamailio.cfg:

- http://www.kamailio.org/wiki/cookbooks/4.2.x/core?&#listen
- http://www.kamailio.org/wiki/cookbooks/4.2.x/core?&#advertised_address

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

Pramod Venugopal

unread,
Apr 15, 2015, 8:47:00 PM4/15/15
to 2600h...@googlegroups.com, mic...@gmail.com
Thanks Daniel!

Bingo! I had set the advertising IP and commented it later for troubleshooting something else. Uncommented and its working now =)

Thanks for the responses Darren and VOIPITS!
Reply all
Reply to author
Forward
0 new messages