On 4/12/2011 7:04 AM, Naomi Rosenberg wrote:
> Hi Sherwood,
>
> Thanks for helping me with this. The reply was indeed to you - I didn't think 
> you could use Dial on a channel that had been hung up, so I have learnt 
> something. However I'm still struggling with it I'm afraid. I've tried using 
> Dial and I'm finding that when the original channel is hung up it all seems 
> to stop working.
>
> In the hope you might help me more, I've run your example as it is 
> (translated into .conf cos that's what we use here - feel free to reply in 
> ael) so I can show you the output. I'm finding it hangs just before the call 
> to Queue. I know Queue(2) works because when I dial 400 it works as expected.
>
> [intern]
> exten => 300,1,Goto(test-in,s,1) ; experiment
> exten => 400,1,Queue(2) ; control 
>
> [test-in]
> exten => s,1,Set(__referencenum=foo)
> exten => s,n,Hangup();
>
> exten => h,1,NoOp(The reference number is still here! ${referencenum})
> exten => h,n,Dial(Local/123@staffcalls)
>
> [staffcalls]
> exten => 123,1,NoOp(reference number is STILL here ${referencenum})
> exten => 123,n,Queue(2)
>
>
>     -- Executing [300@intern:1] Goto("SIP/200-00000001", "test-in,s,1") in 
> new stack
>     -- Goto (test-in,s,1)
>     -- Executing [s@test-in:1] Set("SIP/200-00000001", "__referencenum=foo") 
> in new stack
>     -- Executing [s@test-in:2] Hangup("SIP/200-00000001", "") in new stack
>   == Spawn extension (test-in, s, 2) exited non-zero on 'SIP/200-00000001'
>     -- Executing [h@test-in:1] NoOp("SIP/200-00000001", "The reference number 
> is still here! foo") in new stack
>     -- Executing [h@test-in:2] Dial("SIP/200-00000001", 
> "Local/123@staffcalls") in new stack
>     -- Called 123@staffcalls 
>   == Spawn extension (test-in, h, 2) exited non-zero on 'SIP/200-00000001'
>     -- Executing [123@staffcalls:1] NoOp("Local/123@staffcalls-c28c;2", 
> "reference number is STILL here foo") in new stack
>
> ===== then it just hangs here! ==========
>
> Naomi 

I believe I made one mistake in my example, I don't use a call to Queue
in my local channel without a partner channel (the customer). I'll
revisit this later today when I have some time, I'll be glad to help you
if I can recall the right solution :)


-- 
Sherwood McGowan <[email protected]>
Carrier, ITSP, Call Center, and PBX Solutions Consultant


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