[asterisk-users] Callback through extensions.conf?

Sherwood McGowan sherwood.mcgowan at gmail.com
Sun Feb 6 10:10:06 CST 2011


Can you give me/us the output of the full log (verbose set to 5 please)?
Once I hve that, I can probably help you quite quickly, I work with callfile
generation often without problem

First, you're trying to copy

On Sun, Feb 6, 2011 at 9:36 AM, Gilles <codecomplete at free.fr> wrote:

> 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.
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110206/42e61d4d/attachment.htm>


More information about the asterisk-users mailing list