Asterisk dropped calls

cavallad

New Member
Joined
Mar 12, 2010
Messages
3
Reaction score
0
I am having a problem with received calls being dropps after 30s - 2 minutes. Outgoing calls seems to be OK.

The /var/log/asterisk/full file shows the following output around the hang-up process:

[2011-06-23 17:00:04] VERBOSE[18511] logger.c: -- SIP/1004002592-1c83d250 is ringing
[2011-06-23 17:00:09] VERBOSE[18511] logger.c: -- SIP/1004002592-1c83d250 answered SIP/3858918-bc0342e0
[2011-06-23 17:00:37] VERBOSE[18511] logger.c: == Spawn extension (macro-dial, s, 7) exited non-zero on 'SIP/3858918-bc0342e0' in macro 'dial'
[2011-06-23 17:00:37] VERBOSE[18511] logger.c: == Spawn extension (macro-dial, s, 7) exited non-zero on 'SIP/3858918-bc0342e0' in macro 'exten-vm'
[2011-06-23 17:00:37] VERBOSE[18511] logger.c: == Spawn extension (macro-dial, s, 7) exited non-zero on 'SIP/3858918-bc0342e0'
[2011-06-23 17:00:37] VERBOSE[18511] logger.c: -- Executing [[email protected]:1] Macro("SIP/3858918-bc0342e0", "hangupcall") in new stack
[2011-06-23 17:00:37] VERBOSE[18511] logger.c: -- Executing [[email protected]:1] GotoIf("SIP/3858918-bc0342e0", "1?skiprg") in new stack
[2011-06-23 17:00:37] VERBOSE[18511] logger.c: -- Goto (macro-hangupcall,s,4)
[2011-06-23 17:00:37] DEBUG[18511] app_macro.c: Executed application: GotoIf
[2011-06-23 17:00:37] VERBOSE[18511] logger.c: -- Executing [[email protected]:4] GotoIf("SIP/3858918-bc0342e0", "1?skipblkvm") in new stack
[2011-06-23 17:00:37] VERBOSE[18511] logger.c: -- Goto (macro-hangupcall,s,7)
[2011-06-23 17:00:37] DEBUG[18511] app_macro.c: Executed application: GotoIf
[2011-06-23 17:00:37] VERBOSE[18511] logger.c: -- Executing [[email protected]:7] GotoIf("SIP/3858918-bc0342e0", "1?theend") in new stack
[2011-06-23 17:00:37] VERBOSE[18511] logger.c: -- Goto (macro-hangupcall,s,9)
[2011-06-23 17:00:37] DEBUG[18511] app_macro.c: Executed application: GotoIf
[2011-06-23 17:00:37] VERBOSE[18511] logger.c: -- Executing [[email protected]:9] Hangup("SIP/3858918-bc0342e0", "") in new stack
[2011-06-23 17:00:37] VERBOSE[18511] logger.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/3858918-bc0342e0' in macro 'hangupcall'
[2011-06-23 17:00:37] VERBOSE[18511] logger.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/3858918-bc0342e0'

Does anyone have any ideas to solve this?

Thanks, David
 

cavallad

New Member
Joined
Mar 12, 2010
Messages
3
Reaction score
0
Do you mean sip_custom.conf?

I have the line 'externip=xx.xx.xxx.xxx' in sip_nat.conf.

Is that not enough?
 

Linetux

Guru
Joined
Oct 5, 2008
Messages
541
Reaction score
0
Location
Orlando, FL
Firewall issues cause this behavior. In that case (may or may not be your case), the SIP responses are not returning. Asterisk will destroy a SIP conversation if it doesn't get an ACK from the other end.

The default setting is 3600ms IIRC.

Look for any kind of SIP settings in your FW, and/or change it out with something else to troubleshoot.

Edit: now that I think about it, it can be due to the problem Lorne talked about. If you don't have the right external IP, it's going to send the wrong one in the SIP header, therefore never getting the right response, causing the problem described above....
 

cavallad

New Member
Joined
Mar 12, 2010
Messages
3
Reaction score
0
I may have sorted out the problem.

I opened up the firewall to TCP as well as UDP traffic on dport = 5060.

I opened up a debug session and looked at the results in /var/log/asterisk/full. It seems OK.

Thanks to all your help.
 

Members online

No members online now.

Latest Posts

PIAF 5 - Powered by 3CX

Forum statistics

Threads
22,272
Messages
136,516
Members
14,504
Latest member
jebin