[asterisk-users] play prompt after hanup

DHAVAL INDRODIYA dhaval.it01034 at gmail.com
Mon Aug 17 02:12:26 CDT 2009


Please Use DIALSTATUS Application variable



 exten => s,n,Dial(${ARG1},${ARG2},${ARG3},${ARG4})
 exten => s,n,Goto(s-${DIALSTATUS},1)

exten => s-ANSWER,1,Noop(please do action in next priority)
exten => s-ANSWER,2,Playback(demo-instruct)

 exten => s-CANCEL,1,Hangup
 exten => s-NOANSWER,1,Set(DTIME=$[${EPOCH} - ${DIALSTART}])
 exten => s-NOANSWER,2,,Hangup()
 exten => s-BUSY,1,Busy
 exten => s-CHANUNAVAIL,1,hangup
 exten => s-CONGESTION,1,Congestion


On Mon, Aug 17, 2009 at 8:24 AM, Rilawich Ango <maillisting at gmail.com>wrote:

> HI,
>
>  Actually, I want to do the following.
> A (user) talks to B (CS).  At the end of the talk, B hangup and A will
> goto the survey system.  That's why I need to play prompt for the user
> after hangup.  Is it possible?
>
>
>
> On Fri, Aug 14, 2009 at 6:32 PM, Trevor Hammonds<trevor at concipient.net>
> wrote:
> > On Friday, August 14, 2009, Rilawich Ango wrote:
> >
> >>Hi,
> >>
> >>  Can I play a prompt after hanging up a call?  I have tried below but
> > failed.
> >>
> >>
> >>...
> >>exten => s,n,Dial(SIP/1234)
> >>...
> >>
> >>exten => h,1,Playback(demo-instruct)
> >>
> >>
> >>    -- Executing [h at macro-safedial:2] Playback("SIP/3601-09856bf0",
> >>"demo-instruct") in new stack
> >>[Aug 14 17:24:03] WARNING[2496]: file.c:738 ast_readaudio_callback:
> >>Failed to write frame
> >>    -- <SIP/3601-09856bf0> Playing 'demo-instruct' (language 'en')
> >
> > Rilawich,
> >
> > If the channel has been hung up, where do you expect the prompt to be
> > played?
> >
> > Sincerely,
> > Trevor Hammonds
> >
> >
> > _______________________________________________
> > -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> >
> > AstriCon 2009 - October 13 - 15 Phoenix, Arizona
> > Register Now: http://www.astricon.net
> >
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> >   http://lists.digium.com/mailman/listinfo/asterisk-users
> >
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2009 - October 13 - 15 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> 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/20090817/e5ec9eff/attachment.htm 


More information about the asterisk-users mailing list