[asterisk-users] Local channel usage

Tiago Geada tiago.geada at gmail.com
Tue Jun 22 05:15:42 CDT 2010


Hi,

After a Dial, the call is hung up. It doesn't carry on with dialplan unless
you specify the appropriate dial option.

Check wiki voip-info for cmd Dial, I think the option is "g"

2010/6/22 Harel Cohen <harel at easycall.gi>

> Hi All,
>
> I’m trying to do “things” after my Dial application terminates (e.g. play
> IVR to called party, calling party, etc.). I’m trying to use the local
> channel for this purpose but so far with no success. I’m using 1.6.1.18 and
> this is my extensions.conf:
>
>
>
> [Internal]
>
> exten => _22,1,Dial(Local/${EXTEN}@CW/n) ; 22 is test number
>
> exten => _22,2,Noop(After Hangup)
>
>
>
> [CW]
>
> exten => _x.,1,Dial(SIP/307)
>
> exten => _x.,2,Noop(After Hangup)
>
>
>
> The call never reaches neither of the Noop applications. Consol:
>
>   == Using SIP RTP CoS mark 5
>
>   == Using UDPTL CoS mark 5
>
>     -- Executing [22 at Internal:1] Dial("SIP/309-000000a5", "Local/22 at CW/n")
> in new stack
>
>     -- Called 22 at CW/n
>
>     -- Executing [22 at CW:1] Dial("Local/22 at CW-af6f;2", "SIP/307") in new
> stack
>
>   == Using SIP RTP CoS mark 5
>
>   == Using UDPTL CoS mark 5
>
>     -- Called 307
>
>     -- SIP/307-000000a6 is ringing
>
>     -- Local/22 at CW-af6f;1 is ringing
>
>     -- SIP/307-000000a6 is ringing
>
>     -- SIP/307-000000a6 is ringing
>
>     -- SIP/307-000000a6 is ringing
>
>     -- SIP/307-000000a6 answered Local/22 at CW-af6f;2
>
>     -- Local/22 at CW-af6f;1 answered SIP/309-000000a5
>
>   == Spawn extension (CW, 22, 1) exited non-zero on 'Local/22 at CW-af6f;2'
>
>   == Spawn extension (Internal, 22, 1) exited non-zero on
> 'SIP/309-000000a5'
>
> If I use the ‘g’ option in my Dial() both Noop will be run only if the
> called party hang-up first. I need a simple continuation in the dial plan
> regardless of who disconnected the call.
>
> Thanks in advance
>
> Harel
>
>
>
> --
> _____________________________________________________________________
> -- 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/20100622/66a7e51a/attachment-0001.htm 


More information about the asterisk-users mailing list