[asterisk-users] play prompt after hanup

DHAVAL INDRODIYA dhaval.it01034 at gmail.com
Mon Aug 17 05:31:21 CDT 2009


can you send your dialplan
it should work

On Mon, Aug 17, 2009 at 2:39 PM, Rilawich Ango <maillisting at gmail.com>wrote:

> Thanks.  DIALSTATUS works except ANSWER.  When the phone hangup, the
> dialplan doesn't go to s-ANSWER.
>
>    -- Executing [3001 at default:12] Dial("SIP/10.31.0.32-09872150",
> "SIP/3001|50|Tt") in new stack
>    -- Called 3001
>    -- SIP/3001-0986d1d8 is ringing
>    -- SIP/3001-0986d1d8 answered SIP/10.31.0.32-09872150
>  == Spawn extension (default, 3001, 12) exited non-zero on
> 'SIP/10.31.0.32-09872150'
>
>
>
>
> On Mon, Aug 17, 2009 at 3:12 PM, DHAVAL
> INDRODIYA<dhaval.it01034 at gmail.com> wrote:
> > 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
> >
> >
> > _______________________________________________
> > -- 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/32e56420/attachment.htm 


More information about the asterisk-users mailing list