cancel
Showing results for 
Search instead for 
Did you mean: 

plustalk and tribox CE

sianddan
Newbie
Posts: 2
Registered: 29-07-2008

plustalk and tribox CE

Hey all,
I've just signed up with plusnet and activated my plustalk account and, being a telephone engineer, figured I'd have a bash at getting trixbox set up so that my housemate and I could share the SIP line we now have.
I have a hunch I have misconfigured my trixbox trunk though, because I don't receive incoming calls to Asterisk, and I can't make outgoing calls because there are no trunks available. Anyone have any ideas what I'm missing? I've posted a copy of the debug output from Asterisk when I dial from my PC - I've replaced the outbound CLI, dialled number and my SIP account number with "mylandline", "mymobile", and "myacct" respectively.

   -- Registered SIP '201' at 192.168.1.5 port 23242 expires 3600
    -- Executing [9mymobile@from-internal:1] Macro("SIP/201-08574c38", "user-callerid|SKIPTTL|") in new stack
    -- Executing [s@macro-user-callerid:1] NoOp("SIP/201-08574c38", "user-callerid: device 201") in new stack
    -- Executing [s@macro-user-callerid:2] Set("SIP/201-08574c38", "AMPUSER=201") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/201-08574c38", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/201-08574c38", "1|Set|REALCALLERIDNUM=201") in new stack
    -- Executing [s@macro-user-callerid:5] NoOp("SIP/201-08574c38", "REALCALLERIDNUM is 201") in new stack
    -- Executing [s@macro-user-callerid:6] Set("SIP/201-08574c38", "AMPUSER=201") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/201-08574c38", "AMPUSERCIDNAME=Daniel Arkley") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("SIP/201-08574c38", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] Set("SIP/201-08574c38", "AMPUSERCID=201") in new stack
    -- Executing [s@macro-user-callerid:10] Set("SIP/201-08574c38", "CALLERID(all)="Daniel Arkley" <201>") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/201-08574c38", "REALCALLERIDNUM=201") in new stack
    -- Executing [s@macro-user-callerid:12] ExecIf("SIP/201-08574c38", "0|Set|CHANNEL(language)=") in new stack
    -- Executing [s@macro-user-callerid:13] NoOp("SIP/201-08574c38", "TTL:  ARG1: SKIPTTL") in new stack
    -- Executing [s@macro-user-callerid:14] GotoIf("SIP/201-08574c38", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,23)
    -- Executing [s@macro-user-callerid:23] NoOp("SIP/201-08574c38", "Using CallerID "Daniel Arkley" <201>") in new stack
    -- Executing [9mymobile@from-internal:2] Set("SIP/201-08574c38", "_NODEST=") in new stack
    -- Executing [9mymobile@from-internal:3] Macro("SIP/201-08574c38", "record-enable|201|OUT|") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/201-08574c38", "0?2:4") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("SIP/201-08574c38", "recordingcheck|20080729-211730|1217362650.43") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
  recordingcheck|20080729-211730|1217362650.43: Outbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] NoOp("SIP/201-08574c38", "No recording needed") in new stack
    -- Executing [9mymobile@from-internal:4] Macro("SIP/201-08574c38", "dialout-trunk|2|mymobile||") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/201-08574c38", "DIAL_TRUNK=2") in new stack
    -- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/201-08574c38", "0|Authenticate|") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/201-08574c38", "0?disabletrunk|1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/201-08574c38", "DIAL_NUMBER=mymobile") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/201-08574c38", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/201-08574c38", "GROUP()=OUT_2") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/201-08574c38", "0?nomax") in new stack
    -- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/201-08574c38", "0?chanfull") in new stack
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/201-08574c38", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/201-08574c38", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/201-08574c38", "outbound-callerid|2") in new stack
    -- Executing [s@macro-outbound-callerid:1] GotoIf("SIP/201-08574c38", "1?start") in new stack
    -- Goto (macro-outbound-callerid,s,3)
    -- Executing [s@macro-outbound-callerid:3] NoOp("SIP/201-08574c38", "REALCALLERIDNUM is 201") in new stack
    -- Executing [s@macro-outbound-callerid:4] GotoIf("SIP/201-08574c38", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,9)
    -- Executing [s@macro-outbound-callerid:9] Set("SIP/201-08574c38", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:10] Set("SIP/201-08574c38", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:11] Set("SIP/201-08574c38", "TRUNKOUTCID=mylandline") in new stack
    -- Executing [s@macro-outbound-callerid:12] GotoIf("SIP/201-08574c38", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,16)
    -- Executing [s@macro-outbound-callerid:16] GotoIf("SIP/201-08574c38", "0?usercid") in new stack
    -- Executing [s@macro-outbound-callerid:17] Set("SIP/201-08574c38", "CALLERID(all)=mylandline") in new stack
    -- Executing [s@macro-outbound-callerid:18] GotoIf("SIP/201-08574c38", "1?report") in new stack
    -- Goto (macro-outbound-callerid,s,22)
    -- Executing [s@macro-outbound-callerid:22] NoOp("SIP/201-08574c38", "CallerID set to "" <mylandline>") in new stack
    -- Executing [s@macro-dialout-trunk:12] AGI("SIP/201-08574c38", "fixlocalprefix") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
  ==  fixlocalprefix: Dialpattern . matched. mymobile -> mymobile
    -- AGI Script fixlocalprefix completed, returning 0
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/201-08574c38", "OUTNUM=mymobile") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/201-08574c38", "custom=SIP/plusnet") in new stack
    -- Executing [s@macro-dialout-trunk:15] GotoIf("SIP/201-08574c38", "1?gocall") in new stack
    -- Goto (macro-dialout-trunk,s,17)
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/201-08574c38", "dialout-trunk-predial-hook|") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/201-08574c38", "0?bypass|1") in new stack
    -- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/201-08574c38", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:20] Dial("SIP/201-08574c38", "SIP/plusnet/mymobile|300|") in new stack
    -- Called plusnet/mymobile
    -- SIP/plusnet-0852a458 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Executing [s@macro-dialout-trunk:21] Goto("SIP/201-08574c38", "s-CONGESTION|1") in new stack
    -- Goto (macro-dialout-trunk,s-CONGESTION,1)
    -- Executing [s-CONGESTION@macro-dialout-trunk:1] GotoIf("SIP/201-08574c38", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,s-CONGESTION,3)
    -- Executing [s-CONGESTION@macro-dialout-trunk:3] NoOp("SIP/201-08574c38", "TRUNK Dial failed due to CONGESTION - failing through to other trunks") in new stack
    -- Executing [9mymobile@from-internal:5] Macro("SIP/201-08574c38", "dialout-trunk|2|mymobile||") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/201-08574c38", "DIAL_TRUNK=2") in new stack
    -- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/201-08574c38", "0|Authenticate|") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/201-08574c38", "0?disabletrunk|1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/201-08574c38", "DIAL_NUMBER=mymobile") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/201-08574c38", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/201-08574c38", "GROUP()=OUT_2") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/201-08574c38", "0?nomax") in new stack
    -- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/201-08574c38", "0?chanfull") in new stack
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/201-08574c38", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/201-08574c38", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/201-08574c38", "outbound-callerid|2") in new stack
    -- Executing [s@macro-outbound-callerid:1] GotoIf("SIP/201-08574c38", "1?start") in new stack
    -- Goto (macro-outbound-callerid,s,3)
    -- Executing [s@macro-outbound-callerid:3] NoOp("SIP/201-08574c38", "REALCALLERIDNUM is 201") in new stack
    -- Executing [s@macro-outbound-callerid:4] GotoIf("SIP/201-08574c38", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,9)
    -- Executing [s@macro-outbound-callerid:9] Set("SIP/201-08574c38", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:10] Set("SIP/201-08574c38", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:11] Set("SIP/201-08574c38", "TRUNKOUTCID=mylandline") in new stack
    -- Executing [s@macro-outbound-callerid:12] GotoIf("SIP/201-08574c38", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,16)
    -- Executing [s@macro-outbound-callerid:16] GotoIf("SIP/201-08574c38", "0?usercid") in new stack
    -- Executing [s@macro-outbound-callerid:17] Set("SIP/201-08574c38", "CALLERID(all)=mylandline") in new stack
    -- Executing [s@macro-outbound-callerid:18] GotoIf("SIP/201-08574c38", "1?report") in new stack
    -- Goto (macro-outbound-callerid,s,22)
    -- Executing [s@macro-outbound-callerid:22] NoOp("SIP/201-08574c38", "CallerID set to "" <mylandline>") in new stack
    -- Executing [s@macro-dialout-trunk:12] AGI("SIP/201-08574c38", "fixlocalprefix") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
  ==  fixlocalprefix: Dialpattern . matched. mymobile -> mymobile
    -- AGI Script fixlocalprefix completed, returning 0
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/201-08574c38", "OUTNUM=mymobile") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/201-08574c38", "custom=SIP/plusnet") in new stack
    -- Executing [s@macro-dialout-trunk:15] GotoIf("SIP/201-08574c38", "1?gocall") in new stack
    -- Goto (macro-dialout-trunk,s,17)
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/201-08574c38", "dialout-trunk-predial-hook|") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/201-08574c38", "0?bypass|1") in new stack
    -- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/201-08574c38", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:20] Dial("SIP/201-08574c38", "SIP/plusnet/mymobile|300|") in new stack
    -- Called plusnet/mymobile
    -- SIP/plusnet-0852b9e8 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Executing [s@macro-dialout-trunk:21] Goto("SIP/201-08574c38", "s-CONGESTION|1") in new stack
    -- Goto (macro-dialout-trunk,s-CONGESTION,1)
    -- Executing [s-CONGESTION@macro-dialout-trunk:1] GotoIf("SIP/201-08574c38", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,s-CONGESTION,3)
    -- Executing [s-CONGESTION@macro-dialout-trunk:3] NoOp("SIP/201-08574c38", "TRUNK Dial failed due to CONGESTION - failing through to other trunks") in new stack
    -- Executing [9mymobile@from-internal:6] Macro("SIP/201-08574c38", "outisbusy|") in new stack
    -- Executing [s@macro-outisbusy:1] Playback("SIP/201-08574c38", "all-circuits-busy-now|noanswer") in new stack
    -- <SIP/201-08574c38> Playing 'all-circuits-busy-now' (language 'en')
  == Spawn extension (macro-outisbusy, s, 1) exited non-zero on 'SIP/201-08574c38' in macro 'outisbusy'
  == Spawn extension (macro-outisbusy, s, 1) exited non-zero on 'SIP/201-08574c38'

I guess I should also mention that calls work both ways when I use SJPhone from my PC instead of connecting Asterisk, so I'm fairly sure it's not a firewalling issue.
Any help would be appreciated!
Best Regards
Daniel
2 REPLIES
pd
Grafter
Posts: 235
Registered: 09-05-2008

Re: plustalk and tribox CE

Daniel, 
You'll find the settings I use for Asterisk here if they are of any use to you.
Peter
sianddan
Newbie
Posts: 2
Registered: 29-07-2008

Re: plustalk and tribox CE

Hi Peter,
They seem to do the job for outgoing calls. Just gotta set up my routing for inbound now! Thanks for your help.
Daniel