Calling *21*NUMBER# for telephone redirection

Hi,

I’m setting up an asterisk in our company but have a problem with it:
From our ISDN provider, we get a free service to redirect incomming calls when we are not available in the building. To enable this we used to dial 021TELNUMBER#, the first 0 being a number to ask an ouside line (on our old PBX).

Whne I try to do this from within asterisk I allways get CHAN unavailable.

More info:
– Executing [s@macro-dialout-trunk:26] Set(“SIP/41-08252748”, “the_num=210498309618%23”) in new stack
– Executing [s@macro-dialout-trunk:27] Dial(“SIP/41-08252748”, “mISDN/g:isdn/210498309618%23|300|”) in new stack
– Called g:isdn/210498309618%23
P[ 1] empty_chan_in_stack: cannot empty channel 255
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [s@macro-dialout-trunk:28] Goto(“SIP/41-08252748”, “s-CHANUNAVAIL|1”) in new stack

I also tried calling to an internal number and links that to the outgoing number (so the %23 thing doesn’t occur).

-- Executing [s@macro-dial:7] Dial("SIP/41-08214f10", "mISDN/g:isdn/*21*0498309618#||tr") in new stack
-- Called g:isdn/*21*0498309618#

P[ 1] empty_chan_in_stack: cannot empty channel 255
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [s@macro-dial:8] Set(“SIP/41-08214f10”, “DIALSTATUS=CHANUNAVAIL”) in new stack
– Executing [s@macro-exten-vm:10] Set(“SIP/41-08214f10”, “SV_DIALSTATUS=CHANUNAVAIL”) in new stack
– Executing [s@macro-exten-vm:11] GosubIf(“SIP/41-08214f10”, “0?docfu|1”) in new stack
– Executing [s@macro-exten-vm:12] GosubIf(“SIP/41-08214f10”, “0?docfb|1”) in new stack
– Executing [s@macro-exten-vm:13] Set(“SIP/41-08214f10”, “DIALSTATUS=CHANUNAVAIL”) in new stack
– Executing [s@macro-exten-vm:14] NoOp(“SIP/41-08214f10”, “Voicemail is novm”) in new stack
– Executing [s@macro-exten-vm:15] GotoIf(“SIP/41-08214f10”, “1?s-CHANUNAVAIL|1”) in new stack

Can anyone help me with this, or give some hints to try?

Nobody that has an idea or tip to solve this? I’m still stuck on this and I can’t put the asterisk in production if this doesn’t get solved.

Hi jh,

I don’t use ISDN but take a look at this (I cut it down to two offices) we use it to do exchange diverts with (Telstra).

If it does not help post the relevant part of your dialplan.

[diverts]
exten => 21,1,Answer
exten => 21,2,Set(TIMEOUT(digit)=5)
exten => 21,3,BackGround(my-divert)

;UnDivert
exten => 0,1,Dial(Zap/1/#21#)
exten => 0,2,GotoIf($["${DIALSTATUS}" = “CHANUNAVAIL”]?3)
exten => 0,3,Playback(line-1-in-use)
exten => 0,4,Hangup()

;Office one
exten => 1,1,Dial(Zap/1/*2107133933#)
exten => 1,2,GotoIf($["${DIALSTATUS}" = “CHANUNAVAIL”]?3)
exten => 1,3,Playback(line-1-in-use)
exten => 1,4,Hangup()

;Office two
exten => 2,1,Dial(Zap/1/*2107133933#)
exten => 2,2,GotoIf($["${DIALSTATUS}" = “CHANUNAVAIL”]?3)
exten => 2,3,Playback(line-1-in-use)
exten => 2,4,Hangup()

exten => 8,1,SoftHangup(Zap/1-1)
exten => 8,2,Hangup()

exten => t,1,Goto(diverts,21,1)
exten => i,1,Goto(diverts,21,1)

exten => 9,1,Hangup()

Brett