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