[Asterisk-Users] Strange problem with Dial

Michael George george at mutualdata.com
Fri Aug 20 16:14:06 MST 2004


I'm trying to add an emergency dial to my context.  However, when I try to
dial it, I get caught in an endless loop.

For debugging, I have pared out nearly all the control flow and just have
ChanIsAvail() and Dial() called.  Using two different extensions to call teh
same number, I get two different actions by *.

Here is the vvverbose output:

    -- Starting simple switch on 'Zap/3-1'
    -- Executing Dial("Zap/3-1", "Zap/1/5932336||T") in new stack
    -- Called 1/5932336
    -- Zap/1-1 answered Zap/3-1
    -- Attempting native bridge of Zap/3-1 and Zap/1-1
    -- Hungup 'Zap/1-1'
  == Spawn extension (internal, 95932336, 1) exited non-zero on 'Zap/3-1'
    -- Hungup 'Zap/3-1'
    -- Starting simple switch on 'Zap/3-1'
    -- Executing ChanIsAvail("Zap/3-1", "Zap/1") in new stack
    -- Hungup 'Zap/1-1'
    -- Executing NoOp("Zap/3-1", "avail: Zap/1-1") in new stack
    -- Executing Dial("Zap/3-1", "Zap/1/5932336||T") in new stack
Aug 20 19:09:27 NOTICE[294926]: app_dial.c:714 dial_exec: Unable to create
channel of type 'Zap'
  == Everyone is busy/congested at this time
    -- Executing NoOp("Zap/3-1", "busy") in new stack
    -- Hungup 'Zap/3-1'

the first way, I'm matching this context:
exten => _9NXXXXXX,1,Dial(${TrunkLocal}/${EXTEN:${TrunkMSD}},,T)
exten => _9NXXXXXX,2,Congestion
exten => _9517XXXXXXX,1,Dial(${TrunkLocal}/${EXTEN},,T})
exten => _9517XXXXXXX,2,Congestion

The second way I'm mathing this one:
exten => 911,1,ChanIsAvail(Zap/1)
exten => 911,2,NoOp(avail: ${AVAILCHAN})
exten => 911,3,Dial(Zap/1/5932336,,T)
exten => 911,102,NoOp(None Avail)
exten => 911,104,NoOp(busy)

Why does the latter fail at the Dial()?

- 


There are 10 kinds of people in this world:
	Those who can count in binary and those who cannot.



More information about the asterisk-users mailing list