Dial patterns for freepbx as extension of existing phone station

Hi everyone,

I think I do have a very specific situation here.

Goal: I want to use freePBX to dial in to jitsi-meet/jigasi meetings using an IVR.

First things first: I do have a phone station, Mitel MXOne, release 7.4.something. On this I created an extension (200) for my jitsi conference. If I setup this extension in jitsi, everything works fine, except for the IVR, thats where freePBX comes in the plan.

I installed a freepx, set up the 200 as a pjsip trunk, created 2 extensions (88888 for jitsi, 88889 for testing purposes). After some tweaking incoming calls work, I call the 200 and freepbx routes me to the 88888 and I enter the default room in Jitsi (IVR is the next thing)
But I cannot get outgoing calls to work.

This is the idea:
internal calls have a 3 digit number
external calls should dial a leading zero before the number.
international calls are done this way: 0049 (for germany, for example) → they will be dialed 00049xxxxx but international calls should not be possible via jitsi (outgoing, incoming yes ← thats working)

I don’t get the dial patterns right
for internal calls it should be
ZXX (internal >=100 <=999)
If I call from 88889 to 172 (me) I get
“The number you have dialed is not in service, please check and try again”
what am I missing?

I even tried a . as dial pattern - in my understanding it should be: dial anything or am I wrong

 == Using SIP RTP Audio TOS bits 184
  == Using SIP RTP Audio TOS bits 184 in TCLASS field.
  == Using SIP RTP Audio CoS mark 5
    -- Executing [172@from-internal:1] Macro("PJSIP/88889-0000002d", "user-callerid,LIMIT,EXTERNAL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("PJSIP/88889-0000002d", "TOUCH_MONITOR=1655910838.45") in new stack
    -- Executing [s@macro-user-callerid:2] Set("PJSIP/88889-0000002d", "CHANCONTEXT=") in new stack
    -- Executing [s@macro-user-callerid:3] Set("PJSIP/88889-0000002d", "CHANCONTEXT=") in new stack
    -- Executing [s@macro-user-callerid:4] Set("PJSIP/88889-0000002d", "CHANEXTENCONTEXT=88889-0000002d") in new stack
    -- Executing [s@macro-user-callerid:5] Set("PJSIP/88889-0000002d", "CHANEXTEN=88889-0000002d") in new stack
    -- Executing [s@macro-user-callerid:6] Set("PJSIP/88889-0000002d", "CALLERID(number)=88889") in new stack
    -- Executing [s@macro-user-callerid:7] Set("PJSIP/88889-0000002d", "AMPUSER=88889") in new stack
    -- Executing [s@macro-user-callerid:8] Set("PJSIP/88889-0000002d", "HOTDESCKCHAN=88889-0000002d") in new stack
    -- Executing [s@macro-user-callerid:9] Set("PJSIP/88889-0000002d", "HOTDESKEXTEN=88889") in new stack
    -- Executing [s@macro-user-callerid:10] Set("PJSIP/88889-0000002d", "HOTDESKCALL=0") in new stack
    -- Executing [s@macro-user-callerid:11] ExecIf("PJSIP/88889-0000002d", "0?Set(HOTDESKCALL=1)") in new stack
    -- Executing [s@macro-user-callerid:12] ExecIf("PJSIP/88889-0000002d", "0?Set(CALLERID(name)=)") in new stack
    -- Executing [s@macro-user-callerid:13] GotoIf("PJSIP/88889-0000002d", "0?report") in new stack
    -- Executing [s@macro-user-callerid:14] ExecIf("PJSIP/88889-0000002d", "1?Set(REALCALLERIDNUM=88889)") in new stack
    -- Executing [s@macro-user-callerid:15] Set("PJSIP/88889-0000002d", "AMPUSER=88889") in new stack
    -- Executing [s@macro-user-callerid:16] GotoIf("PJSIP/88889-0000002d", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:17] Set("PJSIP/88889-0000002d", "AMPUSERCIDNAME=Jitsi Test") in new stack
    -- Executing [s@macro-user-callerid:18] ExecIf("PJSIP/88889-0000002d", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
    -- Executing [s@macro-user-callerid:19] GotoIf("PJSIP/88889-0000002d", "0?report") in new stack
    -- Executing [s@macro-user-callerid:20] Set("PJSIP/88889-0000002d", "AMPUSERCID=88889") in new stack
    -- Executing [s@macro-user-callerid:21] Set("PJSIP/88889-0000002d", "__DIAL_OPTIONS=HhTtr") in new stack
    -- Executing [s@macro-user-callerid:22] Set("PJSIP/88889-0000002d", "CALLERID(all)="Jitsi Test" <88889>") in new stack
    -- Executing [s@macro-user-callerid:23] ExecIf("PJSIP/88889-0000002d", "0?Set(CUSDIAL=)") in new stack
    -- Executing [s@macro-user-callerid:24] ExecIf("PJSIP/88889-0000002d", "0?Set(CALLERID(all)="Jitsi Test" <88889>)") in new stack
    -- Executing [s@macro-user-callerid:25] GotoIf("PJSIP/88889-0000002d", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:26] ExecIf("PJSIP/88889-0000002d", "1?Set(GROUP(concurrency_limit)=88889)") in new stack
    -- Executing [s@macro-user-callerid:27] NoOp("PJSIP/88889-0000002d", "Macro Depth is 1") in new stack
    -- Executing [s@macro-user-callerid:28] GotoIf("PJSIP/88889-0000002d", "1?report2:macroerror") in new stack
    -- Goto (macro-user-callerid,s,29)
    -- Executing [s@macro-user-callerid:29] GotoIf("PJSIP/88889-0000002d", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,48)
    -- Executing [s@macro-user-callerid:48] Set("PJSIP/88889-0000002d", "CALLERID(number)=88889") in new stack
    -- Executing [s@macro-user-callerid:49] Set("PJSIP/88889-0000002d", "CALLERID(name)=Jitsi Test") in new stack
    -- Executing [s@macro-user-callerid:50] GotoIf("PJSIP/88889-0000002d", "0?cnum") in new stack
    -- Executing [s@macro-user-callerid:51] Set("PJSIP/88889-0000002d", "CDR(cnam)=Jitsi Test") in new stack
    -- Executing [s@macro-user-callerid:52] Set("PJSIP/88889-0000002d", "CDR(cnum)=88889") in new stack
    -- Executing [s@macro-user-callerid:53] Set("PJSIP/88889-0000002d", "CHANNEL(language)=en") in new stack
    -- Executing [172@from-internal:2] Gosub("PJSIP/88889-0000002d", "sub-record-check,s,1(out,172,never)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("PJSIP/88889-0000002d", "0?initialized") in new stack
    -- Executing [s@sub-record-check:2] Set("PJSIP/88889-0000002d", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:3] Set("PJSIP/88889-0000002d", "NOW=1655910838") in new stack
    -- Executing [s@sub-record-check:4] Set("PJSIP/88889-0000002d", "__DAY=22") in new stack
    -- Executing [s@sub-record-check:5] Set("PJSIP/88889-0000002d", "__MONTH=06") in new stack
    -- Executing [s@sub-record-check:6] Set("PJSIP/88889-0000002d", "__YEAR=2022") in new stack
    -- Executing [s@sub-record-check:7] Set("PJSIP/88889-0000002d", "__TIMESTR=20220622-151358") in new stack
    -- Executing [s@sub-record-check:8] Set("PJSIP/88889-0000002d", "__FROMEXTEN=88889") in new stack
    -- Executing [s@sub-record-check:9] Set("PJSIP/88889-0000002d", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:10] NoOp("PJSIP/88889-0000002d", "Recordings initialized") in new stack
    -- Executing [s@sub-record-check:11] ExecIf("PJSIP/88889-0000002d", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [s@sub-record-check:12] Set("PJSIP/88889-0000002d", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("PJSIP/88889-0000002d", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [s@sub-record-check:14] GotoIf("PJSIP/88889-0000002d", "3?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [s@sub-record-check:17] GotoIf("PJSIP/88889-0000002d", "1?sub-record-check,out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [out@sub-record-check:1] NoOp("PJSIP/88889-0000002d", "Outbound Recording Check from 88889 to 172") in new stack
    -- Executing [out@sub-record-check:2] Set("PJSIP/88889-0000002d", "RECMODE=dontcare") in new stack
    -- Executing [out@sub-record-check:3] ExecIf("PJSIP/88889-0000002d", "1?Goto(routewins)") in new stack
    -- Goto (sub-record-check,out,7)
    -- Executing [out@sub-record-check:7] Gosub("PJSIP/88889-0000002d", "recordcheck,1(never,out,172)") in new stack
    -- Executing [recordcheck@sub-record-check:1] NoOp("PJSIP/88889-0000002d", "Starting recording check against never") in new stack
    -- Executing [recordcheck@sub-record-check:2] Goto("PJSIP/88889-0000002d", "never") in new stack
    -- Goto (sub-record-check,recordcheck,14)
    -- Executing [recordcheck@sub-record-check:14] Set("PJSIP/88889-0000002d", "__REC_POLICY_MODE=NEVER") in new stack
    -- Executing [recordcheck@sub-record-check:15] Goto("PJSIP/88889-0000002d", "stoprec") in new stack
    -- Goto (sub-record-check,recordcheck,24)
    -- Executing [recordcheck@sub-record-check:24] NoOp("PJSIP/88889-0000002d", "Stopping recording: out, 172") in new stack
    -- Executing [recordcheck@sub-record-check:25] Set("PJSIP/88889-0000002d", "__REC_STATUS=STOPPED") in new stack
    -- Executing [recordcheck@sub-record-check:26] System("PJSIP/88889-0000002d", "/var/lib/asterisk/bin/stoprecording.php "PJSIP/88889-0000002d"") in new stack
    -- Executing [recordcheck@sub-record-check:27] Return("PJSIP/88889-0000002d", "") in new stack
    -- Executing [out@sub-record-check:8] Return("PJSIP/88889-0000002d", "") in new stack
    -- Executing [172@from-internal:3] ExecIf("PJSIP/88889-0000002d", "0 ?Set(CDR(accountcode)=)") in new stack
    -- Executing [172@from-internal:4] Set("PJSIP/88889-0000002d", "_ROUTEID=2") in new stack
    -- Executing [172@from-internal:5] Set("PJSIP/88889-0000002d", "_ROUTENAME=Outbound 200") in new stack
    -- Executing [172@from-internal:6] ExecIf("PJSIP/88889-0000002d", "1?Set(TRUNKCIDOVERRIDE="Jitsi Meet" <+493841254200>)") in new stack
    -- Executing [172@from-internal:7] Set("PJSIP/88889-0000002d", "_CALLERIDNAMEINTERNAL=Jitsi Test") in new stack
    -- Executing [172@from-internal:8] Set("PJSIP/88889-0000002d", "_CALLERIDNUMINTERNAL=88889") in new stack
    -- Executing [172@from-internal:9] Set("PJSIP/88889-0000002d", "_EMAILNOTIFICATION=FALSE") in new stack
    -- Executing [172@from-internal:10] Set("PJSIP/88889-0000002d", "_NODEST=") in new stack
    -- Executing [172@from-internal:11] Macro("PJSIP/88889-0000002d", "dialout-trunk,2,172,,off") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("PJSIP/88889-0000002d", "DIAL_TRUNK=2") in new stack
    -- Executing [s@macro-dialout-trunk:2] ExecIf("PJSIP/88889-0000002d", "0?Set(DIAL_OPTIONS=Hhtr)") in new stack
    -- Executing [s@macro-dialout-trunk:3] GosubIf("PJSIP/88889-0000002d", "0?sub-pincheck,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:4] ExecIf("PJSIP/88889-0000002d", "0?Set(CALLERID(num)=88889)") in new stack
    -- Executing [s@macro-dialout-trunk:5] GotoIf("PJSIP/88889-0000002d", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("PJSIP/88889-0000002d", "DIAL_NUMBER=172") in new stack
    -- Executing [s@macro-dialout-trunk:7] Set("PJSIP/88889-0000002d", "DIAL_TRUNK_OPTIONS=HhTtr") in new stack
    -- Executing [s@macro-dialout-trunk:8] Set("PJSIP/88889-0000002d", "OUTBOUND_GROUP=OUT_2") in new stack
    -- Executing [s@macro-dialout-trunk:9] Set("PJSIP/88889-0000002d", "DIAL_TRUNK_OPTIONS=T") in new stack
    -- Executing [s@macro-dialout-trunk:10] GotoIf("PJSIP/88889-0000002d", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,12)
    -- Executing [s@macro-dialout-trunk:12] GotoIf("PJSIP/88889-0000002d", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:13] Macro("PJSIP/88889-0000002d", "outbound-callerid,2") in new stack
    -- Executing [s@macro-outbound-callerid:1] NoOp("PJSIP/88889-0000002d", "88889") in new stack
    -- Executing [s@macro-outbound-callerid:2] NoOp("PJSIP/88889-0000002d", "") in new stack
    -- Executing [s@macro-outbound-callerid:3] NoOp("PJSIP/88889-0000002d", "off") in new stack
    -- Executing [s@macro-outbound-callerid:4] ExecIf("PJSIP/88889-0000002d", "0?Set(CALLERPRES(name-pres)=)") in new stack
    -- Executing [s@macro-outbound-callerid:5] ExecIf("PJSIP/88889-0000002d", "0?Set(CALLERPRES(num-pres)=)") in new stack
    -- Executing [s@macro-outbound-callerid:6] Set("PJSIP/88889-0000002d", "HOTDESCKCHAN=88889-0000002d") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("PJSIP/88889-0000002d", "HOTDESKEXTEN=88889") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("PJSIP/88889-0000002d", "HOTDESKCALL=0") in new stack
    -- Executing [s@macro-outbound-callerid:9] ExecIf("PJSIP/88889-0000002d", "0?Set(HOTDESKCALL=1)") in new stack
    -- Executing [s@macro-outbound-callerid:10] ExecIf("PJSIP/88889-0000002d", "0?Set(CALLERID(name)=)") in new stack
    -- Executing [s@macro-outbound-callerid:11] Set("PJSIP/88889-0000002d", "ALLOWTHISROUTE=NO") in new stack
    -- Executing [s@macro-outbound-callerid:12] ExecIf("PJSIP/88889-0000002d", "0?Set(ALLOWTHISROUTE=YES)") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("PJSIP/88889-0000002d", "0?Hangup()") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("PJSIP/88889-0000002d", "0?Set(REALCALLERIDNUM=88889)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("PJSIP/88889-0000002d", "0?Set(AMPUSER=88889)") in new stack
    -- Executing [s@macro-outbound-callerid:16] GotoIf("PJSIP/88889-0000002d", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,20)
    -- Executing [s@macro-outbound-callerid:20] Set("PJSIP/88889-0000002d", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:21] Set("PJSIP/88889-0000002d", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:22] ExecIf("PJSIP/88889-0000002d", "0?Set(EMERGENCYCID=)") in new stack
    -- Executing [s@macro-outbound-callerid:23] Set("PJSIP/88889-0000002d", "TRUNKOUTCID="Jitsi Meet" <+493841254200>") in new stack
    -- Executing [s@macro-outbound-callerid:24] GotoIf("PJSIP/88889-0000002d", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,30)
    -- Executing [s@macro-outbound-callerid:30] ExecIf("PJSIP/88889-0000002d", "1?Set(CALLERID(all)="Jitsi Meet" <+493841254200>)") in new stack
    -- Executing [s@macro-outbound-callerid:31] ExecIf("PJSIP/88889-0000002d", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:32] ExecIf("PJSIP/88889-0000002d", "1?Set(CALLERID(all)=Jitsi Meet <+493841254200>)") in new stack
    -- Executing [s@macro-outbound-callerid:33] ExecIf("PJSIP/88889-0000002d", "0?Set(CALLERID(all)=88889)") in new stack
    -- Executing [s@macro-outbound-callerid:34] ExecIf("PJSIP/88889-0000002d", "0?Set(CALLERID(all)=88889)") in new stack
    -- Executing [s@macro-outbound-callerid:35] Set("PJSIP/88889-0000002d", "TIOHIDE=no") in new stack
    -- Executing [s@macro-outbound-callerid:36] ExecIf("PJSIP/88889-0000002d", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:37] ExecIf("PJSIP/88889-0000002d", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:38] ExecIf("PJSIP/88889-0000002d", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:39] ExecIf("PJSIP/88889-0000002d", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:40] Set("PJSIP/88889-0000002d", "CDR(outbound_cnum)=+493841254200") in new stack
    -- Executing [s@macro-outbound-callerid:41] Set("PJSIP/88889-0000002d", "CDR(outbound_cnam)=Jitsi Meet") in new stack
    -- Executing [s@macro-dialout-trunk:14] GosubIf("PJSIP/88889-0000002d", "0?sub-flp-2,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:15] Set("PJSIP/88889-0000002d", "OUTNUM=172") in new stack
    -- Executing [s@macro-dialout-trunk:16] Set("PJSIP/88889-0000002d", "custom=PJSIP") in new stack
    -- Executing [s@macro-dialout-trunk:17] ExecIf("PJSIP/88889-0000002d", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^)T)") in new stack
    -- Executing [s@macro-dialout-trunk:18] ExecIf("PJSIP/88889-0000002d", "0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))") in new stack
    -- Executing [s@macro-dialout-trunk:19] Macro("PJSIP/88889-0000002d", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("PJSIP/88889-0000002d", "") in new stack
    -- Executing [s@macro-dialout-trunk:20] GotoIf("PJSIP/88889-0000002d", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:21] ExecIf("PJSIP/88889-0000002d", "1?Set(CONNECTEDLINE(num,i)=172)") in new stack
    -- Executing [s@macro-dialout-trunk:22] ExecIf("PJSIP/88889-0000002d", "1?Set(CONNECTEDLINE(name,i)=CID:+493841254200)") in new stack
    -- Executing [s@macro-dialout-trunk:23] ExecIf("PJSIP/88889-0000002d", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)+493841254200)") in new stack
    -- Executing [s@macro-dialout-trunk:24] GotoIf("PJSIP/88889-0000002d", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:25] ExecIf("PJSIP/88889-0000002d", "0?Set(DIAL_TRUNK_OPTIONS=)") in new stack
    -- Executing [s@macro-dialout-trunk:26] Set("PJSIP/88889-0000002d", "HASH(__SIPHEADERS,Alert-Info)=unset") in new stack
    -- Executing [s@macro-dialout-trunk:27] Dial("PJSIP/88889-0000002d", "PJSIP/172@200,300,Tb(func-apply-sipheaders^s^1,(2))U(sub-send-obroute-email^172^172^2^1655910838^Jitsi Meet^+493841254200)") in new stack
    -- PJSIP/200-0000002e Internal Gosub(func-apply-sipheaders,s,1(2)) start
    -- Executing [s@func-apply-sipheaders:1] NoOp("PJSIP/200-0000002e", "Applying SIP Headers to channel PJSIP/200-0000002e") in new stack
    -- Executing [s@func-apply-sipheaders:2] Set("PJSIP/200-0000002e", "TECH=PJSIP") in new stack
    -- Executing [s@func-apply-sipheaders:3] Set("PJSIP/200-0000002e", "SIPHEADERKEYS=Alert-Info") in new stack
    -- Executing [s@func-apply-sipheaders:4] While("PJSIP/200-0000002e", "1") in new stack
    -- Executing [s@func-apply-sipheaders:5] Set("PJSIP/200-0000002e", "sipheader=unset") in new stack
    -- Executing [s@func-apply-sipheaders:6] ExecIf("PJSIP/200-0000002e", "0?SIPRemoveHeader(Alert-Info:)") in new stack
    -- Executing [s@func-apply-sipheaders:7] ExecIf("PJSIP/200-0000002e", "1?Set(PJSIP_HEADER(remove,Alert-Info)=)") in new stack
[2022-06-22 15:13:58] ERROR[8741]: res_pjsip_header_funcs.c:552 remove_header: No headers had been previously added to this session.
    -- Executing [s@func-apply-sipheaders:8] ExecIf("PJSIP/200-0000002e", "0?Set(sipheader=<http://127.0.0.1>;info=unset)") in new stack
    -- Executing [s@func-apply-sipheaders:9] ExecIf("PJSIP/200-0000002e", "0?Set(sipheader=<http://127.0.0.1>unset)") in new stack
    -- Executing [s@func-apply-sipheaders:10] ExecIf("PJSIP/200-0000002e", "0?SIPAddHeader(Alert-Info:unset)") in new stack
    -- Executing [s@func-apply-sipheaders:11] ExecIf("PJSIP/200-0000002e", "0?Set(PJSIP_HEADER(add,Alert-Info)=unset)") in new stack
    -- Executing [s@func-apply-sipheaders:12] EndWhile("PJSIP/200-0000002e", "") in new stack
    -- Executing [s@func-apply-sipheaders:4] While("PJSIP/200-0000002e", "0") in new stack
    -- Executing [s@func-apply-sipheaders:13] Return("PJSIP/200-0000002e", "") in new stack
  == Spawn extension (from-pstn, 172, 1) exited non-zero on 'PJSIP/200-0000002e'
    -- PJSIP/200-0000002e Internal Gosub(func-apply-sipheaders,s,1(2)) complete GOSUB_RETVAL=
    -- Called PJSIP/172@200
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@macro-dialout-trunk:28] NoOp("PJSIP/88889-0000002d", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 1") in new stack
    -- Executing [s@macro-dialout-trunk:29] GotoIf("PJSIP/88889-0000002d", "0?continue,1:s-CHANUNAVAIL,1") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("PJSIP/88889-0000002d", "RC=1") in new stack
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("PJSIP/88889-0000002d", "1,1") in new stack
    -- Goto (macro-dialout-trunk,1,1)
    -- Executing [1@macro-dialout-trunk:1] Goto("PJSIP/88889-0000002d", "s-INVALIDNMBR,1") in new stack
    -- Goto (macro-dialout-trunk,s-INVALIDNMBR,1)
    -- Executing [s-INVALIDNMBR@macro-dialout-trunk:1] NoOp("PJSIP/88889-0000002d", "Dial failed due to trunk reporting Address Incomplete - giving up") in new stack
    -- Executing [s-INVALIDNMBR@macro-dialout-trunk:2] Progress("PJSIP/88889-0000002d", "") in new stack
    -- Executing [s-INVALIDNMBR@macro-dialout-trunk:3] Playback("PJSIP/88889-0000002d", "ss-noservice,noanswer") in new stack
    -- <PJSIP/88889-0000002d> Playing 'ss-noservice.g722' (language 'en')
    -- Executing [s-INVALIDNMBR@macro-dialout-trunk:4] Busy("PJSIP/88889-0000002d", "20") in new stack
  == Spawn extension (macro-dialout-trunk, s-INVALIDNMBR, 4) exited non-zero on 'PJSIP/88889-0000002d' in macro 'dialout-trunk'
  == Spawn extension (from-internal, 172, 11) exited non-zero on 'PJSIP/88889-0000002d'
    -- Executing [h@from-internal:1] Macro("PJSIP/88889-0000002d", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("PJSIP/88889-0000002d", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s@macro-hangupcall:3] ExecIf("PJSIP/88889-0000002d", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [s@macro-hangupcall:4] Hangup("PJSIP/88889-0000002d", "") in new stack
  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'PJSIP/88889-0000002d' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on 'PJSIP/88889-0000002d'

If I call from 88889 to 00162xxxxxxx I get the same
“The number you have dialed is not in service, please check and try again”
The log is similar, just the target number is different

You should use “pjsip set logger on” to find out what is going over the wire, bit it looks, to me, as though the MXOne rejected 172.

Sure,

here’s the log:

freepbx*CLI> pjsip set logger on
PJSIP Logging enabled


<--- Received SIP request (1145 bytes) from UDP:172.23.1.44:5060 --->
INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 172.23.1.44:5060;branch=z9hG4bK80bc767c40f1ec118ec79e92bcede9aa;rport
From: "Jigasi" <sip:[email protected]>;tag=4222896617
To: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 1 INVITE
Contact: <sip:[email protected]:5060;gr=00E41258-30F1-EC11-8E0B-9E92BCEDE9AA>
Content-Type: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, INFO, MESSAGE, NOTIFY, OPTIONS, REFER, UPDATE, PRACK
Max-Forwards: 70
Supported: 100rel, replaces, from-change, gruu
User-Agent: phoner
P-Preferred-Identity: <sip:[email protected]>
Content-Length:   509

v=0
o=- 2671146002 1 IN IP4 172.23.1.44
s=phoner
c=IN IP4 172.23.1.44
t=0 0
m=audio 5062 RTP/AVP 8 0 2 3 97 9 18 111 112 113 114 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:2 G726-32/8000
a=rtpmap:3 GSM/8000
a=rtpmap:97 iLBC/8000
a=rtpmap:9 G722/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=yes
a=rtpmap:111 speex/16000
a=rtpmap:112 G726-16/8000
a=rtpmap:113 G726-24/8000
a=rtpmap:114 G726-40/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ssrc:4052726603
a=sendrecv

<--- Transmitting SIP response (542 bytes) to UDP:172.23.1.44:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 172.23.1.44:5060;rport=5060;received=172.23.1.44;branch=z9hG4bK80bc767c40f1ec118ec79e92bcede9aa
Call-ID: [email protected]
From: "Jigasi" <sip:[email protected]>;tag=4222896617
To: <sip:[email protected]>;tag=z9hG4bK80bc767c40f1ec118ec79e92bcede9aa
CSeq: 1 INVITE
WWW-Authenticate: Digest realm="asterisk",nonce="1655974781/0101d215bd41b91a702fe992bf888f0b",opaque="0858d6bb187cd1f3",algorithm=MD5,qop="auth"
Server: FPBX-16.0.21.3(16.26.1)
Content-Length:  0


<--- Received SIP request (340 bytes) from UDP:172.23.1.44:5060 --->
ACK sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 172.23.1.44:5060;branch=z9hG4bK80bc767c40f1ec118ec79e92bcede9aa;rport
From: "Jigasi" <sip:[email protected]>;tag=4222896617
To: <sip:[email protected]>;tag=z9hG4bK80bc767c40f1ec118ec79e92bcede9aa
Call-ID: [email protected]
CSeq: 1 ACK
Content-Length: 0


<--- Received SIP request (1436 bytes) from UDP:172.23.1.44:5060 --->
INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 172.23.1.44:5060;branch=z9hG4bK80bc767c40f1ec118ec99e92bcede9aa;rport
From: "Jigasi" <sip:[email protected]>;tag=4222896617
To: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 2 INVITE
Contact: <sip:[email protected]:5060;gr=00E41258-30F1-EC11-8E0B-9E92BCEDE9AA>
Authorization: Digest username="88889", realm="asterisk", nonce="1655974781/0101d215bd41b91a702fe992bf888f0b", uri="sip:[email protected]", response="091065458cd500061124b90ae39bad81", algorithm=MD5, cnonce="80bc767c40f1ec118ec89e92bcede9aa", opaque="0858d6bb187cd1f3", qop=auth, nc=00000001
Content-Type: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, INFO, MESSAGE, NOTIFY, OPTIONS, REFER, UPDATE, PRACK
Max-Forwards: 70
Supported: 100rel, replaces, from-change, gruu
User-Agent: phoner
P-Preferred-Identity: <sip:[email protected]>
Content-Length:   509

v=0
o=- 2671146002 1 IN IP4 172.23.1.44
s=phoner
c=IN IP4 172.23.1.44
t=0 0
m=audio 5062 RTP/AVP 8 0 2 3 97 9 18 111 112 113 114 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:2 G726-32/8000
a=rtpmap:3 GSM/8000
a=rtpmap:97 iLBC/8000
a=rtpmap:9 G722/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=yes
a=rtpmap:111 speex/16000
a=rtpmap:112 G726-16/8000
a=rtpmap:113 G726-24/8000
a=rtpmap:114 G726-40/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ssrc:4052726603
a=sendrecv

<--- Transmitting SIP response (346 bytes) to UDP:172.23.1.44:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 172.23.1.44:5060;rport=5060;received=172.23.1.44;branch=z9hG4bK80bc767c40f1ec118ec99e92bcede9aa
Call-ID: [email protected]
From: "Jigasi" <sip:[email protected]>;tag=4222896617
To: <sip:[email protected]>
CSeq: 2 INVITE
Server: FPBX-16.0.21.3(16.26.1)
Content-Length:  0


  == Using SIP RTP Audio TOS bits 184
  == Using SIP RTP Audio TOS bits 184 in TCLASS field.
  == Using SIP RTP Audio CoS mark 5
    -- Executing [172@from-internal:1] Macro("PJSIP/88889-0000001d", "user-callerid,LIMIT,EXTERNAL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("PJSIP/88889-0000001d", "TOUCH_MONITOR=1655974781.29") in new stack
    -- Executing [s@macro-user-callerid:2] Set("PJSIP/88889-0000001d", "CHANCONTEXT=") in new stack
    -- Executing [s@macro-user-callerid:3] Set("PJSIP/88889-0000001d", "CHANCONTEXT=") in new stack
    -- Executing [s@macro-user-callerid:4] Set("PJSIP/88889-0000001d", "CHANEXTENCONTEXT=88889-0000001d") in new stack
    -- Executing [s@macro-user-callerid:5] Set("PJSIP/88889-0000001d", "CHANEXTEN=88889-0000001d") in new stack
    -- Executing [s@macro-user-callerid:6] Set("PJSIP/88889-0000001d", "CALLERID(number)=88889") in new stack
    -- Executing [s@macro-user-callerid:7] Set("PJSIP/88889-0000001d", "AMPUSER=88889") in new stack
    -- Executing [s@macro-user-callerid:8] Set("PJSIP/88889-0000001d", "HOTDESCKCHAN=88889-0000001d") in new stack
    -- Executing [s@macro-user-callerid:9] Set("PJSIP/88889-0000001d", "HOTDESKEXTEN=88889") in new stack
    -- Executing [s@macro-user-callerid:10] Set("PJSIP/88889-0000001d", "HOTDESKCALL=0") in new stack
    -- Executing [s@macro-user-callerid:11] ExecIf("PJSIP/88889-0000001d", "0?Set(HOTDESKCALL=1)") in new stack
    -- Executing [s@macro-user-callerid:12] ExecIf("PJSIP/88889-0000001d", "0?Set(CALLERID(name)=)") in new stack
    -- Executing [s@macro-user-callerid:13] GotoIf("PJSIP/88889-0000001d", "0?report") in new stack
    -- Executing [s@macro-user-callerid:14] ExecIf("PJSIP/88889-0000001d", "1?Set(REALCALLERIDNUM=88889)") in new stack
    -- Executing [s@macro-user-callerid:15] Set("PJSIP/88889-0000001d", "AMPUSER=88889") in new stack
    -- Executing [s@macro-user-callerid:16] GotoIf("PJSIP/88889-0000001d", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:17] Set("PJSIP/88889-0000001d", "AMPUSERCIDNAME=Jitsi Test") in new stack
    -- Executing [s@macro-user-callerid:18] ExecIf("PJSIP/88889-0000001d", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
    -- Executing [s@macro-user-callerid:19] GotoIf("PJSIP/88889-0000001d", "0?report") in new stack
    -- Executing [s@macro-user-callerid:20] Set("PJSIP/88889-0000001d", "AMPUSERCID=88889") in new stack
    -- Executing [s@macro-user-callerid:21] Set("PJSIP/88889-0000001d", "__DIAL_OPTIONS=HhTtr") in new stack
    -- Executing [s@macro-user-callerid:22] Set("PJSIP/88889-0000001d", "CALLERID(all)="Jitsi Test" <88889>") in new stack
    -- Executing [s@macro-user-callerid:23] ExecIf("PJSIP/88889-0000001d", "0?Set(CUSDIAL=)") in new stack
    -- Executing [s@macro-user-callerid:24] ExecIf("PJSIP/88889-0000001d", "0?Set(CALLERID(all)="Jitsi Test" <88889>)") in new stack
    -- Executing [s@macro-user-callerid:25] GotoIf("PJSIP/88889-0000001d", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:26] ExecIf("PJSIP/88889-0000001d", "1?Set(GROUP(concurrency_limit)=88889)") in new stack
    -- Executing [s@macro-user-callerid:27] NoOp("PJSIP/88889-0000001d", "Macro Depth is 1") in new stack
    -- Executing [s@macro-user-callerid:28] GotoIf("PJSIP/88889-0000001d", "1?report2:macroerror") in new stack
    -- Goto (macro-user-callerid,s,29)
    -- Executing [s@macro-user-callerid:29] GotoIf("PJSIP/88889-0000001d", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,48)
    -- Executing [s@macro-user-callerid:48] Set("PJSIP/88889-0000001d", "CALLERID(number)=88889") in new stack
    -- Executing [s@macro-user-callerid:49] Set("PJSIP/88889-0000001d", "CALLERID(name)=Jitsi Test") in new stack
    -- Executing [s@macro-user-callerid:50] GotoIf("PJSIP/88889-0000001d", "0?cnum") in new stack
    -- Executing [s@macro-user-callerid:51] Set("PJSIP/88889-0000001d", "CDR(cnam)=Jitsi Test") in new stack
    -- Executing [s@macro-user-callerid:52] Set("PJSIP/88889-0000001d", "CDR(cnum)=88889") in new stack
    -- Executing [s@macro-user-callerid:53] Set("PJSIP/88889-0000001d", "CHANNEL(language)=en") in new stack
    -- Executing [172@from-internal:2] Gosub("PJSIP/88889-0000001d", "sub-record-check,s,1(out,172,never)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("PJSIP/88889-0000001d", "0?initialized") in new stack
    -- Executing [s@sub-record-check:2] Set("PJSIP/88889-0000001d", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:3] Set("PJSIP/88889-0000001d", "NOW=1655974781") in new stack
    -- Executing [s@sub-record-check:4] Set("PJSIP/88889-0000001d", "__DAY=23") in new stack
    -- Executing [s@sub-record-check:5] Set("PJSIP/88889-0000001d", "__MONTH=06") in new stack
    -- Executing [s@sub-record-check:6] Set("PJSIP/88889-0000001d", "__YEAR=2022") in new stack
    -- Executing [s@sub-record-check:7] Set("PJSIP/88889-0000001d", "__TIMESTR=20220623-085941") in new stack
    -- Executing [s@sub-record-check:8] Set("PJSIP/88889-0000001d", "__FROMEXTEN=88889") in new stack
    -- Executing [s@sub-record-check:9] Set("PJSIP/88889-0000001d", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:10] NoOp("PJSIP/88889-0000001d", "Recordings initialized") in new stack
    -- Executing [s@sub-record-check:11] ExecIf("PJSIP/88889-0000001d", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [s@sub-record-check:12] Set("PJSIP/88889-0000001d", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("PJSIP/88889-0000001d", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [s@sub-record-check:14] GotoIf("PJSIP/88889-0000001d", "3?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [s@sub-record-check:17] GotoIf("PJSIP/88889-0000001d", "1?sub-record-check,out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [out@sub-record-check:1] NoOp("PJSIP/88889-0000001d", "Outbound Recording Check from 88889 to 172") in new stack
    -- Executing [out@sub-record-check:2] Set("PJSIP/88889-0000001d", "RECMODE=dontcare") in new stack
    -- Executing [out@sub-record-check:3] ExecIf("PJSIP/88889-0000001d", "1?Goto(routewins)") in new stack
    -- Goto (sub-record-check,out,7)
    -- Executing [out@sub-record-check:7] Gosub("PJSIP/88889-0000001d", "recordcheck,1(never,out,172)") in new stack
    -- Executing [recordcheck@sub-record-check:1] NoOp("PJSIP/88889-0000001d", "Starting recording check against never") in new stack
    -- Executing [recordcheck@sub-record-check:2] Goto("PJSIP/88889-0000001d", "never") in new stack
    -- Goto (sub-record-check,recordcheck,14)
    -- Executing [recordcheck@sub-record-check:14] Set("PJSIP/88889-0000001d", "__REC_POLICY_MODE=NEVER") in new stack
    -- Executing [recordcheck@sub-record-check:15] Goto("PJSIP/88889-0000001d", "stoprec") in new stack
    -- Goto (sub-record-check,recordcheck,24)
    -- Executing [recordcheck@sub-record-check:24] NoOp("PJSIP/88889-0000001d", "Stopping recording: out, 172") in new stack
    -- Executing [recordcheck@sub-record-check:25] Set("PJSIP/88889-0000001d", "__REC_STATUS=STOPPED") in new stack
    -- Executing [recordcheck@sub-record-check:26] System("PJSIP/88889-0000001d", "/var/lib/asterisk/bin/stoprecording.php "PJSIP/88889-0000001d"") in new stack
    -- Executing [recordcheck@sub-record-check:27] Return("PJSIP/88889-0000001d", "") in new stack
    -- Executing [out@sub-record-check:8] Return("PJSIP/88889-0000001d", "") in new stack
    -- Executing [172@from-internal:3] ExecIf("PJSIP/88889-0000001d", "0 ?Set(CDR(accountcode)=)") in new stack
    -- Executing [172@from-internal:4] Set("PJSIP/88889-0000001d", "_ROUTEID=2") in new stack
    -- Executing [172@from-internal:5] Set("PJSIP/88889-0000001d", "_ROUTENAME=Outbound 200") in new stack
    -- Executing [172@from-internal:6] ExecIf("PJSIP/88889-0000001d", "1?Set(TRUNKCIDOVERRIDE="Jitsi Meet" <+493841254200>)") in new stack
    -- Executing [172@from-internal:7] Set("PJSIP/88889-0000001d", "_CALLERIDNAMEINTERNAL=Jitsi Test") in new stack
    -- Executing [172@from-internal:8] Set("PJSIP/88889-0000001d", "_CALLERIDNUMINTERNAL=88889") in new stack
    -- Executing [172@from-internal:9] Set("PJSIP/88889-0000001d", "_EMAILNOTIFICATION=FALSE") in new stack
    -- Executing [172@from-internal:10] Set("PJSIP/88889-0000001d", "_NODEST=") in new stack
    -- Executing [172@from-internal:11] Macro("PJSIP/88889-0000001d", "dialout-trunk,2,172,,off") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("PJSIP/88889-0000001d", "DIAL_TRUNK=2") in new stack
    -- Executing [s@macro-dialout-trunk:2] ExecIf("PJSIP/88889-0000001d", "0?Set(DIAL_OPTIONS=Hhtr)") in new stack
    -- Executing [s@macro-dialout-trunk:3] GosubIf("PJSIP/88889-0000001d", "0?sub-pincheck,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:4] ExecIf("PJSIP/88889-0000001d", "0?Set(CALLERID(num)=88889)") in new stack
    -- Executing [s@macro-dialout-trunk:5] GotoIf("PJSIP/88889-0000001d", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("PJSIP/88889-0000001d", "DIAL_NUMBER=172") in new stack
    -- Executing [s@macro-dialout-trunk:7] Set("PJSIP/88889-0000001d", "DIAL_TRUNK_OPTIONS=HhTtr") in new stack
    -- Executing [s@macro-dialout-trunk:8] Set("PJSIP/88889-0000001d", "OUTBOUND_GROUP=OUT_2") in new stack
    -- Executing [s@macro-dialout-trunk:9] Set("PJSIP/88889-0000001d", "DIAL_TRUNK_OPTIONS=T") in new stack
    -- Executing [s@macro-dialout-trunk:10] GotoIf("PJSIP/88889-0000001d", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,12)
    -- Executing [s@macro-dialout-trunk:12] GotoIf("PJSIP/88889-0000001d", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:13] Macro("PJSIP/88889-0000001d", "outbound-callerid,2") in new stack
    -- Executing [s@macro-outbound-callerid:1] NoOp("PJSIP/88889-0000001d", "88889") in new stack
    -- Executing [s@macro-outbound-callerid:2] NoOp("PJSIP/88889-0000001d", "") in new stack
    -- Executing [s@macro-outbound-callerid:3] NoOp("PJSIP/88889-0000001d", "off") in new stack
    -- Executing [s@macro-outbound-callerid:4] ExecIf("PJSIP/88889-0000001d", "0?Set(CALLERPRES(name-pres)=)") in new stack
    -- Executing [s@macro-outbound-callerid:5] ExecIf("PJSIP/88889-0000001d", "0?Set(CALLERPRES(num-pres)=)") in new stack
    -- Executing [s@macro-outbound-callerid:6] Set("PJSIP/88889-0000001d", "HOTDESCKCHAN=88889-0000001d") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("PJSIP/88889-0000001d", "HOTDESKEXTEN=88889") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("PJSIP/88889-0000001d", "HOTDESKCALL=0") in new stack
    -- Executing [s@macro-outbound-callerid:9] ExecIf("PJSIP/88889-0000001d", "0?Set(HOTDESKCALL=1)") in new stack
    -- Executing [s@macro-outbound-callerid:10] ExecIf("PJSIP/88889-0000001d", "0?Set(CALLERID(name)=)") in new stack
    -- Executing [s@macro-outbound-callerid:11] Set("PJSIP/88889-0000001d", "ALLOWTHISROUTE=NO") in new stack
    -- Executing [s@macro-outbound-callerid:12] ExecIf("PJSIP/88889-0000001d", "0?Set(ALLOWTHISROUTE=YES)") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("PJSIP/88889-0000001d", "0?Hangup()") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("PJSIP/88889-0000001d", "0?Set(REALCALLERIDNUM=88889)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("PJSIP/88889-0000001d", "0?Set(AMPUSER=88889)") in new stack
    -- Executing [s@macro-outbound-callerid:16] GotoIf("PJSIP/88889-0000001d", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,20)
    -- Executing [s@macro-outbound-callerid:20] Set("PJSIP/88889-0000001d", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:21] Set("PJSIP/88889-0000001d", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:22] ExecIf("PJSIP/88889-0000001d", "0?Set(EMERGENCYCID=)") in new stack
    -- Executing [s@macro-outbound-callerid:23] Set("PJSIP/88889-0000001d", "TRUNKOUTCID="Jitsi Meet" <+493841254200>") in new stack
    -- Executing [s@macro-outbound-callerid:24] GotoIf("PJSIP/88889-0000001d", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,30)
    -- Executing [s@macro-outbound-callerid:30] ExecIf("PJSIP/88889-0000001d", "1?Set(CALLERID(all)="Jitsi Meet" <+493841254200>)") in new stack
    -- Executing [s@macro-outbound-callerid:31] ExecIf("PJSIP/88889-0000001d", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:32] ExecIf("PJSIP/88889-0000001d", "1?Set(CALLERID(all)=Jitsi Meet <+493841254200>)") in new stack
    -- Executing [s@macro-outbound-callerid:33] ExecIf("PJSIP/88889-0000001d", "0?Set(CALLERID(all)=88889)") in new stack
    -- Executing [s@macro-outbound-callerid:34] ExecIf("PJSIP/88889-0000001d", "0?Set(CALLERID(all)=88889)") in new stack
    -- Executing [s@macro-outbound-callerid:35] Set("PJSIP/88889-0000001d", "TIOHIDE=no") in new stack
    -- Executing [s@macro-outbound-callerid:36] ExecIf("PJSIP/88889-0000001d", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:37] ExecIf("PJSIP/88889-0000001d", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:38] ExecIf("PJSIP/88889-0000001d", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:39] ExecIf("PJSIP/88889-0000001d", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:40] Set("PJSIP/88889-0000001d", "CDR(outbound_cnum)=+493841254200") in new stack
    -- Executing [s@macro-outbound-callerid:41] Set("PJSIP/88889-0000001d", "CDR(outbound_cnam)=Jitsi Meet") in new stack
    -- Executing [s@macro-dialout-trunk:14] GosubIf("PJSIP/88889-0000001d", "0?sub-flp-2,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:15] Set("PJSIP/88889-0000001d", "OUTNUM=172") in new stack
    -- Executing [s@macro-dialout-trunk:16] Set("PJSIP/88889-0000001d", "custom=PJSIP") in new stack
    -- Executing [s@macro-dialout-trunk:17] ExecIf("PJSIP/88889-0000001d", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^)T)") in new stack
    -- Executing [s@macro-dialout-trunk:18] ExecIf("PJSIP/88889-0000001d", "0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))") in new stack
    -- Executing [s@macro-dialout-trunk:19] Macro("PJSIP/88889-0000001d", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("PJSIP/88889-0000001d", "") in new stack
    -- Executing [s@macro-dialout-trunk:20] GotoIf("PJSIP/88889-0000001d", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:21] ExecIf("PJSIP/88889-0000001d", "1?Set(CONNECTEDLINE(num,i)=172)") in new stack
    -- Executing [s@macro-dialout-trunk:22] ExecIf("PJSIP/88889-0000001d", "1?Set(CONNECTEDLINE(name,i)=CID:+493841254200)") in new stack
    -- Executing [s@macro-dialout-trunk:23] ExecIf("PJSIP/88889-0000001d", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)+493841254200)") in new stack
    -- Executing [s@macro-dialout-trunk:24] GotoIf("PJSIP/88889-0000001d", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:25] ExecIf("PJSIP/88889-0000001d", "0?Set(DIAL_TRUNK_OPTIONS=)") in new stack
    -- Executing [s@macro-dialout-trunk:26] Set("PJSIP/88889-0000001d", "HASH(__SIPHEADERS,Alert-Info)=unset") in new stack
    -- Executing [s@macro-dialout-trunk:27] Dial("PJSIP/88889-0000001d", "PJSIP/172@200,300,Tb(func-apply-sipheaders^s^1,(2))U(sub-send-obroute-email^172^172^2^1655974781^Jitsi Meet^+493841254200)") in new stack
    -- PJSIP/200-0000001e Internal Gosub(func-apply-sipheaders,s,1(2)) start
    -- Executing [s@func-apply-sipheaders:1] NoOp("PJSIP/200-0000001e", "Applying SIP Headers to channel PJSIP/200-0000001e") in new stack
    -- Executing [s@func-apply-sipheaders:2] Set("PJSIP/200-0000001e", "TECH=PJSIP") in new stack
    -- Executing [s@func-apply-sipheaders:3] Set("PJSIP/200-0000001e", "SIPHEADERKEYS=Alert-Info") in new stack
    -- Executing [s@func-apply-sipheaders:4] While("PJSIP/200-0000001e", "1") in new stack
    -- Executing [s@func-apply-sipheaders:5] Set("PJSIP/200-0000001e", "sipheader=unset") in new stack
    -- Executing [s@func-apply-sipheaders:6] ExecIf("PJSIP/200-0000001e", "0?SIPRemoveHeader(Alert-Info:)") in new stack
    -- Executing [s@func-apply-sipheaders:7] ExecIf("PJSIP/200-0000001e", "1?Set(PJSIP_HEADER(remove,Alert-Info)=)") in new stack
[2022-06-23 08:59:41] ERROR[6554]: res_pjsip_header_funcs.c:552 remove_header: No headers had been previously added to this session.
    -- Executing [s@func-apply-sipheaders:8] ExecIf("PJSIP/200-0000001e", "0?Set(sipheader=<http://127.0.0.1>;info=unset)") in new stack
    -- Executing [s@func-apply-sipheaders:9] ExecIf("PJSIP/200-0000001e", "0?Set(sipheader=<http://127.0.0.1>unset)") in new stack
    -- Executing [s@func-apply-sipheaders:10] ExecIf("PJSIP/200-0000001e", "0?SIPAddHeader(Alert-Info:unset)") in new stack
    -- Executing [s@func-apply-sipheaders:11] ExecIf("PJSIP/200-0000001e", "0?Set(PJSIP_HEADER(add,Alert-Info)=unset)") in new stack
    -- Executing [s@func-apply-sipheaders:12] EndWhile("PJSIP/200-0000001e", "") in new stack
    -- Executing [s@func-apply-sipheaders:4] While("PJSIP/200-0000001e", "0") in new stack
    -- Executing [s@func-apply-sipheaders:13] Return("PJSIP/200-0000001e", "") in new stack
  == Spawn extension (from-pstn, 172, 1) exited non-zero on 'PJSIP/200-0000001e'
    -- PJSIP/200-0000001e Internal Gosub(func-apply-sipheaders,s,1(2)) complete GOSUB_RETVAL=
    -- Called PJSIP/172@200
<--- Transmitting SIP request (1016 bytes) to UDP:172.23.1.233:5060 --->
INVITE sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 172.23.1.58:5060;rport;branch=z9hG4bKPj0560c106-39a4-4d84-b82c-4bf63917b294
From: "Jitsi Meet" <sip:[email protected]>;tag=0d54bd9a-3de6-412d-886b-105df4cd6e12
To: <sip:[email protected]>
Contact: <sip:[email protected]:5060>
Call-ID: b885768f-e613-4419-ab02-0ab7763ef844
CSeq: 12603 INVITE
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub, histinfo
Session-Expires: 1800
Min-SE: 90
Max-Forwards: 70
User-Agent: FPBX-16.0.21.3(16.26.1)
Content-Type: application/sdp
Content-Length:   335

v=0
o=- 234212216 234212216 IN IP4 172.23.1.58
s=Asterisk
c=IN IP4 172.23.1.58
t=0 0
m=audio 18150 RTP/AVP 0 8 3 111 9 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:111 G726-32/8000
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv

<--- Received SIP response (385 bytes) from UDP:172.23.1.233:5060 --->
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 172.23.1.58:5060;rport=5060;branch=z9hG4bKPj0560c106-39a4-4d84-b82c-4bf63917b294
To: <sip:[email protected]>;tag=ec701d25
From: "Jitsi Meet" <sip:[email protected]>;tag=0d54bd9a-3de6-412d-886b-105df4cd6e12
Call-ID: b885768f-e613-4419-ab02-0ab7763ef844
CSeq: 12603 INVITE
User-Agent: Aastra MX-ONE SN/17.4.0.1.5
Content-Length: 0


<--- Transmitting SIP request (408 bytes) to UDP:172.23.1.233:5060 --->
ACK sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 172.23.1.58:5060;rport;branch=z9hG4bKPj0560c106-39a4-4d84-b82c-4bf63917b294
From: "Jitsi Meet" <sip:[email protected]>;tag=0d54bd9a-3de6-412d-886b-105df4cd6e12
To: <sip:[email protected]>;tag=ec701d25
Call-ID: b885768f-e613-4419-ab02-0ab7763ef844
CSeq: 12603 ACK
Max-Forwards: 70
User-Agent: FPBX-16.0.21.3(16.26.1)
Content-Length:  0


  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@macro-dialout-trunk:28] NoOp("PJSIP/88889-0000001d", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 1") in new stack
    -- Executing [s@macro-dialout-trunk:29] GotoIf("PJSIP/88889-0000001d", "0?continue,1:s-CHANUNAVAIL,1") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("PJSIP/88889-0000001d", "RC=1") in new stack
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("PJSIP/88889-0000001d", "1,1") in new stack
    -- Goto (macro-dialout-trunk,1,1)
    -- Executing [1@macro-dialout-trunk:1] Goto("PJSIP/88889-0000001d", "s-INVALIDNMBR,1") in new stack
    -- Goto (macro-dialout-trunk,s-INVALIDNMBR,1)
    -- Executing [s-INVALIDNMBR@macro-dialout-trunk:1] NoOp("PJSIP/88889-0000001d", "Dial failed due to trunk reporting Address Incomplete - giving up") in new stack
    -- Executing [s-INVALIDNMBR@macro-dialout-trunk:2] Progress("PJSIP/88889-0000001d", "") in new stack
    -- Executing [s-INVALIDNMBR@macro-dialout-trunk:3] Playback("PJSIP/88889-0000001d", "ss-noservice,noanswer") in new stack
    -- <PJSIP/88889-0000001d> Playing 'ss-noservice.g722' (language 'en')
<--- Transmitting SIP response (963 bytes) to UDP:172.23.1.44:5060 --->
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 172.23.1.44:5060;rport=5060;received=172.23.1.44;branch=z9hG4bK80bc767c40f1ec118ec99e92bcede9aa
Call-ID: [email protected]
From: "Jigasi" <sip:[email protected]>;tag=4222896617
To: <sip:[email protected]>;tag=be700876-d6d8-40ec-b782-1a2348c53886
CSeq: 2 INVITE
Server: FPBX-16.0.21.3(16.26.1)
Contact: <sip:172.23.1.58:5060>
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
P-Asserted-Identity: "CID:+493841254200" <sip:[email protected]>
Content-Type: application/sdp
Content-Length:   324

v=0
o=- 2671146002 3 IN IP4 172.23.1.58
s=Asterisk
c=IN IP4 172.23.1.58
t=0 0
m=audio 18136 RTP/AVP 0 8 3 2 9 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:2 G726-32/8000
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv

<--- Received SIP request (620 bytes) from UDP:172.16.16.25:5060 --->
OPTIONS sip:172.23.1.58 SIP/2.0
Call-ID: 26f89d9347349b43480b2a734527defb@0:0:0:0:0:0:0:0
CSeq: 88 OPTIONS
From: "88888" <sip:[email protected]>;tag=9ff55ab3
To: "88888" <sip:[email protected]>
Via: SIP/2.0/UDP 172.16.16.25:5060;branch=z9hG4bK-373335-1ae4b0e471fca99d121c000646823219
Max-Forwards: 70
Contact: "88888" <sip:[email protected]:5060;transport=udp;registering_acc=172_23_1_58>
User-Agent: Jigasi1.1.216-ga2399b9Linux
Allow: INFO,UPDATE,OPTIONS,MESSAGE,BYE,REFER,SUBSCRIBE,ACK,CANCEL,PUBLISH,NOTIFY,INVITE
Allow-Events: refer,conference,remote-control,presence,presence.winfo
Content-Length: 0


<--- Transmitting SIP response (569 bytes) to UDP:172.16.16.25:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 172.16.16.25:5060;rport=5060;received=172.16.16.25;branch=z9hG4bK-373335-1ae4b0e471fca99d121c000646823219
Call-ID: 26f89d9347349b43480b2a734527defb@0:0:0:0:0:0:0:0
From: "88888" <sip:[email protected]>;tag=9ff55ab3
To: "88888" <sip:[email protected]>;tag=z9hG4bK-373335-1ae4b0e471fca99d121c000646823219
CSeq: 88 OPTIONS
WWW-Authenticate: Digest realm="asterisk",nonce="1655974785/d0c378a21a17f6be9206de97609c5fb9",opaque="26c50ac45c659d9a",algorithm=MD5,qop="auth"
Server: FPBX-16.0.21.3(16.26.1)
Content-Length:  0


    -- Executing [s-INVALIDNMBR@macro-dialout-trunk:4] Busy("PJSIP/88889-0000001d", "20") in new stack
<--- Transmitting SIP response (589 bytes) to UDP:172.23.1.44:5060 --->
SIP/2.0 486 Busy Here
Via: SIP/2.0/UDP 172.23.1.44:5060;rport=5060;received=172.23.1.44;branch=z9hG4bK80bc767c40f1ec118ec99e92bcede9aa
Call-ID: [email protected]
From: "Jigasi" <sip:[email protected]>;tag=4222896617
To: <sip:[email protected]>;tag=be700876-d6d8-40ec-b782-1a2348c53886
CSeq: 2 INVITE
Server: FPBX-16.0.21.3(16.26.1)
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Reason: Q.850;cause=17
P-Asserted-Identity: "CID:+493841254200" <sip:[email protected]>
Content-Length:  0


<--- Received SIP request (628 bytes) from UDP:172.23.1.44:5060 --->
ACK sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 172.23.1.44:5060;branch=z9hG4bK80bc767c40f1ec118ec99e92bcede9aa;rport
From: "Jigasi" <sip:[email protected]>;tag=4222896617
To: <sip:[email protected]>;tag=be700876-d6d8-40ec-b782-1a2348c53886
Call-ID: [email protected]
CSeq: 2 ACK
Authorization: Digest username="88889", realm="asterisk", nonce="1655974781/0101d215bd41b91a702fe992bf888f0b", uri="sip:[email protected]", response="091065458cd500061124b90ae39bad81", algorithm=MD5, cnonce="80bc767c40f1ec118ec89e92bcede9aa", opaque="0858d6bb187cd1f3", qop=auth, nc=00000001
Content-Length: 0


  == Spawn extension (macro-dialout-trunk, s-INVALIDNMBR, 4) exited non-zero on 'PJSIP/88889-0000001d' in macro 'dialout-trunk'
  == Spawn extension (from-internal, 172, 11) exited non-zero on 'PJSIP/88889-0000001d'
    -- Executing [h@from-internal:1] Macro("PJSIP/88889-0000001d", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("PJSIP/88889-0000001d", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s@macro-hangupcall:3] ExecIf("PJSIP/88889-0000001d", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [s@macro-hangupcall:4] Hangup("PJSIP/88889-0000001d", "") in new stack
  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'PJSIP/88889-0000001d' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on 'PJSIP/88889-0000001d'
<--- Transmitting SIP request (487 bytes) to UDP:172.16.16.25:5060 --->
OPTIONS sip:[email protected]:5060;registering_acc=172_23_1_58 SIP/2.0
Via: SIP/2.0/UDP 145.253.95.226:5060;rport;branch=z9hG4bKPj4588f1a9-778e-49c4-be58-451ee1ccb261
From: <sip:[email protected]>;tag=5a9ce59e-5027-46ac-9e13-912511f42c5c
To: <sip:[email protected];registering_acc=172_23_1_58>
Contact: <sip:[email protected]:5060>
Call-ID: dc93db4a-b797-4def-8ccb-f9bffbb52ac1
CSeq: 16021 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-16.0.21.3(16.26.1)
Content-Length:  0


<--- Received SIP response (662 bytes) from UDP:172.16.16.25:5060 --->
SIP/2.0 200 OK
CSeq: 16021 OPTIONS
Call-ID: dc93db4a-b797-4def-8ccb-f9bffbb52ac1
From: <sip:[email protected]>;tag=5a9ce59e-5027-46ac-9e13-912511f42c5c
To: <sip:[email protected];registering_acc=172_23_1_58>;tag=66f13bb9
Via: SIP/2.0/UDP 145.253.95.226:5060;rport=5060;branch=z9hG4bKPj4588f1a9-778e-49c4-be58-451ee1ccb261;received=172.23.1.58
Contact: "88888" <sip:[email protected]:5060;transport=udp;registering_acc=172_23_1_58>
User-Agent: Jigasi1.1.216-ga2399b9Linux
Allow: INFO,UPDATE,OPTIONS,MESSAGE,BYE,REFER,SUBSCRIBE,ACK,CANCEL,PUBLISH,NOTIFY,INVITE
Allow-Events: refer,conference,remote-control,presence,presence.winfo
Content-Length: 0

Info: no NAT, both servers (MXOne and freePBX) are in the same subnet, no routing, no nothing
Just to rule that out

The Aastra is definitely rejecting the number as unknown.

However, it is also not challenging for a password, so maybe the from user isn’t in the expected format, rather than the destination number being wrong, although I’d really expect 403 or 603, in that case.

Are you sure? If I connect via softphone as extension 200 in the Aastra I can do calls and receive calls without any problem

You are sending to 172. The reply is not found.

As I said it could be a weird response to an unexpected From user field. It may need from user to be forced to 200.

Hm, ok , I will check this with our Aastra maintainer and get back to this topic.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.