Dial failed for some reason with DIALSTATUS = CHANUNAVAIL

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

Dial failed for some reason with DIALSTATUS = CHANUNAVAIL

Postby drj864 » Mon Oct 19, 2015 4:02 pm

We recently changed SIP providers and I'm now having an issue with speed dials not functioning.
When I look at the console I get the following when trying to dial a speed dial

Code: Select all
    -- Executing [8002@from-internal:1] Macro("SIP/7113-00004656", "user-callerid,SKIPTTL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/7113-00004656", "AMPUSER=7113") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/7113-00004656", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/7113-00004656", "1?Set(REALCALLERIDNUM=7113)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/7113-00004656", "AMPUSER=7113") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/7113-00004656", "AMPUSERCIDNAME=John Doe") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/7113-00004656", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/7113-00004656", "AMPUSERCID=7113") in new stack
    -- Executing [s@macro-user-callerid:8] Set("SIP/7113-00004656", "CALLERID(all)="John Doe" <7113>") in new stack
    -- Executing [s@macro-user-callerid:9] GotoIf("SIP/7113-00004656", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:10] ExecIf("SIP/7113-00004656", "0?Set(GROUP(concurrency_limit)=7113)") in new stack
    -- Executing [s@macro-user-callerid:11] GotoIf("SIP/7113-00004656", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,24)
    -- Executing [s@macro-user-callerid:24] Set("SIP/7113-00004656", "CALLERID(number)=7113") in new stack
    -- Executing [s@macro-user-callerid:25] Set("SIP/7113-00004656", "CALLERID(name)=John Doe") in new stack
    -- Executing [s@macro-user-callerid:26] Set("SIP/7113-00004656", "CHANNEL(language)=en") in new stack
    -- Executing [8002@from-internal:2] NoOp("SIP/7113-00004656", "Calling Out Route: ToOutside") in new stack
    -- Executing [8002@from-internal:3] Set("SIP/7113-00004656", "MOHCLASS=default") in new stack
    -- Executing [8002@from-internal:4] ExecIf("SIP/7113-00004656", "0?Set(TRUNKCIDOVERRIDE=18135551212)") in new stack
    -- Executing [8002@from-internal:5] Set("SIP/7113-00004656", "_NODEST=") in new stack
    -- Executing [8002@from-internal:6] Macro("SIP/7113-00004656", "record-enable,7113,OUT,") in new stack
    -- Executing [8002@from-internal:7] Macro("SIP/7113-00004656", "dialout-trunk,2,8134445555,") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/7113-00004656", "DIAL_TRUNK=2") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/7113-00004656", "0?sub-pincheck,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/7113-00004656", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/7113-00004656", "DIAL_NUMBER=8134445555") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/7113-00004656", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/7113-00004656", "OUTBOUND_GROUP=OUT_2") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/7113-00004656", "0?nomax") in new stack
    -- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/7113-00004656", "0?chanfull") in new stack
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/7113-00004656", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/7113-00004656", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/7113-00004656", "outbound-callerid,2") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/7113-00004656", "0?Set(CALLERPRES()=)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/7113-00004656", "0?Set(REALCALLERIDNUM=7113)") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/7113-00004656", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s@macro-outbound-callerid:6] Set("SIP/7113-00004656", "USEROUTCID="John Doe <8135551212>") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("SIP/7113-00004656", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("SIP/7113-00004656", "TRUNKOUTCID=8135551212") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/7113-00004656", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/7113-00004656", "1?Set(CALLERID(all)=8135551212)") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/7113-00004656", "1?Set(CALLERID(all)="John Doe" <8135551212>)") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/7113-00004656", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/7113-00004656", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
    -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/7113-00004656", "0?sub-flp-2,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/7113-00004656", "OUTNUM=8134445555") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/7113-00004656", "custom=SIP/Broadvox") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/7113-00004656", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
    -- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/7113-00004656", "0?Set(DIAL_TRUNK_OPTIONS=M(confirm))") in new stack
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/7113-00004656", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/7113-00004656", "") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/7113-00004656", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/7113-00004656", "1?Set(CONNECTEDLINE(num,i)=8134445555)") in new stack
    -- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/7113-00004656", "1?Set(CONNECTEDLINE(name,i)=CID:8135551212)") in new stack
    -- Executing [s@macro-dialout-trunk:21] GotoIf("SIP/7113-00004656", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:22] Dial("SIP/7113-00004656", "SIP/Broadvox/8134445555,300,") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@macro-dialout-trunk:23] NoOp("SIP/7113-00004656", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 20") in new stack
    -- Executing [s@macro-dialout-trunk:24] Goto("SIP/7113-00004656", "s-CHANUNAVAIL,1") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)


Trunk 2 refers to outrt-2 which looks like
Code: Select all
[outrt-2] ; ToBroadvox
include => outrt-2-custom
exten => _011.,1,Macro(user-callerid,LIMIT,)
exten => _011.,n,Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})})
exten => _011.,n,Set(_NODEST=)
exten => _011.,n,Gosub(sub-record-check,s,1(out,${EXTEN},))
exten => _011.,n,Macro(dialout-trunk,9,${EXTEN},)
exten => _011.,n,Macro(outisbusy,)

exten => 911,1,Macro(user-callerid,LIMIT,)
exten => 911,n,Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})})
exten => 911,n,Set(_NODEST=)
exten => 911,n,Gosub(sub-record-check,s,1(out,${EXTEN},))
exten => 911,n,Macro(dialout-trunk,9,${EXTEN},)
exten => 911,n,Macro(outisbusy,)

exten => 933,1,Macro(user-callerid,LIMIT,)
exten => 933,n,Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})})
exten => 933,n,Set(_NODEST=)
exten => 933,n,Gosub(sub-record-check,s,1(out,${EXTEN},))
exten => 933,n,Macro(dialout-trunk,9,${EXTEN},)
exten => 933,n,Macro(outisbusy,)

exten => _NXXNXXXXXX,1,Macro(user-callerid,LIMIT,)
exten => _NXXNXXXXXX,n,Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})})
exten => _NXXNXXXXXX,n,Set(_NODEST=)
exten => _NXXNXXXXXX,n,Gosub(sub-record-check,s,1(out,${EXTEN},))
exten => _NXXNXXXXXX,n,Macro(dialout-trunk,9,${EXTEN},)
exten => _NXXNXXXXXX,n,Macro(outisbusy,)

exten => _NXXXXXX,1,Macro(user-callerid,LIMIT,)
exten => _NXXXXXX,n,Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})})
exten => _NXXXXXX,n,Set(_NODEST=)
exten => _NXXXXXX,n,Gosub(sub-record-check,s,1(out,${EXTEN},))
exten => _NXXXXXX,n,Macro(dialout-trunk,9,813${EXTEN},)
exten => _NXXXXXX,n,Macro(outisbusy,)

exten => _1NXXNXXXXXX,1,Macro(user-callerid,LIMIT,)
exten => _1NXXNXXXXXX,n,Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})})
exten => _1NXXNXXXXXX,n,Set(_NODEST=)
exten => _1NXXNXXXXXX,n,Gosub(sub-record-check,s,1(out,${EXTEN},))
exten => _1NXXNXXXXXX,n,Macro(dialout-trunk,9,${EXTEN:1},)
exten => _1NXXNXXXXXX,n,Macro(outisbusy,)

exten => _9NXXNXXXXXX,1,Macro(user-callerid,LIMIT,)
exten => _9NXXNXXXXXX,n,Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})})
exten => _9NXXNXXXXXX,n,Set(_NODEST=)
exten => _9NXXNXXXXXX,n,Gosub(sub-record-check,s,1(out,${EXTEN},))
exten => _9NXXNXXXXXX,n,Macro(dialout-trunk,9,${EXTEN:1},)
exten => _9NXXNXXXXXX,n,Macro(outisbusy,)

exten => _9NXXXXXX,1,Macro(user-callerid,LIMIT,)
exten => _9NXXXXXX,n,Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})})
exten => _9NXXXXXX,n,Set(_NODEST=)
exten => _9NXXXXXX,n,Gosub(sub-record-check,s,1(out,${EXTEN},))
exten => _9NXXXXXX,n,Macro(dialout-trunk,9,813${EXTEN:1},)
exten => _9NXXXXXX,n,Macro(outisbusy,)

exten => _91NXXNXXXXXX,1,Macro(user-callerid,LIMIT,)
exten => _91NXXNXXXXXX,n,Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})})
exten => _91NXXNXXXXXX,n,Set(_NODEST=)
exten => _91NXXNXXXXXX,n,Gosub(sub-record-check,s,1(out,${EXTEN},))
exten => _91NXXNXXXXXX,n,Macro(dialout-trunk,9,${EXTEN:2},)
exten => _91NXXNXXXXXX,n,Macro(outisbusy,)

;--== end of [outrt-2] ==--;


Trunk 9 refers to our new SIP provider.
Code: Select all
exten => 9,1,Set(TDIAL_STRING=SIP/BH_TRUNK)
exten => 9,n,Set(DIAL_TRUNK=9)
exten => 9,n,Goto(ext-trunk,tdial,1)



I think they problem is that the speed dial is trying to use the old trunk, even though I have it configured not to do so. I've searched all the files looking for instances of "Broadvox" but can't find anything outside of the outbound route.

Can any offer any insight on why these speed dials are failing? I'm able to call the associated telephone numbers correctly and all out and inbound calling is otherwise working as expected.

Thanks in advance.
drj864
Newsterisk
 
Posts: 2
Joined: Tue Feb 24, 2015 7:54 am

Return to Asterisk Support

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron