Newbie and home/home office setup

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.
Code:
9|.
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.

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)
 
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/2000-00000044", "0?Set(CALLERID(all)=)") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/2000-00000044", "0?Set(CALLERID(all)=)") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/2000-00000044", "0?Set(CALLERID(all)=)") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/2000-00000044", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/2000-00000044", "0?sub-flp-1,s,1") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-dialout-trunk:13] Set("SIP/2000-00000044", "OUTNUM=8263562") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-dialout-trunk:14] Set("SIP/2000-00000044", "custom=SIP/SPA3102") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/2000-00000044", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-dialout-trunk:16] Macro("SIP/2000-00000044", "dialout-trunk-predial-hook,") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/2000-00000044", "") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/2000-00000044", "0?bypass,1") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/2000-00000044", "0?customtrunk") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-dialout-trunk:19] Dial("SIP/2000-00000044", "SIP/SPA3102/8263562,300,") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] netsock2.c: == Using SIP RTP TOS bits 184
[2010-12-19 14:13:39] VERBOSE[4667] netsock2.c: == Using SIP RTP CoS mark 5
[2010-12-19 14:13:39] VERBOSE[4667] app_dial.c: -- Called SPA3102/8263562
[2010-12-19 14:13:39] VERBOSE[3259] chan_sip.c: -- Got SIP response 410 "Gone" back from 192.168.0.250:5061
[2010-12-19 14:13:39] VERBOSE[4667] app_dial.c: -- SIP/SPA3102-00000045 is circuit-busy
[2010-12-19 14:13:39] VERBOSE[4667] app_dial.c: == Everyone is busy/congested at this time (1:0/1/0)
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-dialout-trunk:20] NoOp("SIP/2000-00000044", "Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 22") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-dialout-trunk:21] Goto("SIP/2000-00000044", "s-CONGESTION,1") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Goto (macro-dialout-trunk,s-CONGESTION,1)
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s-CONGESTION@macro-dialout-trunk:1] Set("SIP/2000-00000044", "RC=22") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s-CONGESTION@macro-dialout-trunk:2] Goto("SIP/2000-00000044", "22,1") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Goto (macro-dialout-trunk,22,1)
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [22@macro-dialout-trunk:1] Goto("SIP/2000-00000044", "s-CHANGED,1") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Goto (macro-dialout-trunk,s-CHANGED,1)
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s-CHANGED@macro-dialout-trunk:1] NoOp("SIP/2000-00000044", "Dial failed due to trunk reporting Number Changed - giving up") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s-CHANGED@macro-dialout-trunk:2] PlayTones("SIP/2000-00000044", "busy") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s-CHANGED@macro-dialout-trunk:3] Busy("SIP/2000-00000044", "20") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] app_macro.c: == Spawn extension (macro-dialout-trunk, s-CHANGED, 3) exited non-zero on 'SIP/2000-00000044' in macro 'dialout-trunk'
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: == Spawn extension (from-internal, 98263562, 6) exited non-zero on 'SIP/2000-00000044'
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [h@from-internal:1] Macro("SIP/2000-00000044", "hangupcall") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-hangupcall:1] GotoIf("SIP/2000-00000044", "1?skiprg") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Goto (macro-hangupcall,s,4)
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-hangupcall:4] GotoIf("SIP/2000-00000044", "1?skipblkvm") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Goto (macro-hangupcall,s,7)
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-hangupcall:7] GotoIf("SIP/2000-00000044", "1?theend") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Goto (macro-hangupcall,s,9)
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing [s@macro-hangupcall:9] Hangup("SIP/2000-00000044", "") in new stack
[2010-12-19 14:13:39] VERBOSE[4667] app_macro.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/2000-00000044' in macro 'hangupcall'
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/2000-00000044'
[2010-12-19 14:13:58] VERBOSE[3259] netsock2.c: == Using SIP RTP TOS bits 184
[2010-12-19 14:13:58] VERBOSE[3259] netsock2.c: == Using SIP RTP CoS mark 5
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [917858263562@from-internal:1] Macro("SIP/2000-00000046", "user-callerid,SKIPTTL,") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-user-callerid:1] Set("SIP/2000-00000046", "AMPUSER=2000") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-user-callerid:2] GotoIf("SIP/2000-00000046", "0?report") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-user-callerid:3] ExecIf("SIP/2000-00000046", "1?Set(REALCALLERIDNUM=2000)") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-user-callerid:4] Set("SIP/2000-00000046", "AMPUSER=2000") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-user-callerid:5] Set("SIP/2000-00000046", "AMPUSERCIDNAME=Analog Lines 0513") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-user-callerid:6] GotoIf("SIP/2000-00000046", "0?report") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-user-callerid:7] Set("SIP/2000-00000046", "AMPUSERCID=2000") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-user-callerid:8] Set("SIP/2000-00000046", "CALLERID(all)="Analog Lines 0513" <2000>") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-user-callerid:9] ExecIf("SIP/2000-00000046", "0?Set(CHANNEL(language)=)") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-user-callerid:10] GotoIf("SIP/2000-00000046", "1?continue") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Goto (macro-user-callerid,s,19)
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-user-callerid:19] NoOp("SIP/2000-00000046", "Using CallerID "Analog Lines 0513" <2000>") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [917858263562@from-internal:2] NoOp("SIP/2000-00000046", "Calling Out Route: Catchall") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [917858263562@from-internal:3] Set("SIP/2000-00000046", "MOHCLASS=default") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [917858263562@from-internal:4] Set("SIP/2000-00000046", "_NODEST=") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [917858263562@from-internal:5] Macro("SIP/2000-00000046", "record-enable,2000,OUT,") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-record-enable:1] GotoIf("SIP/2000-00000046", "1?check") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Goto (macro-record-enable,s,4)
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-record-enable:4] ExecIf("SIP/2000-00000046", "0?MacroExit()") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-record-enable:5] GotoIf("SIP/2000-00000046", "0?Group:OUT") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Goto (macro-record-enable,s,15)
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-record-enable:15] GotoIf("SIP/2000-00000046", "0?IN") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-record-enable:16] ExecIf("SIP/2000-00000046", "1?MacroExit()") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [917858263562@from-internal:6] Macro("SIP/2000-00000046", "dialout-trunk,1,17858263562,") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-dialout-trunk:1] Set("SIP/2000-00000046", "DIAL_TRUNK=1") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/2000-00000046", "0?sub-pincheck,s,1") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/2000-00000046", "0?disabletrunk,1") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-dialout-trunk:4] Set("SIP/2000-00000046", "DIAL_NUMBER=17858263562") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-dialout-trunk:5] Set("SIP/2000-00000046", "DIAL_TRUNK_OPTIONS=tr") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-dialout-trunk:6] Set("SIP/2000-00000046", "OUTBOUND_GROUP=OUT_1") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/2000-00000046", "1?nomax") in new stack
 
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Goto (macro-dialout-trunk,s,9)
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/2000-00000046", "0?skipoutcid") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-dialout-trunk:10] Set("SIP/2000-00000046", "DIAL_TRUNK_OPTIONS=") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-dialout-trunk:11] Macro("SIP/2000-00000046", "outbound-callerid,1") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/2000-00000046", "0?Set(CALLERPRES()=)") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/2000-00000046", "0?Set(REALCALLERIDNUM=2000)") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/2000-00000046", "1?normcid") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Goto (macro-outbound-callerid,s,6)
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-outbound-callerid:6] Set("SIP/2000-00000046", "USEROUTCID=") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-outbound-callerid:7] Set("SIP/2000-00000046", "EMERGENCYCID=") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-outbound-callerid:8] Set("SIP/2000-00000046", "TRUNKOUTCID=") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/2000-00000046", "1?trunkcid") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Goto (macro-outbound-callerid,s,12)
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/2000-00000046", "0?Set(CALLERID(all)=)") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/2000-00000046", "0?Set(CALLERID(all)=)") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/2000-00000046", "0?Set(CALLERID(all)=)") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/2000-00000046", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/2000-00000046", "0?sub-flp-1,s,1") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-dialout-trunk:13] Set("SIP/2000-00000046", "OUTNUM=17858263562") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-dialout-trunk:14] Set("SIP/2000-00000046", "custom=SIP/SPA3102") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/2000-00000046", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-dialout-trunk:16] Macro("SIP/2000-00000046", "dialout-trunk-predial-hook,") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/2000-00000046", "") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/2000-00000046", "0?bypass,1") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/2000-00000046", "0?customtrunk") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-dialout-trunk:19] Dial("SIP/2000-00000046", "SIP/SPA3102/17858263562,300,") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] netsock2.c: == Using SIP RTP TOS bits 184
[2010-12-19 14:13:58] VERBOSE[4668] netsock2.c: == Using SIP RTP CoS mark 5
[2010-12-19 14:13:58] VERBOSE[4668] app_dial.c: -- Called SPA3102/17858263562
[2010-12-19 14:13:58] VERBOSE[3259] chan_sip.c: -- Got SIP response 410 "Gone" back from 192.168.0.250:5061
[2010-12-19 14:13:58] VERBOSE[4668] app_dial.c: -- SIP/SPA3102-00000047 is circuit-busy
[2010-12-19 14:13:58] VERBOSE[4668] app_dial.c: == Everyone is busy/congested at this time (1:0/1/0)
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-dialout-trunk:20] NoOp("SIP/2000-00000046", "Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 22") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-dialout-trunk:21] Goto("SIP/2000-00000046", "s-CONGESTION,1") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Goto (macro-dialout-trunk,s-CONGESTION,1)
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s-CONGESTION@macro-dialout-trunk:1] Set("SIP/2000-00000046", "RC=22") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s-CONGESTION@macro-dialout-trunk:2] Goto("SIP/2000-00000046", "22,1") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Goto (macro-dialout-trunk,22,1)
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [22@macro-dialout-trunk:1] Goto("SIP/2000-00000046", "s-CHANGED,1") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Goto (macro-dialout-trunk,s-CHANGED,1)
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s-CHANGED@macro-dialout-trunk:1] NoOp("SIP/2000-00000046", "Dial failed due to trunk reporting Number Changed - giving up") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s-CHANGED@macro-dialout-trunk:2] PlayTones("SIP/2000-00000046", "busy") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s-CHANGED@macro-dialout-trunk:3] Busy("SIP/2000-00000046", "20") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] app_macro.c: == Spawn extension (macro-dialout-trunk, s-CHANGED, 3) exited non-zero on 'SIP/2000-00000046' in macro 'dialout-trunk'
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: == Spawn extension (from-internal, 917858263562, 6) exited non-zero on 'SIP/2000-00000046'
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [h@from-internal:1] Macro("SIP/2000-00000046", "hangupcall") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-hangupcall:1] GotoIf("SIP/2000-00000046", "1?skiprg") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Goto (macro-hangupcall,s,4)
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-hangupcall:4] GotoIf("SIP/2000-00000046", "1?skipblkvm") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Goto (macro-hangupcall,s,7)
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-hangupcall:7] GotoIf("SIP/2000-00000046", "1?theend") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Goto (macro-hangupcall,s,9)
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: -- Executing [s@macro-hangupcall:9] Hangup("SIP/2000-00000046", "") in new stack
[2010-12-19 14:13:58] VERBOSE[4668] app_macro.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/2000-00000046' in macro 'hangupcall'
[2010-12-19 14:13:58] VERBOSE[4668] pbx.c: == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/2000-00000046'
[2010-12-19 14:14:14] VERBOSE[4670] manager.c: == Manager 'admin' logged on from 127.0.0.1
[2010-12-19 14:14:14] VERBOSE[4670] manager.c: == Manager 'admin' logged off from 127.0.0.1
[2010-12-19 14:14:15] VERBOSE[4673] manager.c: == Manager 'admin' logged on from 127.0.0.1
[2010-12-19 14:14:15] VERBOSE[4673] manager.c: == Manager 'admin' logged off from 127.0.0.1
[2010-12-19 14:14:17] VERBOSE[4675] manager.c: == Manager 'admin' logged on from 127.0.0.1
 
Enough logs!

Here's the part that matters
Code:
2010-12-19 14:13:39] VERBOSE[3259] chan_sip.c: -- [B]Got SIP response 410 "Gone" back from 192.168.0.250:5061[/B]
[2010-12-19 14:13:39] VERBOSE[4667] app_dial.c: -- SIP/SPA3102-00000045 is circuit-busy
[2010-12-19 14:13:39] VERBOSE[4667] app_dial.c: == Everyone is busy/congested at this time (1:0/1/0)
[2010-12-19 14:13:39] VERBOSE[4667] pbx.c: -- Executing  [s@macro-dialout-trunk:20] NoOp("SIP/2000-00000044", "Dial failed for  some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 22") in new  stack
If I am not mistaken, this error occurs when the SPA denies an unauthenticated SIP URI call. This happens when the Asterisk system is not able to log into the SPA.

Quadruple check the user id and password on the SPA PSTN line and the SPA trunk config. These user ids and passwords must match. Also, I'm not saying that this is the problem but, make sure that you don;t have an overly long password or some such that might be being truncated by the SPA config screen. Limit the password length to not more than 8 characters, for now.

Edit: As I look at it again, I suspect that the following is your real problem.
Make sure that the SPA PSTN Line configuration option is set as below:
Code:
Make Calls without Reg: yes
 
I have looked and looked at my config's and checked everything several times..here is a break down of related

Asterisk:

Trunk to SPA

Name: SPA3102

In outgoing settings:
Trunk Name : SPA3102
In peer details:
type=peer
auth=md5
host=192.168.0.250
port=5061
secret=(same as below and 8 chars no spec chars
username=5555
dtmfmode=rfc2833
insecure=very

In Incoming settings:
User Context: 5555
in user details:
type=user
context=from-trunk-sip-SPA3102 (not sure? tried with and without)
nat=no
username=5555
secret=(same as above)
dtmfmode=rfc2833
disallow=all
allow=ulaw
insecure=very

SPA3102:

PSTN line.

Line Enable:Yes

Proxy and Registration
PROXY: 192.168.0.50
Use Outbound Proxy: Yes
Register: Yes
Make Call Without Reg:Yes

Subscriber Information
User ID: 5555
Password: (same as above)
Use Auth ID: No
 
It's always the littlest details, isn't it?

Should be
SPA3102:

PSTN line.

Line Enable:Yes

Proxy and Registration
PROXY: 192.168.0.50
Use Outbound Proxy: Yes
Register: No

These posts have forced me to re-examine this this old information. I see lots of opportunity for cleanup but, I'll skip that for now.

There is a missing piece, I'm really sorry for the omission. The magic bullet:
On the SPA3102 under PSTN Line
Code:
VoIP-To-PSTN Gateway Setup 
VoIP-To-PSTN Gateway Enable: Yes

VoIP Users and Passwords (HTTP Authentication)
VoIP User 1 Auth ID: 5555
VoIP User 1 Password: mypassword55

PSTN-To-VoIP Gateway Setup
PSTN-To-VoIP Gateway Enable: Yes
 
Niether the new pieces/additons or the "register No" has resolved.

I am confused on one thing though. is the proxy and outbound proxy supposed to be filled out or one and not the other? I have tried it several ways and no combination works

Proxy and Registration Proxy: 192.168.0.250 Outbound Proxy: 192.168.0.250? Use Outbound Proxy: yes Use OB Proxy In Dialog: ? Register: no Make Call Without Reg: yes
 
In my example, I intended to have the IP only in the Proxy: field, leaving the Outbound Proxy: blank. It should not harm the configuration to have them both filled with the same IP.

If I am not mistaken the Use Outbound Proxy: Yes is a default setting that will ignore the empty field.

I'm sorry it's still not working. It certainly should be. Have you tried turning it off and on again? I recommend retiring for the evening and looking at it with fresh eyes tomorrow.
 

Members online

Forum statistics

Threads
26,688
Messages
174,412
Members
20,259
Latest member
Fadeek86
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top