Problem with Dialparties.agi

No calls that find their way through dialparties.agi ever make it through.

Outbound calls work fine, and on an incoming call the IVR picks up, but extension to extension calls and ring groups fail.

If I call another extension, there is silence for a minute than it starts to ring indefinitely.

Below is my logfile.

Thanks for the help,

Eddie Schnell

[Jun 1 00:34:47] VERBOSE[2636] pbx.c: – Executing [s@macro-user-callerid:19] NoOp(“SIP/205-0000000e”, “Using CallerID “Eddie Schnell” <205>”) in new stack
[Jun 1 00:34:47] VERBOSE[2636] pbx.c: – Executing [s@macro-exten-vm:2] Set(“SIP/205-0000000e”, “RingGroupMethod=none”) in new stack
[Jun 1 00:34:47] VERBOSE[2636] pbx.c: – Executing [s@macro-exten-vm:3] Set(“SIP/205-0000000e”, “VMBOX=205”) in new stack
[Jun 1 00:34:47] VERBOSE[2636] pbx.c: – Executing [s@macro-exten-vm:4] Set(“SIP/205-0000000e”, “EXTTOCALL=205”) in new stack
[Jun 1 00:34:47] VERBOSE[2636] pbx.c: – Executing [s@macro-exten-vm:5] Set(“SIP/205-0000000e”, “CFUEXT=”) in new stack
[Jun 1 00:34:47] VERBOSE[2636] pbx.c: – Executing [s@macro-exten-vm:6] Set(“SIP/205-0000000e”, “CFBEXT=”) in new stack
[Jun 1 00:34:47] VERBOSE[2636] pbx.c: – Executing [s@macro-exten-vm:7] Set(“SIP/205-0000000e”, “RT=15”) in new stack
[Jun 1 00:34:47] VERBOSE[2636] pbx.c: – Executing [s@macro-exten-vm:8] Macro(“SIP/205-0000000e”, “record-enable,205,IN”) in new stack
[Jun 1 00:34:47] VERBOSE[2636] pbx.c: – Executing [s@macro-record-enable:1] GotoIf(“SIP/205-0000000e”, “1?check”) in new stack
[Jun 1 00:34:47] VERBOSE[2636] pbx.c: – Goto (macro-record-enable,s,4)
[Jun 1 00:34:47] VERBOSE[2636] pbx.c: – Executing [s@macro-record-enable:4] ExecIf(“SIP/205-0000000e”, “0?MacroExit()”) in new stack
[Jun 1 00:34:47] VERBOSE[2636] pbx.c: – Executing [s@macro-record-enable:5] GotoIf(“SIP/205-0000000e”, “0?Group:OUT”) in new stack
[Jun 1 00:34:47] VERBOSE[2636] pbx.c: – Goto (macro-record-enable,s,15)
[Jun 1 00:34:47] VERBOSE[2636] pbx.c: – Executing [s@macro-record-enable:15] GotoIf(“SIP/205-0000000e”, “1?IN”) in new stack
[Jun 1 00:34:47] VERBOSE[2636] pbx.c: – Goto (macro-record-enable,s,20)
[Jun 1 00:34:47] VERBOSE[2636] pbx.c: – Executing [s@macro-record-enable:20] ExecIf(“SIP/205-0000000e”, “1?MacroExit()”) in new stack
[Jun 1 00:34:47] VERBOSE[2636] pbx.c: – Executing [s@macro-exten-vm:9] Macro(“SIP/205-0000000e”, “dial,15,tr,205”) in new stack
[Jun 1 00:34:47] VERBOSE[2636] pbx.c: – Executing [s@macro-dial:1] GotoIf(“SIP/205-0000000e”, “1?dial”) in new stack
[Jun 1 00:34:47] VERBOSE[2636] pbx.c: – Goto (macro-dial,s,3)
[Jun 1 00:34:47] VERBOSE[2636] pbx.c: – Executing [s@macro-dial:3] AGI(“SIP/205-0000000e”, “dialparties.agi”) in new stack
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: – Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: AGI Request:
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: Array
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: (
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [agi_request] => dialparties.agi
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [agi_channel] => SIP/205-0000000e
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [agi_language] => en
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [agi_type] => SIP
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [agi_uniqueid] => 1275366887.14
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [agi_version] => 1.6.2.2
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [agi_callerid] => 205
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [agi_calleridname] => Eddie Schnell
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [agi_callingpres] => 0
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [agi_callingani2] => 0
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [agi_callington] => 0
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [agi_callingtns] => 0
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [agi_dnid] => 205
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [agi_rdnis] => unknown
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [agi_context] => macro-dial
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [agi_extension] => s
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [agi_priority] => 3
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [agi_enhanced] => 0.0
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [agi_accountcode] =>
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [agi_threadid] => 73050992
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: )
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi:
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: PHPAGI internal configuration:
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: Array
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: (
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [phpagi] => Array
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: (
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [debug] => 1
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [error_handler] =>
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [admin] => [email protected]
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [hostname] => xxxx.net
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [tempdir] => /tmp
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: )
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi:
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [asmanager] => Array
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: (
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [server] => localhost
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [port] => 5038
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [username] => nope
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [secret] => get a life
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: )
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi:
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [fastagi] => Array
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: (
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [setuid] =>
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [basedir] => /var/lib/asterisk/agi-bin/
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: )
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi:
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [festival] => Array
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: (
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [text2wave] => /usr/bin/text2wave
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: )
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi:
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [cepstral] => Array
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: (
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [swift] => /opt/swift/bin/swift
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: [voice] => Allison-8kHz
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: )
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi:
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: )
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi:
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: Starting New Dialparties.agi
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: Caller ID name is ‘Eddie Schnell’ number is ‘205’
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: dialparties.agi: Methodology of ring is ‘none’
[Jun 1 00:34:47] VERBOSE[2636] res_agi.c: – dialparties.agi: Added extension 205 to extension map
[Jun 1 00:36:29] VERBOSE[2636] res_agi.c: – <SIP/205-0000000e>AGI Script dialparties.agi completed, returning -1
[Jun 1 00:36:29] VERBOSE[2636] pbx.c: – Executing [h@from-internal:1] Macro(“SIP/205-0000000e”, “hangupcall”) in new stack
[Jun 1 00:36:29] VERBOSE[2636] pbx.c: – Executing [s@macro-hangupcall:1] GotoIf(“SIP/205-0000000e”, “1?skiprg”) in new stack
[Jun 1 00:36:29] VERBOSE[2636] pbx.c: – Goto (macro-hangupcall,s,4)
[Jun 1 00:36:29] VERBOSE[2636] pbx.c: – Executing [s@macro-hangupcall:4] GotoIf(“SIP/205-0000000e”, “1?skipblkvm”) in new stack
[Jun 1 00:36:29] VERBOSE[2636] pbx.c: – Goto (macro-hangupcall,s,7)
[Jun 1 00:36:29] VERBOSE[2636] pbx.c: – Executing [s@macro-hangupcall:7] GotoIf(“SIP/205-0000000e”, “1?theend”) in new stack
[Jun 1 00:36:29] VERBOSE[2636] pbx.c: – Goto (macro-hangupcall,s,9)
[Jun 1 00:36:29] VERBOSE[2636] pbx.c: – Executing [s@macro-hangupcall:9] Hangup(“SIP/205-0000000e”, “”) in new stack
[Jun 1 00:36:29] VERBOSE[2636] app_macro.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘SIP/205-0000000e’ in macro ‘hangupcall’
[Jun 1 00:36:29] VERBOSE[2636] pbx.c: == Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/205-0000000e’

first off what version of FreePBX

second - looks like your dialplarties.agi script is crashing.

Go pull an original copy from the version of FreePBX that you are using and put it into the /var/www/html/admin/modules/core/agi-bin directory and then press the Apply Configuration Settings orange bar to make sure it is copied back in place.

Make sure there are no warnings in the notification panel concerning errors trying to copy your script in place after that.

FreePBX 2.7.02
Asterisk 1.6
Ubuntu 9.10

Now I get this:

[Jun 1 14:36:37] VERBOSE[1733] netsock.c: == Using SIP RTP TOS bits 184
[Jun 1 14:36:37] VERBOSE[1733] netsock.c: == Using SIP RTP CoS mark 5
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [205@from-internal:1] Macro(“SIP/205-00000022”, “exten-vm,205,205”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-exten-vm:1] Macro(“SIP/205-00000022”, “user-callerid,”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-user-callerid:1] Set(“SIP/205-00000022”, “AMPUSER=205”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-user-callerid:2] GotoIf(“SIP/205-00000022”, “0?report”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-user-callerid:3] ExecIf(“SIP/205-00000022”, “1?Set(REALCALLERIDNUM=205)”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-user-callerid:4] Set(“SIP/205-00000022”, “AMPUSER=205”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-user-callerid:5] Set(“SIP/205-00000022”, “AMPUSERCIDNAME=Eddie Schnell”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-user-callerid:6] GotoIf(“SIP/205-00000022”, “0?report”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-user-callerid:7] Set(“SIP/205-00000022”, “AMPUSERCID=205”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-user-callerid:8] Set(“SIP/205-00000022”, “CALLERID(all)=“Eddie Schnell” <205>”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-user-callerid:9] ExecIf(“SIP/205-00000022”, “0?Set(CHANNEL(language)=)”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-user-callerid:10] GotoIf(“SIP/205-00000022”, “0?continue”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-user-callerid:11] Set(“SIP/205-00000022”, “__TTL=64”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-user-callerid:12] GotoIf(“SIP/205-00000022”, “1?continue”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Goto (macro-user-callerid,s,19)
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-user-callerid:19] NoOp(“SIP/205-00000022”, “Using CallerID “Eddie Schnell” <205>”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-exten-vm:2] Set(“SIP/205-00000022”, “RingGroupMethod=none”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-exten-vm:3] Set(“SIP/205-00000022”, “VMBOX=205”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-exten-vm:4] Set(“SIP/205-00000022”, “EXTTOCALL=205”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-exten-vm:5] Set(“SIP/205-00000022”, “CFUEXT=”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-exten-vm:6] Set(“SIP/205-00000022”, “CFBEXT=”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-exten-vm:7] Set(“SIP/205-00000022”, “RT=15”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-exten-vm:8] Macro(“SIP/205-00000022”, “record-enable,205,IN”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-record-enable:1] GotoIf(“SIP/205-00000022”, “1?check”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Goto (macro-record-enable,s,4)
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-record-enable:4] ExecIf(“SIP/205-00000022”, “0?MacroExit()”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-record-enable:5] GotoIf(“SIP/205-00000022”, “0?Group:OUT”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Goto (macro-record-enable,s,15)
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-record-enable:15] GotoIf(“SIP/205-00000022”, “1?IN”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Goto (macro-record-enable,s,20)
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-record-enable:20] ExecIf(“SIP/205-00000022”, “1?MacroExit()”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-exten-vm:9] Macro(“SIP/205-00000022”, “dial,15,tr,205”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-dial:1] GotoIf(“SIP/205-00000022”, “1?dial”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Goto (macro-dial,s,3)
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-dial:3] AGI(“SIP/205-00000022”, “dialparties.agi”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] res_agi.c: – Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
[Jun 1 14:36:37] ERROR[7156] utils.c: write() returned error: Broken pipe
[Jun 1 14:36:37] VERBOSE[7156] res_agi.c: – <SIP/205-00000022>AGI Script dialparties.agi completed, returning 0
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-dial:4] NoOp(“SIP/205-00000022”, “Returned from dialparties with no extensions to call and DIALSTATUS: “) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-exten-vm:10] GotoIf(“SIP/205-00000022”, “0?exit,return”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-exten-vm:11] Set(“SIP/205-00000022”, “SV_DIALSTATUS=”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-exten-vm:12] GosubIf(“SIP/205-00000022”, “0?docfu,1”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-exten-vm:13] GosubIf(“SIP/205-00000022”, “0?docfb,1”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-exten-vm:14] Set(“SIP/205-00000022”, “DIALSTATUS=”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-exten-vm:15] NoOp(“SIP/205-00000022”, “Voicemail is ‘205’”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-exten-vm:16] GotoIf(“SIP/205-00000022”, “0?s-,1”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-exten-vm:17] NoOp(“SIP/205-00000022”, “Sending to Voicemail box 205”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-exten-vm:18] Macro(“SIP/205-00000022”, “vm,205,”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-vm:1] Macro(“SIP/205-00000022”, “user-callerid,SKIPTTL”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-user-callerid:1] Set(“SIP/205-00000022”, “AMPUSER=205”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-user-callerid:2] GotoIf(“SIP/205-00000022”, “0?report”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-user-callerid:3] ExecIf(“SIP/205-00000022”, “0?Set(REALCALLERIDNUM=205)”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-user-callerid:4] Set(“SIP/205-00000022”, “AMPUSER=205”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-user-callerid:5] Set(“SIP/205-00000022”, “AMPUSERCIDNAME=Eddie Schnell”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-user-callerid:6] GotoIf(“SIP/205-00000022”, “0?report”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-user-callerid:7] Set(“SIP/205-00000022”, “AMPUSERCID=205”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-user-callerid:8] Set(“SIP/205-00000022”, “CALLERID(all)=“Eddie Schnell” <205>”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-user-callerid:9] ExecIf(“SIP/205-00000022”, “0?Set(CHANNEL(language)=)”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-user-callerid:10] GotoIf(“SIP/205-00000022”, “1?continue”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Goto (macro-user-callerid,s,19)
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-user-callerid:19] NoOp(“SIP/205-00000022”, “Using CallerID “Eddie Schnell” <205>”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-vm:2] Set(“SIP/205-00000022”, “VMGAIN=”””) in new stack
[Jun 1 14:36:37] WARNING[7156] func_db.c: DB requires an argument, DB(/)
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-vm:3] GotoIf(“SIP/205-00000022”, “1?vmx,1”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Goto (macro-vm,vmx,1)
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [vmx@macro-vm:1] Set(“SIP/205-00000022”, “MEXTEN=205”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [vmx@macro-vm:2] Set(“SIP/205-00000022”, “MMODE=”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [vmx@macro-vm:3] Set(“SIP/205-00000022”, “RETVM=”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [vmx@macro-vm:4] Set(“SIP/205-00000022”, “MODE=unavail”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [vmx@macro-vm:5] GotoIf(“SIP/205-00000022”, “1?chknomsg”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Goto (macro-vm,vmx,7)
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [vmx@macro-vm:7] GotoIf(“SIP/205-00000022”, “0?s-,1”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [vmx@macro-vm:8] GotoIf(“SIP/205-00000022”, “1?notdirect”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Goto (macro-vm,vmx,10)
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [vmx@macro-vm:10] NoOp(“SIP/205-00000022”, "Checking if ext 205 is enabled: ") in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [vmx@macro-vm:11] GotoIf(“SIP/205-00000022”, “1?s-,1”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Goto (macro-vm,s-,1)
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [205@from-internal:2] Goto(“SIP/205-00000022”, “vmret,1”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Goto (from-internal,vmret,1)
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [vmret@from-internal:1] GotoIf(“SIP/205-00000022”, “0?playret”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [vmret@from-internal:2] Hangup(“SIP/205-00000022”, “”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: == Spawn extension (from-internal, vmret, 2) exited non-zero on ‘SIP/205-00000022’
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [h@from-internal:1] Macro(“SIP/205-00000022”, “hangupcall”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-hangupcall:1] GotoIf(“SIP/205-00000022”, “1?skiprg”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Goto (macro-hangupcall,s,4)
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-hangupcall:4] GotoIf(“SIP/205-00000022”, “1?skipblkvm”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Goto (macro-hangupcall,s,7)
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-hangupcall:7] GotoIf(“SIP/205-00000022”, “1?theend”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Goto (macro-hangupcall,s,9)
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: – Executing [s@macro-hangupcall:9] Hangup(“SIP/205-00000022”, “”) in new stack
[Jun 1 14:36:37] VERBOSE[7156] app_macro.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘SIP/205-00000022’ in macro ‘hangupcall’
[Jun 1 14:36:37] VERBOSE[7156] pbx.c: == Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/205-00000022’

The phone says Declined.

I think I found out what caused it though. I wrote an AGI script using PHPAGI. I put a copy of PHPAGI into /usr/share/php, which is an PHP include directory. I have since renamed the files to .old, but it is still not working.

Also, what should the permissions be on dialparties.agi while in the agi-bin directory?
They are -rwxrwxr-- right now, owned by asterisk:asterisk

Thanks for the help,
Eddie

If I run this command:

time /bin/echo -e \n\n\n\n\n | /var/lib/asterisk/agi-bin/dialparties.agi

I get this:

Extension ‘/var/lib/asterisk/agi-bin/dialparties.agi’ not present.

real 0m0.026s
user 0m0.020s
sys 0m0.012s

Thanks

the fact that something has changed would seem to indicate that there have been other things you have been doing to this system that are not mentioned here.

It does not just stop working like that.

This time you end up with this line after dialparties.agi started up:

[Jun 1 14:36:37] ERROR[7156] utils.c: write() returned error: Broken pipe

you should back track as to what you did to your system that started all this as it sure does not look like the result of anything in FreePBX changing.

I downloaded a fresh copy of FreePBX onto the server, copied the dialparties.agi into /var/www/html/admin/modules/core/agi-bin, removed the one in /var/lib/asterisk/agi-bin. I put the phpagi.php and phpagi-asmanager.php from the FreePBX download into /var/lib/asterisk/agi-bin. Still no beans.

I removed the [asmanager] part from /etc/asterisk/phpagi.conf and it works like a charm, and the AGI scripts are still working as well.

Thanks for the help, I would have never thought to replace dialparties.agi.

Eddie Schnell