cannot make Dial(...,,g) work correctly, although Dial(...,,gh) works
just fine.  (to make matters worse, it does seem to work sometimes,
although once working or not working between changes it either works or
doesn't work all the time.)

extensions.conf:

[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no

[incoming]
exten => 5051111111.,1,Answer
exten => 5051111111.,2,Noop(top)
exten => 5051111111.,3,Dial(IAX2/[EMAIL PROTECTED]/15055551212,,g)
exten => 5051111111.,4,Noop(done the dial)
exten => 5051111111.,5,Goto(2)

after the called party hangs up nothing happens, the 4,Noop(done the
dial) is never executed.

if the dial is done with a Dial(...,,gh), and the answering phone hits
an asterisk, the next priority is executed as expected.

    -- Executing [EMAIL PROTECTED]:1]
Answer("IAX2/telavoip-2", "") in new stack
    -- Executing [EMAIL PROTECTED]:2] NoOp("IAX2/telavoip-2",
"top") in new stack
    -- Executing [EMAIL PROTECTED]:3] Dial("IAX2/telavoip-2",
"IAX2/telavoip/15052222222||g") in new stack
    -- Called telavoip/15052222222
    -- Call accepted by 1.2.3.4 (format ulaw)
    -- Format for call is ulaw
    -- IAX2/telavoip-4 is proceeding passing it to IAX2/telavoip-2
    -- IAX2/telavoip-4 is ringing
    -- IAX2/telavoip-4 stopped sounds
    -- IAX2/telavoip-4 answered IAX2/telavoip-2
    -- Channel 'IAX2/telavoip-4' ready to transfer
    -- Channel 'IAX2/telavoip-2' ready to transfer
    -- Releasing IAX2/telavoip-2 and IAX2/telavoip-4
    -- Hungup 'IAX2/telavoip-4'
/* stays here until originating phone is hung up */
  == Spawn extension (telavoip-iax-in, 15051111111, 3) exited non-zero
on 'IAX2/telavoip-2'
    -- Executing [EMAIL PROTECTED]:1] NoOp("IAX2/telavoip-2",
"call_loop: hungup") in new stack
    -- Hungup 'IAX2/telavoip-2'





 
____________________________________________________________________________________
Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to