[asterisk-users] Stumped with Dial - $50 for answer

chester c young chestercyoung at yahoo.com
Sun Jan 14 18:13:19 MST 2007


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/12345 at xxxxx_peer/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 [5051111111 at telavoip-iax-in:1]
Answer("IAX2/telavoip-2", "") in new stack
    -- Executing [1234 at telavoip-iax-in:2] NoOp("IAX2/telavoip-2",
"top") in new stack
    -- Executing [1234 at telavoip-iax-in: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 [h at telavoip-iax-in: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


More information about the asterisk-users mailing list