[asterisk-users] Is this Asterisk issue of feature
Sherwood McGowan
sherwood.mcgowan at gmail.com
Thu May 26 06:13:37 CDT 2011
Wait is not ONLY for use with Answer, that just happens to be a common use.
To answer the OP, a quick look at http://www.voip-info.org/wiki/view/Asterisk+cmd+Wait confirmed that Wait does not work after a channel is hung up:
"If Wait() is run on a channel which has been hung up (i.e. from the 'h' extension), the Wait() application returns 0 immediately and no further processing of the 'h' extension priorities takes place. You can get around this with 'System(path/to/sleep Xs)', where 'X' is the number of seconds to wait. Nasty, but it works. "
Sent from my iPhone
On May 26, 2011, at 6:00 AM, James zhu <zhulizhong at live.com> wrote:
> hi:
> i think the wait is used for answer command. please show any debug info?
>
> Best regards,
> James.zhu
> Doing asterisk/PRI/ss7/dahdi, linux, asterisk cards, gateway(fxs/fxo/pri<->SIP).
> website: www.voipviews.com
>
>
>
>
> Date: Thu, 26 May 2011 16:15:31 +0530
> From: virbhati at gmail.com
> To: asterisk-users at lists.digium.com
> Subject: [asterisk-users] Is this Asterisk issue of feature
>
> Hi List,
>
> I am confuse about this feature.
> When we use Wait(20) in active call session then it's work. But when we use after hangup the call then Asterisk don't wait from define time.
>
> Ex:-
>
> [call_log]
>
> exten => 4368,1,Answer()
> exten => 4368,n,Flite("Welcome")
> exten => 4368,n,Set(__StartTime=${STRFTIME(${EPOCH},Asia/Calcutta,%Y-%m-%d %H:%M:%S)})
> exten => 4368,n,Set(__uniqueId=${UNIQUEID})
> exten => 4368,n,Wait(20) ; At this moment it's work.
> exten => 4368,n,Hangup()
>
>
> exten => h,1,NoOp(*******************Now wait(20) wouldn't work ***************** )
> exten => h,n,Wait(20) ; At this moment it's not work.
> exten => h,n,NoOp(*******************never come into execution ******************)
>
> -----
> Thanks and regards
>
> Virendra Bhati
> +91-9172341457
> Asterisk Engineer
>
>
> -- _____________________________________________________________________ -- 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
> --
> _____________________________________________________________________
> -- 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/20110526/0e1519e8/attachment.htm>
More information about the asterisk-users
mailing list