When I receive a call from the PSTN into a DAHDI extension, I can’t see the caller ID. I’m in Brazil. My DADHI card is a Digium AEX422 and I use ASterisk 1.6.0.9 and DAHDI 2.1.0.4.
Does anyone have any idea?
Thank you so much!
[quote=“lcvleo”]When I receive a call from the PSTN into a DAHDI extension, I can’t see the caller ID. I’m in Brazil. My DADHI card is a Digium AEX422 and I use ASterisk 1.6.0.9 and DAHDI 2.1.0.4.
Does anyone have any idea?
Thank you so much![/quote]
-
Does your subscription with your Telco supports the forwarding of Call-ID’s ?
I, for instance, had to upgrade my subscription to include this feature -
in chan_dahdi.conf, have you included the option “callerid = asreceived” ?
Yes, I have the service CallerID enabled on my line and this option is enabled in chan_dahdi.conf.
what is the output of Verbose(Caller ${CALLERID(num)} ) on a call? If you have everything enabled and the right settings in your chan_dahdi.conf, this should tell you the number of any unblocked caller.
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Starting simple switch on ‘DAHDI/1-1’
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [s@from-pstn:1] Set(“DAHDI/1-1”, “__FROM_DID=s”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [s@from-pstn:2] Gosub(“DAHDI/1-1”, “app-blacklist-check,s,1”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [s@app-blacklist-check:1] GotoIf(“DAHDI/1-1”, “0?blacklisted”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [s@app-blacklist-check:2] Return(“DAHDI/1-1”, “”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [s@from-pstn:3] ExecIf(“DAHDI/1-1”, “1 ?Set(CALLERID(name)=)”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [s@from-pstn:4] Set(“DAHDI/1-1”, “FAX_RX=disabled”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [s@from-pstn:5] Set(“DAHDI/1-1”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [s@from-pstn:6] Set(“DAHDI/1-1”, “CALLERPRES()=allowed_not_screened”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [s@from-pstn:7] Goto(“DAHDI/1-1”, “app-daynight,0,1”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Goto (app-daynight,0,1)
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [0@app-daynight:1] GotoIf(“DAHDI/1-1”, “1?ext-group,601,1:ext-group,600,1”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Goto (ext-group,601,1)
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [601@ext-group:1] Macro(“DAHDI/1-1”, “user-callerid,”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [s@macro-user-callerid:1] Set(“DAHDI/1-1”, “AMPUSER=”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [s@macro-user-callerid:2] GotoIf(“DAHDI/1-1”, “0?report”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [s@macro-user-callerid:3] ExecIf(“DAHDI/1-1”, “1?Set(REALCALLERIDNUM=)”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [s@macro-user-callerid:4] Set(“DAHDI/1-1”, “AMPUSER=”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [s@macro-user-callerid:5] Set(“DAHDI/1-1”, “AMPUSERCIDNAME=”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [s@macro-user-callerid:6] GotoIf(“DAHDI/1-1”, “1?report”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Goto (macro-user-callerid,s,11)
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [s@macro-user-callerid:11] GotoIf(“DAHDI/1-1”, “0?continue”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [s@macro-user-callerid:12] Set(“DAHDI/1-1”, “__TTL=64”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [s@macro-user-callerid:13] GotoIf(“DAHDI/1-1”, “1?continue”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Goto (macro-user-callerid,s,20)
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [s@macro-user-callerid:20] NoOp(“DAHDI/1-1”, “Using CallerID “” <>”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [601@ext-group:2] GotoIf(“DAHDI/1-1”, “1?skipdb”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Goto (ext-group,601,4)
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [601@ext-group:4] Set(“DAHDI/1-1”, “__NODEST=”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [601@ext-group:5] Set(“DAHDI/1-1”, “__BLKVM_OVERRIDE=BLKVM/601/DAHDI/1-1”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [601@ext-group:6] Set(“DAHDI/1-1”, “__BLKVM_BASE=601”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [601@ext-group:7] Set(“DAHDI/1-1”, “DB(BLKVM/601/DAHDI/1-1)=TRUE”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [601@ext-group:8] Set(“DAHDI/1-1”, “RRNODEST=”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [601@ext-group:9] Set(“DAHDI/1-1”, “__NODEST=601”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [601@ext-group:10] Set(“DAHDI/1-1”, “RecordMethod=Group”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [601@ext-group:11] Macro(“DAHDI/1-1”, “record-enable,6100-6200,Group”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [s@macro-record-enable:1] GotoIf(“DAHDI/1-1”, “1?check”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Goto (macro-record-enable,s,4)
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [s@macro-record-enable:4] AGI(“DAHDI/1-1”, “recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: PHPAGI internal configuration:
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: Array
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: (
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: [phpagi] => Array
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: (
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: [debug] => 1
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: [error_handler] => 1
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: [admin] => xxxx
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: [hostname] => xxxx
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: [tempdir] => /tmp
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: )
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27:
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: [asmanager] => Array
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: (
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: [server] => localhost
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: [port] => 5038
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: [username] => xxxx
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: [secret] => xxxxx
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: )
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27:
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: [fastagi] => Array
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: (
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: [setuid] => 1
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: [basedir] => /var/lib/asterisk/agi-bin/
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: )
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27:
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: [festival] => Array
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: (
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: [text2wave] => /usr/bin/text2wave
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: )
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27:
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: [cepstral] => Array
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: (
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: [swift] =>
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: [voice] =>
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: )
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27:
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27: )
[Jun 3 11:45:05] VERBOSE[19820] logger.c: recordingcheck,20090603-114505,dtserv.dtett.net-1244040305.27:
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – <DAHDI/1-1>AGI Script recordingcheck completed, returning 0
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [s@macro-record-enable:5] MacroExit(“DAHDI/1-1”, “”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [601@ext-group:12] Set(“DAHDI/1-1”, “RingGroupMethod=ringall”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [601@ext-group:13] Macro(“DAHDI/1-1”, “dial,20,tr,6100-6200”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [s@macro-dial:1] GotoIf(“DAHDI/1-1”, “1?dial”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Goto (macro-dial,s,3)
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Executing [s@macro-dial:3] AGI(“DAHDI/1-1”, “dialparties.agi”) in new stack
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: PHPAGI internal configuration:
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: Array
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: (
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: [phpagi] => Array
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: (
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: [debug] => 1
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: [error_handler] => 1
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: [admin] => xxxx
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: [hostname] => xxxx
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: [tempdir] => /tmp
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: )
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi:
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: [asmanager] => Array
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: (
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: [server] => localhost
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: [port] => 5038
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: [username] => xxxx
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: [secret] => xxxx
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: )
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi:
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: [fastagi] => Array
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: (
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: [setuid] => 1
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: [basedir] => /var/lib/asterisk/agi-bin/
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: )
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi:
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: [festival] => Array
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: (
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: [text2wave] => /usr/bin/text2wave
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: )
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi:
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: [cepstral] => Array
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: (
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: [swift] =>
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: [voice] =>
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: )
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi:
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: )
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi:
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: Starting New Dialparties.agi
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: Caller ID name is ‘unknown’ number is ‘unknown’
[Jun 3 11:45:05] VERBOSE[19820] logger.c: > dialparties.agi: USE_CONFIRMATION: ‘FALSE’
[Jun 3 11:45:05] VERBOSE[19820] logger.c: > dialparties.agi: RINGGROUP_INDEX: ‘’
[Jun 3 11:45:05] VERBOSE[19820] logger.c: dialparties.agi: Methodology of ring is ‘ringall’
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – dialparties.agi: Added extension 6100 to extension map
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – dialparties.agi: Added extension 6200 to extension map
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – dialparties.agi: Extension 6100 cf is disabled
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – dialparties.agi: Extension 6200 cf is disabled
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – dialparties.agi: Extension 6100 do not disturb is disabled
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – dialparties.agi: Extension 6200 do not disturb is disabled
[Jun 3 11:45:05] VERBOSE[19820] logger.c: > dialparties.agi: extnum 6100 has: cw: 1; hascfb: 0 hascfu: 0
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – dialparties.agi: DbDel CALLTRACE/6100 - Caller ID is not defined
[Jun 3 11:45:05] VERBOSE[19820] logger.c: > dialparties.agi: extnum 6200 has: cw: 1; hascfb: 0 hascfu: 0
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – dialparties.agi: DbDel CALLTRACE/6200 - Caller ID is not defined
[Jun 3 11:45:05] VERBOSE[19820] logger.c: – dialparties.agi: Filtered ARG3: 6100-6200
[Jun 3 11:45:05] VERBOSE[19820] logger.c: > dialparties.agi: NODEST: 601 adding M(auto-blkvm) to dialopts: trM(auto-blkvm)
[Jun 3 11:45:05] VERBOSE[19820] logger.c: > dialparties.agi: NODEST: 601 blkvm enabled macro already in dialopts: trM(auto-blkvm)
[Jun 3 11:45:10] VERBOSE[19820] logger.c: – <DAHDI/1-1>AGI Script dialparties.agi completed, returning 0
[Jun 3 11:45:10] VERBOSE[19820] logger.c: – Executing [s@macro-dial:7] Dial(“DAHDI/1-1”, “DAHDI/3&DAHDI/4,20,trM(auto-blkvm)”) in new stack
[Jun 3 11:45:10] VERBOSE[19820] logger.c: – Called 3
[Jun 3 11:45:10] VERBOSE[19820] logger.c: – Called 4
[Jun 3 11:45:10] VERBOSE[19820] logger.c: – DAHDI/3-1 is ringing
[Jun 3 11:45:10] VERBOSE[19820] logger.c: – DAHDI/4-1 is ringing
Put a verbose in macro-dial so we can see if CALLERID(num) is present before the AGI starts.
I’m sorry, but I don’t understand what you want that I do.
I am inexperienced and beginner with Asterisk.
If you can explain better, I am immensely grateful.
in your dialplan (extensions.conf) there is a section [macro-dial] that reads something like this
exten => s,1,Gotoif…
exten => …
exten => s,3,AGI(dialparties.agi)
insert this
exten => s,3,Verbose( passed id is ${CALLERID(num)} )
exten => s,4,AGI(dialparties.agi)
Do a dialplan reload and try it again.
[quote=“sethsdad0627”]in your dialplan (extensions.conf) there is a section [macro-dial] that reads something like this
exten => s,1,Gotoif…
exten => …
exten => s,3,AGI(dialparties.agi)
insert this
exten => s,3,Verbose( passed id is ${CALLERID(num)} )
exten => s,4,AGI(dialparties.agi)
Do a dialplan reload and try it again.[/quote]
This is the output after the modification that you suggested me:
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Starting simple switch on ‘DAHDI/1-1’
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [s@from-pstn:1] Set(“DAHDI/1-1”, “__FROM_DID=s”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [s@from-pstn:2] Gosub(“DAHDI/1-1”, “app-blacklist-check,s,1”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [s@app-blacklist-check:1] GotoIf(“DAHDI/1-1”, “0?blacklisted”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [s@app-blacklist-check:2] Return(“DAHDI/1-1”, “”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [s@from-pstn:3] ExecIf(“DAHDI/1-1”, “1 ?Set(CALLERID(name)=)”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [s@from-pstn:4] Set(“DAHDI/1-1”, “FAX_RX=disabled”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [s@from-pstn:5] Set(“DAHDI/1-1”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [s@from-pstn:6] Set(“DAHDI/1-1”, “CALLERPRES()=allowed_not_screened”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [s@from-pstn:7] Goto(“DAHDI/1-1”, “app-daynight,0,1”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Goto (app-daynight,0,1)
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [0@app-daynight:1] GotoIf(“DAHDI/1-1”, “1?ext-group,601,1:ext-group,600,1”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Goto (ext-group,601,1)
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [601@ext-group:1] Macro(“DAHDI/1-1”, “user-callerid,”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [s@macro-user-callerid:1] Set(“DAHDI/1-1”, “AMPUSER=”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [s@macro-user-callerid:2] GotoIf(“DAHDI/1-1”, “0?report”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [s@macro-user-callerid:3] ExecIf(“DAHDI/1-1”, “1?Set(REALCALLERIDNUM=)”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [s@macro-user-callerid:4] Set(“DAHDI/1-1”, “AMPUSER=”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [s@macro-user-callerid:5] Set(“DAHDI/1-1”, “AMPUSERCIDNAME=”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [s@macro-user-callerid:6] GotoIf(“DAHDI/1-1”, “1?report”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Goto (macro-user-callerid,s,11)
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [s@macro-user-callerid:11] GotoIf(“DAHDI/1-1”, “0?continue”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [s@macro-user-callerid:12] Set(“DAHDI/1-1”, “__TTL=64”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [s@macro-user-callerid:13] GotoIf(“DAHDI/1-1”, “1?continue”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Goto (macro-user-callerid,s,20)
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [s@macro-user-callerid:20] NoOp(“DAHDI/1-1”, “Using CallerID “” <>”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [601@ext-group:2] GotoIf(“DAHDI/1-1”, “1?skipdb”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Goto (ext-group,601,4)
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [601@ext-group:4] Set(“DAHDI/1-1”, “__NODEST=”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [601@ext-group:5] Set(“DAHDI/1-1”, “__BLKVM_OVERRIDE=BLKVM/601/DAHDI/1-1”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [601@ext-group:6] Set(“DAHDI/1-1”, “__BLKVM_BASE=601”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [601@ext-group:7] Set(“DAHDI/1-1”, “DB(BLKVM/601/DAHDI/1-1)=TRUE”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [601@ext-group:8] Set(“DAHDI/1-1”, “RRNODEST=”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [601@ext-group:9] Set(“DAHDI/1-1”, “__NODEST=601”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [601@ext-group:10] Set(“DAHDI/1-1”, “RecordMethod=Group”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [601@ext-group:11] Macro(“DAHDI/1-1”, “record-enable,6100-6200,Group”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [s@macro-record-enable:1] GotoIf(“DAHDI/1-1”, “1?check”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Goto (macro-record-enable,s,4)
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [s@macro-record-enable:4] AGI(“DAHDI/1-1”, “recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: PHPAGI internal configuration:
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: Array
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: (
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: [phpagi] => Array
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: (
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: [debug] => 1
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: [error_handler] => 1
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: [admin] => xxxx
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: [hostname] => xxxx
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: [tempdir] => /tmp
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: )
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3:
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: [asmanager] => Array
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: (
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: [server] => localhost
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: [port] => 5038
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: [username] => xxxx
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: [secret] => xxxx
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: )
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3:
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: [fastagi] => Array
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: (
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: [setuid] => 1
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: [basedir] => /var/lib/asterisk/agi-bin/
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: )
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3:
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: [festival] => Array
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: (
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: [text2wave] => /usr/bin/text2wave
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: )
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3:
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: [cepstral] => Array
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: (
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: [swift] =>
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: [voice] =>
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: )
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3:
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3: )
[Jun 3 12:53:13] VERBOSE[20552] logger.c: recordingcheck,20090603-125313,dtserv.dtett.net-1244044393.3:
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – <DAHDI/1-1>AGI Script recordingcheck completed, returning 0
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [s@macro-record-enable:5] MacroExit(“DAHDI/1-1”, “”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [601@ext-group:12] Set(“DAHDI/1-1”, “RingGroupMethod=ringall”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [601@ext-group:13] Macro(“DAHDI/1-1”, “dial,20,tr,6100-6200”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [s@macro-dial:1] GotoIf(“DAHDI/1-1”, “1?dial”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Goto (macro-dial,s,4)
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Executing [s@macro-dial:4] AGI(“DAHDI/1-1”, “dialparties.agi”) in new stack
[Jun 3 12:53:13] VERBOSE[20552] logger.c: – Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: PHPAGI internal configuration:
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: Array
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: (
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: [phpagi] => Array
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: (
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: [debug] => 1
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: [error_handler] => 1
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: [admin] => xxxx
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: [hostname] => xxxx
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: [tempdir] => /tmp
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: )
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi:
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: [asmanager] => Array
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: (
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: [server] => localhost
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: [port] => 5038
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: [username] => xxxx
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: [secret] => xxxx
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: )
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi:
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: [fastagi] => Array
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: (
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: [setuid] => 1
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: [basedir] => /var/lib/asterisk/agi-bin/
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: )
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi:
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: [festival] => Array
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: (
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: [text2wave] => /usr/bin/text2wave
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: )
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi:
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: [cepstral] => Array
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: (
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: [swift] =>
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: [voice] =>
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: )
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi:
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: )
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi:
[Jun 3 12:53:13] VERBOSE[20552] logger.c: dialparties.agi: Starting New Dialparties.agi
[Jun 3 12:53:14] VERBOSE[20557] logger.c: == Manager ‘admin’ logged on from 127.0.0.1
[Jun 3 12:53:14] VERBOSE[20552] logger.c: dialparties.agi: Caller ID name is ‘unknown’ number is ‘unknown’
[Jun 3 12:53:14] VERBOSE[20552] logger.c: > dialparties.agi: USE_CONFIRMATION: ‘FALSE’
[Jun 3 12:53:14] VERBOSE[20552] logger.c: > dialparties.agi: RINGGROUP_INDEX: ‘’
[Jun 3 12:53:14] VERBOSE[20552] logger.c: dialparties.agi: Methodology of ring is ‘ringall’
[Jun 3 12:53:14] VERBOSE[20552] logger.c: – dialparties.agi: Added extension 6100 to extension map
[Jun 3 12:53:14] VERBOSE[20552] logger.c: – dialparties.agi: Added extension 6200 to extension map
[Jun 3 12:53:14] VERBOSE[20552] logger.c: – dialparties.agi: Extension 6100 cf is disabled
[Jun 3 12:53:14] VERBOSE[20552] logger.c: – dialparties.agi: Extension 6200 cf is disabled
[Jun 3 12:53:14] VERBOSE[20552] logger.c: – dialparties.agi: Extension 6100 do not disturb is disabled
[Jun 3 12:53:14] VERBOSE[20552] logger.c: – dialparties.agi: Extension 6200 do not disturb is disabled
[Jun 3 12:53:14] VERBOSE[20552] logger.c: > dialparties.agi: extnum 6100 has: cw: 1; hascfb: 0 [] hascfu: 0 []
[Jun 3 12:53:14] VERBOSE[20552] logger.c: – dialparties.agi: DbDel CALLTRACE/6100 - Caller ID is not defined
[Jun 3 12:53:14] VERBOSE[20552] logger.c: > dialparties.agi: extnum 6200 has: cw: 1; hascfb: 0 [] hascfu: 0 []
[Jun 3 12:53:14] VERBOSE[20552] logger.c: – dialparties.agi: DbDel CALLTRACE/6200 - Caller ID is not defined
[Jun 3 12:53:14] VERBOSE[20552] logger.c: – dialparties.agi: Filtered ARG3: 6100-6200
[Jun 3 12:53:14] VERBOSE[20552] logger.c: > dialparties.agi: NODEST: 601 adding M(auto-blkvm) to dialopts: trM(auto-blkvm)
[Jun 3 12:53:14] VERBOSE[20552] logger.c: > dialparties.agi: NODEST: 601 blkvm enabled macro already in dialopts: trM(auto-blkvm)
[Jun 3 12:53:18] VERBOSE[20552] logger.c: – <DAHDI/1-1>AGI Script dialparties.agi completed, returning 0
[Jun 3 12:53:18] VERBOSE[20552] logger.c: – Executing [s@macro-dial:8] Dial(“DAHDI/1-1”, “DAHDI/3&DAHDI/4,20,trM(auto-blkvm)”) in new stack
[Jun 3 12:53:18] VERBOSE[20552] logger.c: – Called 3
[Jun 3 12:53:18] VERBOSE[20552] logger.c: – Called 4
[Jun 3 12:53:18] VERBOSE[20552] logger.c: – DAHDI/3-1 is ringing
[Jun 3 12:53:18] VERBOSE[20552] logger.c: – DAHDI/4-1 is ringing
[Jun 3 12:53:19] VERBOSE[20552] logger.c: – DAHDI/3-1 is ringing
[Jun 3 12:53:19] VERBOSE[20552] logger.c: – DAHDI/4-1 is ringing
And, this is my [macro-dial]:
[macro-dial]
exten => s,1,GotoIf($["${MOHCLASS}" = “”]?dial)
exten => s,n,SetMusicOnHold(${MOHCLASS})
exten => s,n,Verbose( passed id is ${CALLERID(num)} )
exten => s,n(dial),AGI(dialparties.agi)
exten => s,n,NoOp(Returned from dialparties with no extensions to call and DIALSTATUS: ${DIALSTATUS})
exten => s,n+2(normdial),Dial(${ds}) ; dialparties will set the priority to 10 if $ds is not null
exten => s,n,Set(DIALSTATUS=${IF($["${DIALSTATUS_CW}"!="" ]?${DIALSTATUS_CW}:${DIALSTATUS})})
exten => s,n,GosubIf($["${SCREEN}" != “”]?${DIALSTATUS},1)
exten => s,20(huntdial),NoOp(Returned from dialparties with hunt groups to dial )
exten => s,n,Set(HuntLoop=0)
exten => s,n(a22),GotoIf($[${HuntMembers} >= 1]?a30) ; if this is from rg-group, don’t strip prefix
exten => s,n,NoOp(Returning there are no members left in the hunt group to ring)
; dialparties.agi has setup the dialstring for each hunt member in a variable labeled HuntMember0, HuntMember1 etc for each iteration
; and The total number in HuntMembers. So for each iteration, we will update the CALLTRACE Data.
;
exten => s,n+2(a30),Set(HuntMember=HuntMember${HuntLoop})
exten => s,n,GotoIf($[$["${CALLTRACE_HUNT}" != “” ] & $[$["${RingGroupMethod}" = “hunt” ] | $["${RingGroupMethod}" = “firstavailable”] | $["${RingGroupMethod}" = “firstnotonphone”]]]?a32:a35)
exten => s,n(a32),Set(CT_EXTEN=${CUT(FILTERED_DIAL,$[${HuntLoop} + 1])})
exten => s,n,Set(DB(CALLTRACE/${CT_EXTEN})=${CALLTRACE_HUNT})
exten => s,n,Goto(s,a42)
;Set Call Trace for each hunt member we are going to call “Memory groups have multiple members to set CALL TRACE For hence the loop
;
exten => s,n(a35),GotoIf($[$[”${CALLTRACE_HUNT}" != “” ] & $["${RingGroupMethod}" = “memoryhunt” ]]?a36:a50)
exten => s,n(a36),Set(CTLoop=0)
exten => s,n(a37),GotoIf($[${CTLoop} > ${HuntLoop}]?a42) ; if this is from rg-group, don’t strip prefix
exten => s,n,Set(CT_EXTEN=${CUT(FILTERED_DIAL,$[${CTLoop} + 1])})
exten => s,n,Set(DB(CALLTRACE/${CT_EXTEN})=${CALLTRACE_HUNT})
exten => s,n,Set(CTLoop=$[1 + ${CTLoop}])
exten => s,n,Goto(s,a37)
exten => s,n(a42),Dial(${${HuntMember}}${ds})
exten => s,n,Set(HuntLoop=$[1 + ${HuntLoop}])
exten => s,n,GotoIf($[$[$[“foo${RingGroupMethod}” != “foofirstavailable”] & $[“foo${RingGroupMethod}” != “foofirstnotonphone”]] | $[“foo${DialStatus}” = “fooBUSY”]]?a46)
exten => s,n,Set(HuntMembers=0)
exten => s,n(a46),Set(HuntMembers=$[${HuntMembers} - 1])
exten => s,n,Goto(s,a22)
; For call screening
exten => NOANSWER,1,Macro(vm,${SCREEN_EXTEN},BUSY,${IVR_RETVM})
exten => NOANSWER,n,GotoIf($["${IVR_RETVM}" != “RETURN” | “${IVR_CONTEXT}” = “”]?bye)
exten => NOANSWER,n,Return
exten => NOANSWER,n(bye),Macro(hangupcall)
exten => TORTURE,1,Goto(app-blackhole,musiconhold,1)
exten => TORTURE,n,Macro(hangupcall)
exten => DONTCALL,1,Answer
exten => DONTCALL,n,Wait(1)
exten => DONTCALL,n,Zapateller()
exten => DONTCALL,n,Playback(ss-noservice)
exten => DONTCALL,n,Macro(hangupcall)
; make sure hungup calls go here so that proper cleanup occurs from call confirmed calls and the like
;
exten => h,1,Macro(hangupcall)
make this change and try it again
[macro-dial]
exten => s,1,GotoIf($["${MOHCLASS}" = “”]?dial)
exten => s,n,SetMusicOnHold(${MOHCLASS})
exten => s,n(dial)Verbose( passed id is ${CALLERID(num)} )
exten => s,n,AGI(dialparties.agi)
This:
exten => s,n,Verbose( passed id is ${CALLERID(num)} )
exten => s,n(dial),AGI(dialparties.agi)
should be
exten => s,n(dial),Verbose( passed id is ${CALLERID(num)} )
exten => s,n,AGI(dialparties.agi)
However, you shouldn’t be using macro with that version of Asterisk, if this is new development, as it is deprecated, and is likely to be removed soon. You need to use subroutines instead.
Also, the best person to solve this problem is almost certainly the person who wrote the dialplan.
David,
how will we replace our “Wonderful” macros when they go away? Is that an ael thing or something else?
Subroutines. In version 1.6, Macros are actually converted to subroutines, behind the scenes. If you use up to date sample files, you should find that the sample macros have been replaced by subroutines.
[quote=“david55”]This:
exten => s,n,Verbose( passed id is ${CALLERID(num)} )
exten => s,n(dial),AGI(dialparties.agi)
should be
exten => s,n(dial),Verbose( passed id is ${CALLERID(num)} )
exten => s,n,AGI(dialparties.agi)
However, you shouldn’t be using macro with that version of Asterisk, if this is new development, as it is deprecated, and is likely to be removed soon. You need to use subroutines instead.
Also, the best person to solve this problem is almost certainly the person who wrote the dialplan.[/quote]
Well, thanks for your help.
The problem here is that I use Asterisk 1.6.0.9 with FreePBX 2.5 and who creates these macros is FreePBX. As I said earlier, I am new to Asterisk and I don’t have sufficient experience to these settings.
Here is the outut verbose with the correction suggested by our friend David:
Executing [s@macro-dial:3] Verbose(“DAHDI/1-1”, " passed id is ") in new stack
[Jun 3 13:15:37] VERBOSE[20831] logger.c: passed id is
[Jun 3 13:15:37] VERBOSE[20831] logger.c: – Executing [s@macro-dial:4] AGI(“DAHDI/1-1”, “dialparties.agi”) in new stack
From what I understand, the Asterisk is not getting any information for identifying callers.
Here in Brazil the identification system is called DTMF.
My chan_dahdi.conf is:
[channels]
;General options
usecallerid=yes
hidecallerid=no
callwaiting=yes
threewaycalling=yes
transfer=yes
echocancel=64
callwaitingcallerid=yes
echocancelwhenbridged=yes
rxgain=1.0
txgain=1.0
busydetect=yes
busycount=2
progzone=br
callprogress=yes
tonezone=20
useincomingcalleridondahditransfer=yes
immediate=no
faxdetect=no
usecallingpres=yes
echotraining=no
answeronpolarityswitch=yes
hunguponpolarityswitch=yes
callerid=asreceived
cidsignalling=dtmf
cidstart=ring
relaxdtmf=yes
;FXS Modules
group=1
signalling=fxo_ls
context=from-internal
channel=3-4
;FXO Modules
group=2
signalling=fxs_ks
context=from-pstn
channel=1-2
cidsignalling=dtmf could well be the cause of the problem
According to this
; Type of caller ID signalling in use
; bell = bell202 as used in US (default)
; v23 = v23 as used in the UK
; v23_jp = v23 as used in Japan
; dtmf = DTMF as used in Denmark, Sweden and Netherlands
; smdi = Use SMDI for caller ID. Requires SMDI to be enabled (usesmdi).
;
you would probably want to use bell (US) or smdi. That’s over my pay grade.
[quote=“sethsdad0627”]cidsignalling=dtmf could well be the cause of the problem
According to this
; Type of caller ID signalling in use
; bell = bell202 as used in US (default)
; v23 = v23 as used in the UK
; v23_jp = v23 as used in Japan
; dtmf = DTMF as used in Denmark, Sweden and Netherlands
; smdi = Use SMDI for caller ID. Requires SMDI to be enabled (usesmdi).
;
you would probably want to use bell (US) or smdi. That’s over my pay grade.[/quote]
Does not work.
:(:(:(:(
you changed the value and restarted asterisk?
Firstly, you need to find out the information from your service provider, rather than just guessing.
However, if they are not forth coming, you need enable tracing on dahdi, quite possibly at the driver level, to find out what is actually happening on the line. I haven’t used FXO cards, so I don’t have experience, myself.
Finally, to the extent that you are using prepackaged code from elsewhere, you should try to use the supplier’s support channels, as they should know how their code works, and if it doesn’t work, or causes usability problems, they need to see that, or they won’t fix it.