[asterisk-gui] can't call from one local extension to other

Dima dima at scancom.es
Thu Nov 27 09:27:26 CST 2008


Hello, everyone

I'm trying out the gui2. I've created a couple of local sip extensions
and a sip trunk. When I try to call from one local extension to other,
asterisk tries to make a call through trunk. How can I make asterisk
check, if the extension I'm dialing is a local extension, and if it is,
not to use the trunk to dial it. 

My local extensions and trunk:
test*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
502/502                    10.2.0.171       D          5060
Unmonitored
501/501                    10.2.0.170       D          5060
Unmonitored
500/500                    10.2.0.169       D          5060
Unmonitored
trunk_1                    192.168.123.3               5060
Unmonitored

test call:

4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 0
offline]
    -- Executing [501 at DLPN_DialPlan1:1] Macro("SIP/502-09493300",
"trunkdial-failover-0.3|SIP/trunk_1/501||trunk_1|") in new stack
    -- Executing [s at macro-trunkdial-failover-0.3:1]
GotoIf("SIP/502-09493300", "0?1-fmsetcid|1") in new stack
    -- Executing [s at macro-trunkdial-failover-0.3:2]
GotoIf("SIP/502-09493300", "0?1-setgbobname|1") in new stack
    -- Executing [s at macro-trunkdial-failover-0.3:3]
Set("SIP/502-09493300", "CALLERID(num)=502") in new stack
    -- Executing [s at macro-trunkdial-failover-0.3:4]
GotoIf("SIP/502-09493300", "0?1-dial|1") in new stack
    -- Executing [s at macro-trunkdial-failover-0.3:5]
Set("SIP/502-09493300", "CALLERID(all)=") in new stack
    -- Executing [s at macro-trunkdial-failover-0.3:6]
Goto("SIP/502-09493300", "1-dial|1") in new stack
    -- Goto (macro-trunkdial-failover-0.3,1-dial,1)
    -- Executing [1-dial at macro-trunkdial-failover-0.3:1]
Dial("SIP/502-09493300", "SIP/trunk_1/501") in new stack
    -- Called trunk_1/501
    -- Got SIP response 503 "Service Unavailable" back from
192.168.123.3
    -- SIP/trunk_1-0949cd30 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Executing [1-dial at macro-trunkdial-failover-0.3:2]
GotoIf("SIP/502-09493300", "0 > 0 ?1-CONGESTION|1:1-out|1") in new stack
    -- Goto (macro-trunkdial-failover-0.3,1-out,1)
    -- Executing [1-out at macro-trunkdial-failover-0.3:1]
Hangup("SIP/502-09493300", "") in new stack
  == Spawn extension (macro-trunkdial-failover-0.3, 1-out, 1) exited
non-zero on 'SIP/502-09493300' in macro 'trunkdial-failover-0.3'
  == Spawn extension (macro-trunkdial-failover-0.3, 1-out, 1) exited
non-zero on 'SIP/502-09493300'
v2torre*CLI>


Thanks and best regards,
-- 
Dima




More information about the asterisk-gui mailing list