I see…
But why does it add the +45 prefix to my dialed number (44445555) in the first line:
– Executing [44445555@from-internal:1] Dial(“SIP/22334455-0844b968”, “Zap/g2/+4544445555”) in new stack
…while when further down, the number is set back to what I originally dialed:
– Executing [s@macro-dialout-trunk:19] Dial(“SIP/22334455-0844b968”, “SIP/MYTRUNK/44445555|300|”) in new stack
My guess is that if I were able to replace the number in when it actually seems to tial MYTRUNK, then the call would work, no?
This is what it looks like when I do a successful call from Eyebeam (where I’m able to add the +45 manually):
– Executing [+4544445555@from-internal:1] Macro(“SIP/22334455-09ca9e18”, “user-callerid|SKIPTTL|”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/22334455-09ca9e18”, “AMPUSER=22334455”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“SIP/22334455-09ca9e18”, “0?report”) in new stack
– Executing [s@macro-user-callerid:3] ExecIf(“SIP/22334455-09ca9e18”, “1|Set|REALCALLERIDNUM=22334455”) in new stack
– Executing [s@macro-user-callerid:4] Set(“SIP/22334455-09ca9e18”, “AMPUSER=22334455”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/22334455-09ca9e18”, “AMPUSERCIDNAME=eyeBeam”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/22334455-09ca9e18”, “0?report”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/22334455-09ca9e18”, “AMPUSERCID=22334455”) in new stack
– Executing [s@macro-user-callerid:8] Set(“SIP/22334455-09ca9e18”, “CALLERID(all)=“eyeBeam” <22334455>”) in new stack
– Executing [s@macro-user-callerid:9] ExecIf(“SIP/22334455-09ca9e18”, “0|Set|CHANNEL(language)=”) in new stack
– Executing [s@macro-user-callerid:10] GotoIf(“SIP/22334455-09ca9e18”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,19)
– Executing [s@macro-user-callerid:19] NoOp(“SIP/22334455-09ca9e18”, “Using CallerID “eyeBeam” <22334455>”) in new stack
– Executing [+4544445555@from-internal:2] SIPAddHeader(“SIP/22334455-09ca9e18”, “P-Asserted-Identity: “MyIdentity” sip:t4544445500@mytrunk.dk”) in new stack
– Executing [+4544445555@from-internal:3] Macro(“SIP/22334455-09ca9e18”, “record-enable|22334455|OUT|”) in new stack
– Executing [s@macro-record-enable:1] GotoIf(“SIP/22334455-09ca9e18”, “1?check”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [s@macro-record-enable:4] AGI(“SIP/22334455-09ca9e18”, “recordingcheck|20101103-073311|1288765991.10”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20101103-073311|1288765991.10: Outbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing [s@macro-record-enable:5] MacroExit(“SIP/22334455-09ca9e18”, “”) in new stack
– Executing [+4544445555@from-internal:4] Macro(“SIP/22334455-09ca9e18”, “dialout-trunk|2|+4544445555||”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/22334455-09ca9e18”, “DIAL_TRUNK=2”) in new stack
– Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/22334455-09ca9e18”, “0?sub-pincheck|s|1”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/22334455-09ca9e18”, “0?disabletrunk|1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“SIP/22334455-09ca9e18”, “DIAL_NUMBER=+4544445555”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“SIP/22334455-09ca9e18”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/22334455-09ca9e18”, “OUTBOUND_GROUP=OUT_2”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/22334455-09ca9e18”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/22334455-09ca9e18”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“SIP/22334455-09ca9e18”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“SIP/22334455-09ca9e18”, “outbound-callerid|2”) in new stack
– Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/22334455-09ca9e18”, “0|SetCallerPres|”) in new stack
– Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/22334455-09ca9e18”, “0|Set|REALCALLERIDNUM=22334455”) in new stack
– Executing [s@macro-outbound-callerid:3] GotoIf(“SIP/22334455-09ca9e18”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [s@macro-outbound-callerid:6] Set(“SIP/22334455-09ca9e18”, “USEROUTCID=“EyeBeam” <+4522334455>”) in new stack
– Executing [s@macro-outbound-callerid:7] Set(“SIP/22334455-09ca9e18”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“SIP/22334455-09ca9e18”, “TRUNKOUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:9] GotoIf(“SIP/22334455-09ca9e18”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [s@macro-outbound-callerid:12] ExecIf(“SIP/22334455-09ca9e18”, “0|Set|CALLERID(all)=”) in new stack
– Executing [s@macro-outbound-callerid:13] ExecIf(“SIP/22334455-09ca9e18”, “1|Set|CALLERID(all)=EyeBeam <+4522334455>”) in new stack
– Executing [s@macro-outbound-callerid:14] ExecIf(“SIP/22334455-09ca9e18”, “0|SetCallerPres|prohib_passed_screen”) in new stack
– Executing [s@macro-dialout-trunk:12] ExecIf(“SIP/22334455-09ca9e18”, “0|AGI|fixlocalprefix”) in new stack
– Executing [s@macro-dialout-trunk:13] Set(“SIP/22334455-09ca9e18”, “OUTNUM=+4544445555”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/22334455-09ca9e18”, “custom=SIP/MYTRUNK”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/22334455-09ca9e18”, “0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)”) in new stack
– Executing [s@macro-dialout-trunk:16] Macro(“SIP/22334455-09ca9e18”, “dialout-trunk-predial-hook|”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/22334455-09ca9e18”, “”) in new stack
– Executing [s@macro-dialout-trunk:17] GotoIf(“SIP/22334455-09ca9e18”, “0?bypass|1”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/22334455-09ca9e18”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:19] Dial(“SIP/22334455-09ca9e18”, “SIP/MYTRUNK/+4544445555|300|”) in new stack
– Called MYTRUNK/+4544445555
– SIP/MYTRUNK-09caf320 is making progress passing it to SIP/22334455-09ca9e18
– SIP/MYTRUNK-09caf320 is making progress passing it to SIP/22334455-09ca9e18
– SIP/MYTRUNK-09caf320 is making progress passing it to SIP/22334455-09ca9e18
– SIP/MYTRUNK-09caf320 answered SIP/22334455-09ca9e18
I’ve put the exten => _NXXXXXXX,n,Dial(${TRUNK}/+45${EXTEN}) in extensions_custom.conf in the context I’m loading in my trunk. I’ve also tried adding it before and after the context with the same results.
Any help is greatly appreciated!