You may also use

exten => 223,n,Dial(SIP/${EXTEN},,KktL(25000))


On Fri, Jul 8, 2011 at 5:33 PM, Eric Wieling <ewiel...@nyigc.com> wrote:

>
>
> > -----Original Message-----
> > From: asterisk-users-boun...@lists.digium.com
> > [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of
> > salaheddine elharit
> > Sent: Friday, July 08, 2011 6:43 AM
> > To: Asterisk Users Mailing List - Non-Commercial Discussion
> > Subject: [asterisk-users] timeout with outbound calls
> >
> > Hi
> >
> > i want to use timeout  with asterisk 1.4 in order to hangup
> > the outbound calls after 25 sec
> >
> > i call my mobile number 067xxxxxxx from my sip acount 223
> > and i want to hangu up the call automatic after 25 sec  but
> > there is no hangup after 25
> >
> > could you please help me
> >
> > exten => 223,1,Set(TIMEOUT(absolute)=25) exten =>
> > 223,n,MixMonitor(sip_${EXTEN}_${UNIQUEID}.wav|av(0}V(0))
> > exten => 223,n,Set(AUDIOHOOK_INHERIT(MixMonitor)=yes)
> > exten => 223,n,Dial(SIP/${EXTEN},,KkTt)
> > exten => 223,n,Hangup();
> >
> > Best Regards.
> >
>
> pbx*CLI> core show application dial
>
>  -= Info about application 'Dial' =-
>
> [Synopsis]
> Attempt to connect to another device or endpoint and bridge the call.
> [snip]
>    L(x[:y[:z]]):
>        x - Maximum call time, in milliseconds
>        y - Warning time, in milliseconds
>        z - Repeat time, in milliseconds
>    Limit the call to <x> milliseconds. Play a warning when <y> mill
>    iseconds are left. Repeat the warning every <z> milliseconds until time
>    expires.
>    This option is affected by the following variables:
>        ${LIMIT_PLAYAUDIO_CALLER}:
>            yes
>            no
>            If set, this variable causes Asterisk to play the
>            prompts to the caller.
>        ${LIMIT_PLAYAUDIO_CALLEE}:
>            yes
>            no
>            If set, this variable causes Asterisk to play the
>            prompts to the callee.
>        ${LIMIT_TIMEOUT_FILE}:
>            filename
>            If specified, <filename> specifies the sound prompt
>            to play when the timeout is reached. If not set, the time
> remaining
>            will be announced.
>        ${LIMIT_CONNECT_FILE}:
>            filename
>            If specified, <filename> specifies the sound prompt
>            to play when the call begins. If not set, the time remaining
> will
>            be announced.
>        ${LIMIT_WARNING_FILE}:
>            filename
>            If specified, <filename> specifies the sound prompt
>            to play as a warning when time <x> is reached. If not set, the
>            time remaining will be announced.
> [snip]
>
> --
> _____________________________________________________________________
> -- 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
>



-- 

Thanks & Regards,

Umair Bari
--
_____________________________________________________________________
-- 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

Reply via email to