[asterisk-users] Playback on h exten
Leandro Dardini
ldardini at gmail.com
Thu Feb 21 03:55:10 CST 2013
2013/2/21 Enrico Pasqualotto <e.pasqualotto at netspin.it>
> Hi all, I'm trying to setup a Quiz/feedback for caller of call center when
> a agent hangup.
> I use Asterisk 1.8.16 and I'm trying with Queue and Dial with options c
> and g but every time I try to play something I got:
>
> -- Executing [301 at from-test:1] Dial("SIP/300-00000045",
> "SIP/301,60,rjtTg") in new stack
> -- Called SIP/301
> -- SIP/301-00000046 is ringing
> -- SIP/301-00000046 answered SIP/300-00000045
> -- Auto fallthrough, channel 'SIP/300-00000045' status is 'ANSWER'
> -- Executing [h at from-test:1] Goto("SIP/300-00000045", "play,s,1") in
> new stack
> -- Goto (play,s,1)
> -- Executing [s at play:1] NoOp("SIP/300-00000045", "play") in new stack
> -- Executing [s at play:2] SayDigits("SIP/300-00000045", "123579") in
> new stack
> [Feb 21 10:35:00] WARNING[31945]: file.c:833 ast_readaudio_callback:
> Failed to write frame
> -- <SIP/300-00000045> Playing 'digits/1.ulaw' (language 'en')
> == Spawn extension (play, s, 2) exited non-zero on 'SIP/300-00000045'
>
> This is my dialplan:
>
> [from-test]
> exten => _X.,1,Dial(SIP/${EXTEN},60,rjtTg)
> exten => h,1,Goto(play,s,1)
>
> [play]
> exten => s,1,Noop(play)
> exten => s,2,Saydigits(123579)
>
>
> Anyone can help me?
>
> Thanks
>
> Enrico.
>
>
If you choose to go with the Dial command and use the "g" option, you have
not to use the "h" extension, but just provide a next priority. Your
dialplan has to be:
[from-test]
exten => _X.,1,Dial(SIP/${EXTEN},60,rjtTg)
*exten => _X.,2,Goto(play,s,1)*
[play]
exten => s,1,Noop(play)
exten => s,2,Saydigits(123579)
Leandro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130221/76553ab6/attachment.htm>
More information about the asterisk-users
mailing list