itgeekbyday
New Member
- Joined
- Oct 28, 2010
- Messages
- 59
- Reaction score
- 0
I'd recommend routes as lgaetz describes but, let's get it working for now. Once you have proven your trunk and device configuration, then you can diddle with call routing and trunk selection.
The busy signal could mean one of three things.
1. No matching route.
Create a top level outbound route with 9 as a selector digit and a catch all dial pattern as below. Set it with only the SPA3102 trunk.
This dial pattern matches any dialed number starting with a 9 and it strips the leading 9 from the dial digits that it sends on to the trunk. The '.' matches any and all numbers. Make sure that you dial 9, to select the route, and then your local number. You will replace this route with something more specific after you have confirmed that dialing in and out work as expected.Code:9|.
2. No Asterisk to SPA3102 connection.
Check the Asterisk logs for clues about this. Rejected connections are likely due to a user/password mismatch. Triple check the config of the trunk and SPA3102.
3. Improper dialed digits.
The above route should eliminate this as a possibility. But again, the Asterisk log will tell you what digits are being sent.
Ok tried the 9 and local number rule. I think it is a SPA3102 mismatch but am not seeing it. Here is the log file
Oooh a working message stack!
[2010-12-19 14:09:01] VERBOSE[4620] asterisk.c: -- Remote UNIX connection disconnected
[2010-12-19 14:13:39] VERBOSE[3259] netsock2.c: == Using SIP RTP TOS bits 184
[2010-12-19 14:13:39] VERBOSE[3259] netsock2.c: == Using SIP RTP CoS mark 5
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [98263562@from-internal:1] Macro("SIP/2000-00000044", "user-callerid,SKIPTTL,") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-user-callerid:1] Set("SIP/2000-00000044", "AMPUSER=2000") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-user-callerid:2] GotoIf("SIP/2000-00000044", "0?report") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-user-callerid:3] ExecIf("SIP/2000-00000044", "1?Set(REALCALLERIDNUM=2000)") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-user-callerid:4] Set("SIP/2000-00000044", "AMPUSER=2000") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-user-callerid:5] Set("SIP/2000-00000044", "AMPUSERCIDNAME=Analog Lines 0513") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-user-callerid:6] GotoIf("SIP/2000-00000044", "0?report") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-user-callerid:7] Set("SIP/2000-00000044", "AMPUSERCID=2000") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-user-callerid:8] Set("SIP/2000-00000044", "CALLERID(all)="Analog Lines 0513" <2000>") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-user-callerid:9] ExecIf("SIP/2000-00000044", "0?Set(CHANNEL(language)=)") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-user-callerid:10] GotoIf("SIP/2000-00000044", "1?continue") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Goto (macro-user-callerid,s,19)
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-user-callerid:19] NoOp("SIP/2000-00000044", "Using CallerID "Analog Lines 0513" <2000>") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [98263562@from-internal:2] NoOp("SIP/2000-00000044", "Calling Out Route: Catchall") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [98263562@from-internal:3] Set("SIP/2000-00000044", "MOHCLASS=default") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [98263562@from-internal:4] Set("SIP/2000-00000044", "_NODEST=") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [98263562@from-internal:5] Macro("SIP/2000-00000044", "record-enable,2000,OUT,") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-record-enable:1] GotoIf("SIP/2000-00000044", "1?check") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Goto (macro-record-enable,s,4)
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-record-enable:4] ExecIf("SIP/2000-00000044", "0?MacroExit()") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-record-enable:5] GotoIf("SIP/2000-00000044", "0?Group:OUT") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Goto (macro-record-enable,s,15)
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-record-enable:15] GotoIf("SIP/2000-00000044", "0?IN") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-record-enable:16] ExecIf("SIP/2000-00000044", "1?MacroExit()") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [98263562@from-internal:6] Macro("SIP/2000-00000044", "dialout-trunk,1,8263562,") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-dialout-trunk:1] Set("SIP/2000-00000044", "DIAL_TRUNK=1") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/2000-00000044", "0?sub-pincheck,s,1") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/2000-00000044", "0?disabletrunk,1") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-dialout-trunk:4] Set("SIP/2000-00000044", "DIAL_NUMBER=8263562") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-dialout-trunk:5] Set("SIP/2000-00000044", "DIAL_TRUNK_OPTIONS=tr") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-dialout-trunk:6] Set("SIP/2000-00000044", "OUTBOUND_GROUP=OUT_1") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/2000-00000044", "1?nomax") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Goto (macro-dialout-trunk,s,9)
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/2000-00000044", "0?skipoutcid") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-dialout-trunk:10] Set("SIP/2000-00000044", "DIAL_TRUNK_OPTIONS=") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-dialout-trunk:11] Macro("SIP/2000-00000044", "outbound-callerid,1") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/2000-00000044", "0?Set(CALLERPRES()=)") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/2000-00000044", "0?Set(REALCALLERIDNUM=2000)") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/2000-00000044", "1?normcid") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Goto (macro-outbound-callerid,s,6)
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-outbound-callerid:6] Set("SIP/2000-00000044", "USEROUTCID=") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-outbound-callerid:7] Set("SIP/2000-00000044", "EMERGENCYCID=") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-outbound-callerid:8] Set("SIP/2000-00000044", "TRUNKOUTCID=") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/2000-00000044", "1?trunkcid") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Goto (macro-outbound-callerid,s,12)
