[asterisk-users] Callback through extensions.conf?

Gilles codecomplete at free.fr
Sun Feb 6 09:36:22 CST 2011


On Sat, 05 Feb 2011 12:07:28 +0100, Gilles <codecomplete at free.fr>
wrote:
>I've seen articles about Call files. Is this the easiest way to solve
>this problem?

For some reason, Asterisk executes Wait(10), but then hangs up without
running the rest of the commands (cp, echo, mv):

==========
[from_fxo]
exten => s,1,Wait(2)

exten => s,n,Set(SOURCE_CIDNUMBER=${CALLERID(num)})
exten => s,n,Set(SOURCE_CIDNAME=${CALLERID(name)})
exten => s,n,NoOp(Call from ${SOURCE_CIDNAME} - ${SOURCE_CIDNUMBER})

exten => s,n,GotoIf($["${SOURCE_CIDNUMBER}" = ${GSM}]?goodcid:badcid)

exten => s,n(goodcid),NoOp(CID OK)
;how to reliably detect that line is now quiet?
exten => s,n,Wait(10)

exten => s,n,NoOp(Before cp)
exten => s,n,system(cp /var/spool/asterisk/skelett.call
/var/tmp/skelett.call)
exten => s,n,NoOp(Before echo)
exten => s,n,system(echo 'Channel: ZAP/1/${IPPI}' >>
/var/tmp/skelett.call)
exten => s,n,NoOp(Before mv)
exten => s,n,system(mv /var/tmp/skelett.call
/var/spool/asterisk/outgoing)

;exten => s,n,Hangup

;Context set in call file
[callback-dialtone-auth]
exten => s,1,NoOp(Call from ${CALLERIS(num)})
==========

FWIW, "show modules" says that pbx_spool.so is loaded.

Has someone experienced this?

Thank you.




More information about the asterisk-users mailing list