Queue Load, asterisk disconnected

I have Freepbx Setup for a queue up to 15 agents through a PRI line, it was working
fine for a long time, suddenly, when there is a load on the queue, the asterisk service disconnect
and the calls are dropped.

and the service starts again after few seconds, and so on.

this is the logs

2195,2","",“Busy”,"",“2009-05-13 10:06:53”,“2009-05-13 10:06:55”,2,0,“NO ANSWER”,“DOCUMENTATION”
"",“0225167604”,“237”,“from-internal”,""“0225167604"” <0225167604>",“Local/[email protected],2”,"",“Busy”,"",“2009-05-13 10:06:55”,“2009-05-13 10:06:57”,2,0,“NO ANSWER”,“DOCUMENTATION”
"",“0225167604”,“229”,“from-internal”,""“0225167604"” <0225167604>",“Local/[email protected],2”,"",“Busy”,"",“2009-05-13 10:06:57”,“2009-05-13 10:06:59”,2,0,“NO ANSWER”,“DOCUMENTATION”
"",“0225167604”,“224”,“from-internal”,""“0225167604"” <0225167604>",“Local/[email protected],2”,"",“Busy”,"",“2009-05-13 10:06:59”,“2009-05-13 10:07:00”,1,0,“NO ANSWER”,“DOCUMENTATION”
/usr/sbin/safe_asterisk: line 57: 14229 Segmentation fault (core dumped) ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS} >&/dev/${TTY} </dev/${TTY}
Asterisk ended with exit status 139
Asterisk exited on signal 11.
cat: /var/run/asterisk.pid: No such file or directory
Automatically restarting Asterisk.

any reply will be appreciated.

Torino,

What log file did you get this from? It does not provide nearly enough details to work with.

  1. Can you provide details on your setup.
  2. Post a good call trace showing the issue.

For details, asterisk version, FreePBX, etc. Was it hand built or from a distro? if hand built who’s directions did you use, etc… distro who’s? Everything up to date?

For a call trace, ssh to the server, connect to asterisk with the following command: asterisk -rvvvvv
This will set the verbose level to 5 and start showing what is going on in the server with a lot more detail. When asterisk stops due to the segment fault it will stop printing information on the screen. Yes it restarts but it will not continue displaying that new information. Then post the last 200 lines or so and we will be able to see more about what is really going on.

FYI: I’ve seen this happen in many versions of trixbox (2.4 and early 2.6 versions) if you have an attempt to get a fax. but without the details on your system we are just guessing based on what we know could make it happen so these things will help us help you.

thanks for your reply.

the log that i sent was from /var/log/asterisk/cdr-csv

Asterisk version: 1.2.29 and Freepbx

i want to confirm something: this server was working fine for a long time and suddenly this happened.

i am not using fax.

I checked PRI by zttool and there are no alarms.

The Call Trace:

– Executing AGI(“Local/[email protected],2”, “dialparties.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
– dialparties.agi: priority is 1
dialparties.agi: Caller ID name is ‘0227559600’ number is '0227559600’
dialparties.agi: Methodology of ring is ‘none’
– dialparties.agi: Added extension 221 to extension map
– dialparties.agi: Extension 221 cf is disabled
– dialparties.agi: Extension 221 do not disturb is disabled
== Parsing ‘/etc/asterisk/manager.conf’: Found
== Parsing ‘/etc/asterisk/manager_additional.conf’: Found
== Parsing ‘/etc/asterisk/manager_custom.conf’: Found
== Manager ‘admin’ logged on from 127.0.0.1
== Manager ‘admin’ logged off from 127.0.0.1
– Executing Macro(“SIP/501-09ecf930”, “exten-vm|novm|500”) in new stack
– Executing Macro(“SIP/501-09ecf930”, “user-callerid”) in new stack
– Executing Set(“SIP/501-09ecf930”, “AMPUSER=501”) in new stack
– Executing GotoIf(“SIP/501-09ecf930”, “0?109”) in new stack
– Executing Set(“SIP/501-09ecf930”, “EMERGENCYCID=”) in new stack
– Executing Set(“SIP/501-09ecf930”, “AMPUSERCIDNAME=501”) in new stack
– Executing GotoIf(“SIP/501-09ecf930”, “0?7”) in new stack
– Executing Set(“SIP/501-09ecf930”, “CALLERID(all)=“501” <501>”) in new stack
– Executing NoOp(“SIP/501-09ecf930”, “Using CallerID “501” <501>”) in new stack
– Executing Set(“SIP/501-09ecf930”, “FROMCONTEXT=exten-vm”) in new stack
– Executing Macro(“SIP/501-09ecf930”, “record-enable|500|IN”) in new stack
– Executing GotoIf(“SIP/501-09ecf930”, “0 > 0?2:4”) in new stack
– Goto (macro-record-enable,s,4)
– Executing AGI(“SIP/501-09ecf930”, “recordingcheck|20090513-092727|1242196047.180”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
– dialparties.agi: Checking CW and CFB status for extension 221
recordingcheck|20090513-092727|1242196047.180: Inbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing NoOp(“SIP/501-09ecf930”, “No recording needed”) in new stack
– Executing Macro(“SIP/501-09ecf930”, “dial|30|Ttr|500”) in new stack
– Executing AGI(“SIP/501-09ecf930”, “dialparties.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Extension 221 is not available to be called
dialparties.agi: Starting New Dialparties.agi
dialparties.agi: Extension 221 has call waiting disabled
– AGI Script dialparties.agi completed, returning 0
– Executing NoOp(“Local/[email protected],2”, “Returned from dialparties with no extensions to call”) in new stack
– Executing Set(“Local/[email protected],2”, “DIALSTATUS=BUSY”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “1?s-BUSY|1”) in new stack
– Goto (macro-exten-vm,s-BUSY,1)
– Executing NoOp(“Local/[email protected],2”, “Extension is reporting BUSY and has no Voicemail”) in new stack
– Executing Busy(“Local/[email protected],2”, “”) in new stack
– Local/[email protected],1 is busy
– Called Local/[email protected]/n
== Spawn extension (macro-exten-vm, s-BUSY, 2) exited non-zero on ‘Local/[email protected],2’ in macro ‘exten-vm’
== Spawn extension (macro-exten-vm, s-BUSY, 2) exited non-zero on ‘Local/[email protected],2’
– Executing Macro(“Local/[email protected],2”, “exten-vm|novm|225”) in new stack
– Executing Macro(“Local/[email protected],2”, “user-callerid”) in new stack
– Executing Set(“Local/[email protected],2”, “AMPUSER=”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “0?109”) in new stack
– Executing Set(“Local/[email protected],2”, “EMERGENCYCID=”) in new stack
– Executing Set(“Local/[email protected],2”, “AMPUSERCIDNAME=”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “1?7”) in new stack
– Goto (macro-user-callerid,s,7)
– Executing NoOp(“Local/[email protected],2”, “Using CallerID “0227559600” <0227559600>”) in new stack
– Executing Set(“Local/[email protected],2”, “FROMCONTEXT=exten-vm”) in new stack
– Executing Macro(“Local/[email protected],2”, “record-enable|225|IN”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “0 > 0?2:4”) in new stack
– Goto (macro-record-enable,s,4)
– Executing AGI(“Local/[email protected],2”, “recordingcheck|20090513-092727|1242196047.182”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
– dialparties.agi: priority is 1
recordingcheck|20090513-092727|1242196047.182: Inbound recording enabled.
dialparties.agi: Caller ID name is ‘501’ number is '501’
recordingcheck|20090513-092727|1242196047.182: CALLFILENAME=1242196047.182
– AGI Script recordingcheck completed, returning 0
– Executing Monitor(“Local/[email protected],2”, “wav49|1242196047.182| mb”) in new stack
– Executing Macro(“Local/[email protected],2”, “dial|30|Ttr|225”) in new stack
– Executing AGI(“Local/[email protected],2”, “dialparties.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Methodology of ring is 'none’
dialparties.agi: Starting New Dialparties.agi
– dialparties.agi: Added extension 500 to extension map
– dialparties.agi: priority is 1
– dialparties.agi: Extension 500 cf is disabled
dialparties.agi: Caller ID name is ‘0227559600’ number is ‘0227559600’
– dialparties.agi: Extension 500 do not disturb is disabled
dialparties.agi: Methodology of ring is ‘none’
– dialparties.agi: Added extension 225 to extension map
– dialparties.agi: Extension 225 cf is disabled
– dialparties.agi: Extension 225 do not disturb is disabled
== Parsing ‘/etc/asterisk/manager.conf’: Found
== Parsing ‘/etc/asterisk/manager_additional.conf’: Found
== Parsing ‘/etc/asterisk/manager_custom.conf’: Found
== Manager ‘admin’ logged on from 127.0.0.1
== Manager ‘admin’ logged off from 127.0.0.1
– dialparties.agi: Checking CW and CFB status for extension 500
– dialparties.agi: DbSet CALLTRACE/500 to 501
– AGI Script dialparties.agi completed, returning 0
– Executing Dial(“SIP/501-09ecf930”, “SIP/500|30|Ttr”) in new stack
== Everyone is busy/congested at this time (1:0/0/1)
– Executing GotoIf(“SIP/501-09ecf930”, “0?s-CHANUNAVAIL|1”) in new stack
– Executing GotoIf(“SIP/501-09ecf930”, “1?s-CHANUNAVAIL|1”) in new stack
– Goto (macro-exten-vm,s-CHANUNAVAIL,1)
– Executing Congestion(“SIP/501-09ecf930”, “”) in new stack
== Spawn extension (macro-exten-vm, s-CHANUNAVAIL, 1) exited non-zero on ‘SIP/501-09ecf930’ in macro ‘exten-vm’
== Spawn extension (macro-exten-vm, s-CHANUNAVAIL, 1) exited non-zero on ‘SIP/501-09ecf930’
== Parsing ‘/etc/asterisk/manager.conf’: Found
== Parsing ‘/etc/asterisk/manager_additional.conf’: Found
== Parsing ‘/etc/asterisk/manager_custom.conf’: Found
== Manager ‘admin’ logged on from 127.0.0.1
== Manager ‘admin’ logged off from 127.0.0.1
– dialparties.agi: Checking CW and CFB status for extension 225
dialparties.agi: Extension 225 is not available to be called
dialparties.agi: Extension 225 has call waiting disabled
– AGI Script dialparties.agi completed, returning 0
– Executing NoOp(“Local/[email protected],2”, “Returned from dialparties with no extensions to call”) in new stack
– Executing Set(“Local/[email protected],2”, “DIALSTATUS=BUSY”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “1?s-BUSY|1”) in new stack
– Goto (macro-exten-vm,s-BUSY,1)
– Executing NoOp(“Local/[email protected],2”, “Extension is reporting BUSY and has no Voicemail”) in new stack
– Executing Busy(“Local/[email protected],2”, “”) in new stack
– Local/[email protected],1 is busy
== Spawn extension (macro-exten-vm, s-BUSY, 2) exited non-zero on ‘Local/[email protected],2’ in macro ‘exten-vm’
== Spawn extension (macro-exten-vm, s-BUSY, 2) exited non-zero on ‘Local/[email protected],2’
– Called Local/[email protected]/n
– Executing Macro(“Local/[email protected],2”, “exten-vm|novm|211”) in new stack
– Executing Macro(“Local/[email protected],2”, “user-callerid”) in new stack
– Executing Set(“Local/[email protected],2”, “AMPUSER=”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “0?109”) in new stack
– Executing Set(“Local/[email protected],2”, “EMERGENCYCID=”) in new stack
– Executing Set(“Local/[email protected],2”, “AMPUSERCIDNAME=”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “1?7”) in new stack
– Goto (macro-user-callerid,s,7)
– Executing NoOp(“Local/[email protected],2”, “Using CallerID “0227559600” <0227559600>”) in new stack
– Executing Set(“Local/[email protected],2”, “FROMCONTEXT=exten-vm”) in new stack
– Executing Macro(“Local/[email protected],2”, “record-enable|211|IN”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “0 > 0?2:4”) in new stack
– Goto (macro-record-enable,s,4)
– Executing AGI(“Local/[email protected],2”, “recordingcheck|20090513-092729|1242196049.184”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20090513-092729|1242196049.184: Inbound recording enabled.
recordingcheck|20090513-092729|1242196049.184: CALLFILENAME=1242196049.184
– AGI Script recordingcheck completed, returning 0
– Executing Monitor(“Local/[email protected],2”, “wav49|1242196049.184| mb”) in new stack
– Executing Macro(“Local/[email protected],2”, “dial|30|Ttr|211”) in new stack
– Executing AGI(“Local/[email protected],2”, “dialparties.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
– dialparties.agi: priority is 1
dialparties.agi: Caller ID name is ‘0227559600’ number is '0227559600’
dialparties.agi: Methodology of ring is ‘none’
– dialparties.agi: Added extension 211 to extension map
– dialparties.agi: Extension 211 cf is disabled
dialparties.agi: Extension 211 has do not disturb enabled
– AGI Script dialparties.agi completed, returning 0
– Executing NoOp(“Local/[email protected],2”, “Returned from dialparties with no extensions to call”) in new stack
– Executing Set(“Local/[email protected],2”, “DIALSTATUS=BUSY”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “1?s-BUSY|1”) in new stack
– Goto (macro-exten-vm,s-BUSY,1)
– Executing NoOp(“Local/[email protected],2”, “Extension is reporting BUSY and has no Voicemail”) in new stack
– Executing Busy(“Local/[email protected],2”, “”) in new stack
– Local/[email protected],1 is busy
== Spawn extension (macro-exten-vm, s-BUSY, 2) exited non-zero on ‘Local/[email protected],2’ in macro ‘exten-vm’
== Spawn extension (macro-exten-vm, s-BUSY, 2) exited non-zero on ‘Local/[email protected],2’
== Spawn extension (macro-dial, s, 10) exited non-zero on ‘Local/[email protected],2’ in macro ‘dial’
== Spawn extension (macro-dial, s, 10) exited non-zero on ‘Local/[email protected],2’ in macro ‘exten-vm’
== Spawn extension (macro-dial, s, 10) exited non-zero on ‘Local/[email protected],2’
== Spawn extension (ext-queues, 100, 7) exited non-zero on ‘Zap/25-1’
– Hungup ‘Zap/25-1’
– Stopped music on hold on Zap/27-1
– Playing periodic announcement
– Playing ‘custom/Busy’ (language ‘en’)
– Called Local/[email protected]/n
– Executing Macro(“Local/[email protected],2”, “exten-vm|novm|221”) in new stack
– Executing Macro(“Local/[email protected],2”, “user-callerid”) in new stack
– Executing Set(“Local/[email protected],2”, “AMPUSER=”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “0?109”) in new stack
– Executing Set(“Local/[email protected],2”, “EMERGENCYCID=”) in new stack
– Executing Set(“Local/[email protected],2”, “AMPUSERCIDNAME=”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “1?7”) in new stack
– Goto (macro-user-callerid,s,7)
– Executing NoOp(“Local/[email protected],2”, “Using CallerID “0227559600” <0227559600>”) in new stack
– Executing Set(“Local/[email protected],2”, “FROMCONTEXT=exten-vm”) in new stack
– Executing Macro(“Local/[email protected],2”, “record-enable|221|IN”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “0 > 0?2:4”) in new stack
– Goto (macro-record-enable,s,4)
– Executing AGI(“Local/[email protected],2”, “recordingcheck|20090513-092731|1242196051.186”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20090513-092731|1242196051.186: Inbound recording enabled.
recordingcheck|20090513-092731|1242196051.186: CALLFILENAME=1242196051.186
– AGI Script recordingcheck completed, returning 0
– Executing Monitor(“Local/[email protected],2”, “wav49|1242196051.186| mb”) in new stack
– Executing Macro(“Local/[email protected],2”, “dial|30|Ttr|221”) in new stack
– Executing AGI(“Local/[email protected],2”, “dialparties.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
– dialparties.agi: priority is 1
dialparties.agi: Caller ID name is ‘0227559600’ number is '0227559600’
dialparties.agi: Methodology of ring is ‘none’
– dialparties.agi: Added extension 221 to extension map
– dialparties.agi: Extension 221 cf is disabled
– dialparties.agi: Extension 221 do not disturb is disabled
== Parsing ‘/etc/asterisk/manager.conf’: Found
== Parsing ‘/etc/asterisk/manager_additional.conf’: Found
== Parsing ‘/etc/asterisk/manager_custom.conf’: Found
== Manager ‘admin’ logged on from 127.0.0.1
== Manager ‘admin’ logged off from 127.0.0.1
– dialparties.agi: Checking CW and CFB status for extension 221
dialparties.agi: Extension 221 is not available to be called
dialparties.agi: Extension 221 has call waiting disabled
– AGI Script dialparties.agi completed, returning 0
– Executing NoOp(“Local/[email protected],2”, “Returned from dialparties with no extensions to call”) in new stack
– Executing Set(“Local/[email protected],2”, “DIALSTATUS=BUSY”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “1?s-BUSY|1”) in new stack
– Goto (macro-exten-vm,s-BUSY,1)
– Executing NoOp(“Local/[email protected],2”, “Extension is reporting BUSY and has no Voicemail”) in new stack
– Executing Busy(“Local/[email protected],2”, “”) in new stack
– Local/[email protected],1 is busy
– Called Local/[email protected]/n
== Spawn extension (macro-exten-vm, s-BUSY, 2) exited non-zero on ‘Local/[email protected],2’ in macro ‘exten-vm’
== Spawn extension (macro-exten-vm, s-BUSY, 2) exited non-zero on ‘Local/[email protected],2’
– Executing Macro(“Local/[email protected],2”, “exten-vm|novm|225”) in new stack
– Executing Macro(“Local/[email protected],2”, “user-callerid”) in new stack
– Executing Set(“Local/[email protected],2”, “AMPUSER=”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “0?109”) in new stack
– Executing Set(“Local/[email protected],2”, “EMERGENCYCID=”) in new stack
– Executing Set(“Local/[email protected],2”, “AMPUSERCIDNAME=”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “1?7”) in new stack
– Goto (macro-user-callerid,s,7)
– Executing NoOp(“Local/[email protected],2”, “Using CallerID “0227559600” <0227559600>”) in new stack
– Executing Set(“Local/[email protected],2”, “FROMCONTEXT=exten-vm”) in new stack
– Executing Macro(“Local/[email protected],2”, “record-enable|225|IN”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “0 > 0?2:4”) in new stack
– Goto (macro-record-enable,s,4)
– Executing AGI(“Local/[email protected],2”, “recordingcheck|20090513-092731|1242196051.188”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20090513-092731|1242196051.188: Inbound recording enabled.
recordingcheck|20090513-092731|1242196051.188: CALLFILENAME=1242196051.188
– AGI Script recordingcheck completed, returning 0
– Executing Monitor(“Local/[email protected],2”, “wav49|1242196051.188| mb”) in new stack
– Executing Macro(“Local/[email protected],2”, “dial|30|Ttr|225”) in new stack
– Executing AGI(“Local/[email protected],2”, “dialparties.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
– dialparties.agi: priority is 1
dialparties.agi: Caller ID name is ‘0227559600’ number is '0227559600’
dialparties.agi: Methodology of ring is 'none’
asterisk*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
[[email protected] ~]#