No matching endpoint?

Hey Guys,

I’ve got a new install, - I’ve set up the incoming phone number with a supplier and its configured as a Trunk (I only want incoming calls to use this trunk).

I then have a different supplier who I’m using for outgoing calls. Thats been set up as a trunk too. Both are registered in the dashboard as are my handsets, however when I ring my number nothing happens at all. I’ve looked in the logs and it says:

[2016-02-25 13:33:46] NOTICE[5098]
res_pjsip/pjsip_distributor.c: Request from
sip:[email protected]’ failed for
‘212.11.94.169:5060’ (callid:
[email protected]) - No matching
endpoint found

Now this must be my test call coming in as its showing 07111111119 in the log (I’m not sure what those IP addresses are as I don’t recognise them) but obviously no matching endpoint…

I have an incoming route set up in my configuration which says if a call comes in using the IN trunk then send to extension 100. So I’m not sure why its saying no endpoint found…

Any ideas?

I’ve just attempted to make an outgoing call from my handset and it just came up with line busy…

Any ideas why its refusing calls both directions?

Where do I need to start? I’ve checked the logs and I’ve googled but nothing comes up with a clear explanation as to why its not allowing calls in or out.

Any advice is really appreciated :slightly_smiling:

I don’t see anything in your description about setting up inbound and outbound routes. That’s how your phone connects to your trunks.

Hi,

I do have inbound and outbound routes set up,

Inbound Route:

Outbound Route:

My dashboard shows 2 trunks online, no active calls (Ignore the users offline, as I’ve just rebooted the pbx and handsets)

@totallytech : Why don’t you try giving the DID number on the inbound route and set verbose to 12 on your CLI and check what is happening ?

Ok, using the freepbx asterisk log viewer I see this as my phone boots:

[2016-03-01 08:46:39] NOTICE[2058] chan_sip.c: Peer ‘100’ is now Reachable. (451ms / 2000ms)

I called 07450111111 from my phone and I get this:

[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [07450111111 @from-internal:1] Macro(“SIP/100-00000000”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-user-callerid:1] Set(“SIP/100-00000000”, “TOUCH_MONITOR=1456822022.0”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-user-callerid:2] Set(“SIP/100-00000000”, “AMPUSER=100”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-user-callerid:3] GotoIf(“SIP/100-00000000”, “0?report”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-user-callerid:4] ExecIf(“SIP/100-00000000”, “1?Set(REALCALLERIDNUM=100)”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-user-callerid:5] Set(“SIP/100-00000000”, “AMPUSER=100”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-user-callerid:6] GotoIf(“SIP/100-00000000”, “0?limit”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-user-callerid:7] Set(“SIP/100-00000000”, “AMPUSERCIDNAME=Reception”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-user-callerid:8] GotoIf(“SIP/100-00000000”, “0?report”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-user-callerid:9] Set(“SIP/100-00000000”, “AMPUSERCID=100”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-user-callerid:10] Set(“SIP/100-00000000”, “__DIAL_OPTIONS=Ttr”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-user-callerid:11] Set(“SIP/100-00000000”, “CALLERID(all)=“Reception” <100>”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-user-callerid:12] GotoIf(“SIP/100-00000000”, “0?limit”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-user-callerid:13] ExecIf(“SIP/100-00000000”, “1?Set(GROUP(concurrency_limit)=100)”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-user-callerid:14] ExecIf(“SIP/100-00000000”, “0?Set(CHANNEL(language)=)”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-user-callerid:15] GotoIf(“SIP/100-00000000”, “1?continue”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Goto (macro-user-callerid,s,29)
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-user-callerid:29] Set(“SIP/100-00000000”, “CALLERID(number)=100”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-user-callerid:30] Set(“SIP/100-00000000”, “CALLERID(name)=Reception”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-user-callerid:31] Set(“SIP/100-00000000”, “CDR(cnum)=100”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-user-callerid:32] Set(“SIP/100-00000000”, “CDR(cnam)=Reception”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-user-callerid:33] Set(“SIP/100-00000000”, “CHANNEL(language)=en”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [07450111111 @from-internal:2] Gosub(“SIP/100-00000000”, “sub-record-check,s,1(out,07450111111 ,dontcare)”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@sub-record-check:1] GotoIf(“SIP/100-00000000”, “0?initialized”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@sub-record-check:2] Set(“SIP/100-00000000”, “__REC_STATUS=INITIALIZED”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@sub-record-check:3] Set(“SIP/100-00000000”, “NOW=1456822022”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@sub-record-check:4] Set(“SIP/100-00000000”, “__DAY=01”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@sub-record-check:5] Set(“SIP/100-00000000”, “__MONTH=03”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@sub-record-check:6] Set(“SIP/100-00000000”, “__YEAR=2016”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@sub-record-check:7] Set(“SIP/100-00000000”, “__TIMESTR=20160301-084702”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@sub-record-check:8] Set(“SIP/100-00000000”, “__FROMEXTEN=100”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@sub-record-check:9] Set(“SIP/100-00000000”, “__MON_FMT=wav”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@sub-record-check:10] NoOp(“SIP/100-00000000”, “Recordings initialized”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@sub-record-check:11] ExecIf(“SIP/100-00000000”, “0?Set(ARG3=dontcare)”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@sub-record-check:12] Set(“SIP/100-00000000”, “REC_POLICY_MODE_SAVE=”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@sub-record-check:13] ExecIf(“SIP/100-00000000”, “0?Set(REC_STATUS=NO)”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@sub-record-check:14] GotoIf(“SIP/100-00000000”, “3?checkaction”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Goto (sub-record-check,s,17)
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@sub-record-check:17] GotoIf(“SIP/100-00000000”, “1?sub-record-check,out,1”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Goto (sub-record-check,out,1)
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [out@sub-record-check:1] NoOp(“SIP/100-00000000”, "Outbound Recording Check from 100 to 07450111111 ") in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [out@sub-record-check:2] Set(“SIP/100-00000000”, “RECMODE=dontcare”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [out@sub-record-check:3] ExecIf(“SIP/100-00000000”, “1?Goto(routewins)”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Goto (sub-record-check,out,7)
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [out@sub-record-check:7] Gosub(“SIP/100-00000000”, “recordcheck,1(dontcare,out,07450111111)”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [recordcheck@sub-record-check:1] NoOp(“SIP/100-00000000”, “Starting recording check against dontcare”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [recordcheck@sub-record-check:2] Goto(“SIP/100-00000000”, “dontcare”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Goto (sub-record-check,recordcheck,3)
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [recordcheck@sub-record-check:3] Return(“SIP/100-00000000”, “”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [out@sub-record-check:8] Return(“SIP/100-00000000”, “”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [07450111111@from-internal:3] ExecIf(“SIP/100-00000000”, “0 ?Set(CDR(accountcode)=)”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [07450111111@from-internal:4] Set(“SIP/100-00000000”, “MOHCLASS=default”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [07450111111@from-internal:5] ExecIf(“SIP/100-00000000”, “1?Set(TRUNKCIDOVERRIDE=<01953202020>)”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [07450111111@from-internal:6] Set(“SIP/100-00000000”, “_NODEST=”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [07450111111@from-internal:7] Macro(“SIP/100-00000000”, “dialout-trunk,2,07450111111,off”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-dialout-trunk:1] Set(“SIP/100-00000000”, “DIAL_TRUNK=2”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/100-00000000”, “0?sub-pincheck,s,1()”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/100-00000000”, “0?disabletrunk,1”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-dialout-trunk:4] Set(“SIP/100-00000000”, “DIAL_NUMBER=07450111111”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-dialout-trunk:5] Set(“SIP/100-00000000”, “DIAL_TRUNK_OPTIONS=Ttr”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-dialout-trunk:6] Set(“SIP/100-00000000”, “OUTBOUND_GROUP=OUT_2”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/100-00000000”, “1?nomax”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Goto (macro-dialout-trunk,s,9)
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/100-00000000”, “0?skipoutcid”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-dialout-trunk:10] Set(“SIP/100-00000000”, “DIAL_TRUNK_OPTIONS=Tt”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-dialout-trunk:11] Macro(“SIP/100-00000000”, “outbound-callerid,2”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/100-00000000”, “0?Set(CALLERPRES(name-pres)=)”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/100-00000000”, “0?Set(CALLERPRES(num-pres)=)”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-outbound-callerid:3] ExecIf(“SIP/100-00000000”, “0?Set(REALCALLERIDNUM=100)”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-outbound-callerid:4] GotoIf(“SIP/100-00000000”, “1?normcid”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Goto (macro-outbound-callerid,s,7)
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-outbound-callerid:7] Set(“SIP/100-00000000”, “USEROUTCID=”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-outbound-callerid:8] Set(“SIP/100-00000000”, “EMERGENCYCID=”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-outbound-callerid:9] Set(“SIP/100-00000000”, “TRUNKOUTCID=01953202020”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-outbound-callerid:10] GotoIf(“SIP/100-00000000”, “1?trunkcid”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Goto (macro-outbound-callerid,s,15)
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-outbound-callerid:15] ExecIf(“SIP/100-00000000”, “1?Set(CALLERID(all)=01953202020)”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-outbound-callerid:16] ExecIf(“SIP/100-00000000”, “0?Set(CALLERID(all)=)”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-outbound-callerid:17] ExecIf(“SIP/100-00000000”, “1?Set(CALLERID(all)=<01953202020>)”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-outbound-callerid:18] ExecIf(“SIP/100-00000000”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-outbound-callerid:19] ExecIf(“SIP/100-00000000”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-outbound-callerid:20] Set(“SIP/100-00000000”, “CDR(outbound_cnum)=01953202020”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-outbound-callerid:21] Set(“SIP/100-00000000”, “CDR(outbound_cnam)=”) in new stack
[2016-03-01 08:47:02] WARNING[1926] func_cdr.c: CDR requires a value (CDR(variable)=value)
)[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-dialout-trunk:12] GosubIf(“SIP/100-00000000”, “1?sub-flp-2,s,1()”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@sub-flp-2:1] ExecIf(“SIP/100-00000000”, “1?Return()”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-dialout-trunk:13] Set(“SIP/100-00000000”, “OUTNUM=07450111111”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-dialout-trunk:14] Set(“SIP/100-00000000”, “custom=SIP/aloha”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/100-00000000”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-dialout-trunk:16] ExecIf(“SIP/100-00000000”, “0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-dialout-trunk:17] Macro(“SIP/100-00000000”, “dialout-trunk-predial-hook,”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/100-00000000”, “”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/100-00000000”, “0?bypass,1”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-dialout-trunk:19] ExecIf(“SIP/100-00000000”, “1?Set(CONNECTEDLINE(num,i)=07450111111)”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-dialout-trunk:20] ExecIf(“SIP/100-00000000”, “1?Set(CONNECTEDLINE(name,i)=CID:01953202020)”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-dialout-trunk:21] ExecIf(“SIP/100-00000000”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)01953202020)”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-dialout-trunk:22] GotoIf(“SIP/100-00000000”, “0?customtrunk”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-dialout-trunk:23] Dial(“SIP/100-00000000”, “SIP/aloha/07450111111,300,Tt”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] netsock2.c: Using SIP RTP TOS bits 184
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] netsock2.c: Using SIP RTP CoS mark 5
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] app_dial.c: Called SIP/aloha/07450111111
[2016-03-01 08:47:02] VERBOSE[2058][C-00000000] chan_sip.c: Got SIP response 603 “Declined” back from 109.169.31.146:5060
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] app_dial.c: SIP/aloha-00000001 is busy
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] app_dial.c: Everyone is busy/congested at this time (1:1/0/0)
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-dialout-trunk:24] NoOp(“SIP/100-00000000”, “Dial failed for some reason with DIALSTATUS = BUSY and HANGUPCAUSE = 21”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-dialout-trunk:25] GotoIf(“SIP/100-00000000”, “0?continue,1:s-BUSY,1”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Goto (macro-dialout-trunk,s-BUSY,1)
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s-BUSY@macro-dialout-trunk:1] NoOp(“SIP/100-00000000”, “Dial failed due to trunk reporting BUSY - giving up”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s-BUSY@macro-dialout-trunk:2] PlayTones(“SIP/100-00000000”, “busy”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s-BUSY@macro-dialout-trunk:3] Busy(“SIP/100-00000000”, “20”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] app_macro.c: Spawn extension (macro-dialout-trunk, s-BUSY, 3) exited non-zero on ‘SIP/100-00000000’ in macro ‘dialout-trunk’
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Spawn extension (from-internal, 07450111111, 7) exited non-zero on ‘SIP/100-00000000’
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [h@from-internal:1] Macro(“SIP/100-00000000”, “hangupcall”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-hangupcall:1] GotoIf(“SIP/100-00000000”, “1?theend”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Goto (macro-hangupcall,s,3)
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-hangupcall:3] ExecIf(“SIP/100-00000000”, “0?Set(CDR(recordingfile)=)”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Executing [s@macro-hangupcall:4] Hangup(“SIP/100-00000000”, “”) in new stack
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] app_macro.c: Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/100-00000000’ in macro ‘hangupcall’
[2016-03-01 08:47:02] VERBOSE[8115][C-00000000] pbx.c: Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/100-00000000’

But what I did notice was:

[2016-03-01 08:47:02] VERBOSE[2058][C-00000000] chan_sip.c: Got SIP response 603 “Declined” back from 109.169.31.146:5060

So does this look like it may be an issue with the trunk provider?

hmmmm, ok. I’ve spoken to the provider who has asked if I can provide a packet dump of all invites that I’m sending then they might be able to help…

Is the trunk even up? Try a ‘sip show peers’ at the console and look for the trunk details, if it shows as ‘unmonitored’ then add register=yes to the trunk definition and check again.

Oh, is this chan_sip or chan_pjsip?

You are getting a 603 response

which is to be interpreted as “aloha cannot/will-not route your call to 07450111111” perhaps you are trying to call a Hutchison mobile phone call in the UK, try dialing 447450111111

Hey @dirk
it is a chan_sip connection, and it shows unmonitored. I’ve added the register=yes to the trunk definition and restarted the pbx but its still showing unmonitored. -

Host (Shows the correct IP)
Forcerport = Yes
Comedia - Yes
Dyn (Blank)
ACL (Blank)
Port = 5060
Status = Unmonitored

So I dunno why its refusing to be monitored.

Hey @dicko
I’ve tried to call 447450111111 (Which used to be a Hutchinson Three number but it now an 02 number) but exactly the same happens. - Just says line is busy.

Here’s how my trunk is configured, could you post your config in the same format please?
Obviously these will be different depending on what your provider wants, the register string for mine is quite odd!

Oh, and although it works for me, the trunk definition below may still have mistakes in it!

General
Trunk Name: VoIPTALK
Outbound CallerID <0123456789> (the provider needs to support the number you send though)

Manipulation Rules
{nothing set}

Sip Settings
Outgoing

Trunk Name: VoIPTALK-Out
Peer details:
host=voiptalk.org
username={account username}
secret={account password}
fromuser={account username}
fromdomain=voiptalk.org
type=peer
insecure=port,invite
canreinvite=no
disallow=all
allow=g722&ulaw&alaw
context=from-trunk
sendrpid=yes
qualify=yes

Incoming
User context: VoIPTALK-In
User details
host=voiptalk.org
type=peer
insecure=invite,port
context=from-trunk-VoIPTALK-custom
Register string: {user}:{pass}@VoIPTALK-Out/{user}

@dicko makes a good point, some ITSP’s want the number presented to them in a particular format, so you may need to send the number with something in the digit manipulation fields.
So you dial 0121 234 2345 and the trunk sends 44121 2342345

If this turns out to be needed, use the ‘Dialplan manipulation rules’ and set:

Prepend: 44
Prefix: 0
Match: .

(I think, been a while since I needed that, the resulting translation can be seen at the console anyway)

General
Trunk Name: Aloha Outbound
Hide CallerID: NO
Outbound CallerID <0123456789>
CID Options: Allow Any CID
Maximum Channels: (blank)
Asterisk Trunk Dial Options: Tt (System)
Continue if Busy: NO
Disable Tunk: No

Dialplan Manipulation Rules
Prepend (Empty)
Prefix (Empty)
[ . ] (I’ve placed a “.” as my instructions from the provider said to do it.
Caller ID: (Empty)

Sip Settings
Outgoing
Trunk Name: aloha
Peer details:
host=sip.aloha-connect.com
username=(My Username)
secret=(My Password)
type=peer
register=yes

Incoming
User context: (blank)
User details (blank)
Register string: {username}:{password}@sip.aloha-connect.com

There is a guide available from Aloha Connect to set up the trunks etc, which I’ve followed although it is slightly out of date now. (check here)

I’ll send a quick help desk message and make sure they don’t need a certain format for the dialng etc…

Thank so much for helping like this - its been driving me mental!

So, I set up a tcp dump so I can check the packet data being sent out to aloha.

The list of data when I picked up the handset and called 07450****** you can see it going from my handset (192.168.1.10 to the pbx 192.168.1.250)


I’d love to know what is going on there with the 8007 - 6666 - 5555555555 calls too - clearly looking for access to the pbx to make calls…

Anyway - If I check the flow sequence for the sip:07450******@192.168.1.250 it shows:

and the flow sequence for sip:07450******@sip.aloha-connect.com:

To me it looks like its declining the call at the aloha connect connection. I’ve checked and checked the username and password details…

Hey @dirk
I did check sip show registry which shows:

sip.aloha-connect.com:5060 Y username 105 Registered Fri, 04 Mar 2016 12:43:08

So it is connecting with aloha-connect.com - Would this be why it doesnt display under sip show peers?

Just attempted again and this is the log:

[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [07450111111@from-internal:1] Macro(“SIP/100-00000049”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-user-callerid:1] Set(“SIP/100-00000049”, “TOUCH_MONITOR=1457095769.73”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-user-callerid:2] Set(“SIP/100-00000049”, “AMPUSER=100”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-user-callerid:3] GotoIf(“SIP/100-00000049”, “0?report”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-user-callerid:4] ExecIf(“SIP/100-00000049”, “1?Set(REALCALLERIDNUM=100)”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-user-callerid:5] Set(“SIP/100-00000049”, “AMPUSER=100”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-user-callerid:6] GotoIf(“SIP/100-00000049”, “0?limit”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-user-callerid:7] Set(“SIP/100-00000049”, “AMPUSERCIDNAME=Reception”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-user-callerid:8] GotoIf(“SIP/100-00000049”, “0?report”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-user-callerid:9] Set(“SIP/100-00000049”, “AMPUSERCID=100”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-user-callerid:10] Set(“SIP/100-00000049”, “__DIAL_OPTIONS=Ttr”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-user-callerid:11] Set(“SIP/100-00000049”, “CALLERID(all)=“Reception” <100>”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-user-callerid:12] GotoIf(“SIP/100-00000049”, “0?limit”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-user-callerid:13] ExecIf(“SIP/100-00000049”, “1?Set(GROUP(concurrency_limit)=100)”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-user-callerid:14] ExecIf(“SIP/100-00000049”, “0?Set(CHANNEL(language)=)”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-user-callerid:15] GotoIf(“SIP/100-00000049”, “1?continue”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Goto (macro-user-callerid,s,29)
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-user-callerid:29] Set(“SIP/100-00000049”, “CALLERID(number)=100”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-user-callerid:30] Set(“SIP/100-00000049”, “CALLERID(name)=Reception”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-user-callerid:31] Set(“SIP/100-00000049”, “CDR(cnum)=100”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-user-callerid:32] Set(“SIP/100-00000049”, “CDR(cnam)=Reception”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-user-callerid:33] Set(“SIP/100-00000049”, “CHANNEL(language)=en”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [07450111111@from-internal:2] Gosub(“SIP/100-00000049”, “sub-record-check,s,1(out,07450111111,dontcare)”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@sub-record-check:1] GotoIf(“SIP/100-00000049”, “0?initialized”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@sub-record-check:2] Set(“SIP/100-00000049”, “__REC_STATUS=INITIALIZED”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@sub-record-check:3] Set(“SIP/100-00000049”, “NOW=1457095769”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@sub-record-check:4] Set(“SIP/100-00000049”, “__DAY=04”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@sub-record-check:5] Set(“SIP/100-00000049”, “__MONTH=03”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@sub-record-check:6] Set(“SIP/100-00000049”, “__YEAR=2016”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@sub-record-check:7] Set(“SIP/100-00000049”, “__TIMESTR=20160304-124929”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@sub-record-check:8] Set(“SIP/100-00000049”, “__FROMEXTEN=100”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@sub-record-check:9] Set(“SIP/100-00000049”, “__MON_FMT=wav”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@sub-record-check:10] NoOp(“SIP/100-00000049”, “Recordings initialized”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@sub-record-check:11] ExecIf(“SIP/100-00000049”, “0?Set(ARG3=dontcare)”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@sub-record-check:12] Set(“SIP/100-00000049”, “REC_POLICY_MODE_SAVE=”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@sub-record-check:13] ExecIf(“SIP/100-00000049”, “0?Set(REC_STATUS=NO)”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@sub-record-check:14] GotoIf(“SIP/100-00000049”, “3?checkaction”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Goto (sub-record-check,s,17)
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@sub-record-check:17] GotoIf(“SIP/100-00000049”, “1?sub-record-check,out,1”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Goto (sub-record-check,out,1)
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [out@sub-record-check:1] NoOp(“SIP/100-00000049”, “Outbound Recording Check from 100 to 07450111111”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [out@sub-record-check:2] Set(“SIP/100-00000049”, “RECMODE=dontcare”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [out@sub-record-check:3] ExecIf(“SIP/100-00000049”, “1?Goto(routewins)”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Goto (sub-record-check,out,7)
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [out@sub-record-check:7] Gosub(“SIP/100-00000049”, “recordcheck,1(dontcare,out,07450111111)”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [recordcheck@sub-record-check:1] NoOp(“SIP/100-00000049”, “Starting recording check against dontcare”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [recordcheck@sub-record-check:2] Goto(“SIP/100-00000049”, “dontcare”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Goto (sub-record-check,recordcheck,3)
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [recordcheck@sub-record-check:3] Return(“SIP/100-00000049”, “”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [out@sub-record-check:8] Return(“SIP/100-00000049”, “”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [07450111111@from-internal:3] ExecIf(“SIP/100-00000049”, “0 ?Set(CDR(accountcode)=)”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [07450111111@from-internal:4] Set(“SIP/100-00000049”, “MOHCLASS=default”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [07450111111@from-internal:5] Set(“SIP/100-00000049”, “_NODEST=”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [07450111111@from-internal:6] Macro(“SIP/100-00000049”, “dialout-trunk,07450111111,off”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-dialout-trunk:1] Set(“SIP/100-00000049”, “DIAL_TRUNK=2”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/100-00000049”, “0?sub-pincheck,s,1()”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/100-00000049”, “0?disabletrunk,1”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-dialout-trunk:4] Set(“SIP/100-00000049”, “DIAL_NUMBER=07450111111”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-dialout-trunk:5] Set(“SIP/100-00000049”, “DIAL_TRUNK_OPTIONS=Ttr”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-dialout-trunk:6] Set(“SIP/100-00000049”, “OUTBOUND_GROUP=OUT_2”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/100-00000049”, “0?nomax”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-dialout-trunk:8] GotoIf(“SIP/100-00000049”, “0?chanfull”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/100-00000049”, “0?skipoutcid”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-dialout-trunk:10] Set(“SIP/100-00000049”, “DIAL_TRUNK_OPTIONS=Tt”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-dialout-trunk:11] Macro(“SIP/100-00000049”, “outbound-callerid,2”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/100-00000049”, “0?Set(CALLERPRES(name-pres)=)”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/100-00000049”, “0?Set(CALLERPRES(num-pres)=)”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-outbound-callerid:3] ExecIf(“SIP/100-00000049”, “0?Set(REALCALLERIDNUM=100)”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-outbound-callerid:4] GotoIf(“SIP/100-00000049”, “1?normcid”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Goto (macro-outbound-callerid,s,7)
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-outbound-callerid:7] Set(“SIP/100-00000049”, “USEROUTCID=”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-outbound-callerid:8] Set(“SIP/100-00000049”, “EMERGENCYCID=”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-outbound-callerid:9] Set(“SIP/100-00000049”, “TRUNKOUTCID=<01953202020>”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-outbound-callerid:10] GotoIf(“SIP/100-00000049”, “1?trunkcid”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Goto (macro-outbound-callerid,s,15)
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-outbound-callerid:15] ExecIf(“SIP/100-00000049”, “1?Set(CALLERID(all)=<01953202020>)”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-outbound-callerid:16] ExecIf(“SIP/100-00000049”, “0?Set(CALLERID(all)=)”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-outbound-callerid:17] ExecIf(“SIP/100-00000049”, “0?Set(CALLERID(all)=)”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-outbound-callerid:18] ExecIf(“SIP/100-00000049”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-outbound-callerid:19] ExecIf(“SIP/100-00000049”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-outbound-callerid:20] Set(“SIP/100-00000049”, “CDR(outbound_cnum)=01953202020”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-outbound-callerid:21] Set(“SIP/100-00000049”, “CDR(outbound_cnam)=”) in new stack
[2016-03-04 12:49:29] WARNING[1744] func_cdr.c: CDR requires a value (CDR(variable)=value)
)[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-dialout-trunk:12] GosubIf(“SIP/100-00000049”, “1?sub-flp-2,s,1()”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@sub-flp-2:1] ExecIf(“SIP/100-00000049”, “1?Return()”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-dialout-trunk:13] Set(“SIP/100-00000049”, “OUTNUM=07450111111”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-dialout-trunk:14] Set(“SIP/100-00000049”, “custom=SIP/aloha”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/100-00000049”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-dialout-trunk:16] ExecIf(“SIP/100-00000049”, “0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-dialout-trunk:17] Macro(“SIP/100-00000049”, “dialout-trunk-predial-hook,”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/100-00000049”, “”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/100-00000049”, “0?bypass,1”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-dialout-trunk:19] ExecIf(“SIP/100-00000049”, “1?Set(CONNECTEDLINE(num,i)=07450111111)”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-dialout-trunk:20] ExecIf(“SIP/100-00000049”, “1?Set(CONNECTEDLINE(name,i)=CID:01953202020)”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-dialout-trunk:21] ExecIf(“SIP/100-00000049”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)01953202020)”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-dialout-trunk:22] GotoIf(“SIP/100-00000049”, “0?customtrunk”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-dialout-trunk:23] Dial(“SIP/100-00000049”, “SIP/aloha/07450111111,300,Tt”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] netsock2.c: Using SIP RTP TOS bits 184
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] netsock2.c: Using SIP RTP CoS mark 5
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] app_dial.c: Called SIP/aloha/07450111111
[2016-03-04 12:49:29] VERBOSE[1868][C-00000041] chan_sip.c: Got SIP response 603 “Declined” back from 109.169.31.146:5060
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] app_dial.c: SIP/aloha-0000004a is busy
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] app_dial.c: Everyone is busy/congested at this time (1:1/0/0)
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-dialout-trunk:24] NoOp(“SIP/100-00000049”, “Dial failed for some reason with DIALSTATUS = BUSY and HANGUPCAUSE = 21”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-dialout-trunk:25] GotoIf(“SIP/100-00000049”, “0?continue,1:s-BUSY,1”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Goto (macro-dialout-trunk,s-BUSY,1)
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s-BUSY@macro-dialout-trunk:1] NoOp(“SIP/100-00000049”, “Dial failed due to trunk reporting BUSY - giving up”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s-BUSY@macro-dialout-trunk:2] PlayTones(“SIP/100-00000049”, “busy”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s-BUSY@macro-dialout-trunk:3] Busy(“SIP/100-00000049”, “20”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] app_macro.c: Spawn extension (macro-dialout-trunk, s-BUSY, 3) exited non-zero on ‘SIP/100-00000049’ in macro ‘dialout-trunk’
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Spawn extension (from-internal, 07450111111, 6) exited non-zero on ‘SIP/100-00000049’
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [h@from-internal:1] Macro(“SIP/100-00000049”, “hangupcall”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-hangupcall:1] GotoIf(“SIP/100-00000049”, “1?theend”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Goto (macro-hangupcall,s,3)
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-hangupcall:3] ExecIf(“SIP/100-00000049”, “0?Set(CDR(recordingfile)=)”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Executing [s@macro-hangupcall:4] Hangup(“SIP/100-00000049”, “”) in new stack
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] app_macro.c: Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/100-00000049’ in macro ‘hangupcall’
[2016-03-04 12:49:29] VERBOSE[9025][C-00000041] pbx.c: Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/100-00000049’

Not sure about the registry line, mine shows as registered too but still shows in peers with the latency measurement.

Could it be a codec issue? If a compatible codec cannot be negotiated, that’ll give the ‘all circuits are busy’ message.

I’d put a guess on codec, or the ‘fromuser’ line in the sip definition

isdn hangup cause 603 and sip cause 21, are essentially the same thing, for whatever reason, your carrier is refusing to accept that call as they can’t complete it, (yes you are connected to them).

You can only ask your provider why, presumably you dialed incorrectly as far as they are concerned , and apparently from reading your posted links, then the UK parochial dialing of 017nnnnnnn. might NOT work as I previously suggested , you apparently need to use the e164 447nnnnnn. .

Or perhaps they just don’t have a peering with that carrier. Nobody here can provide a solution apart from sending it through another VSP (which DOES work).

Please know that many VSPs are international and you need to use such dialing protocols