Outbound configuration fails after add it second DID

Hi All,

I was trying to setup a second DID number into my freepbx with the same trunk. And it seems when I add the second DID, I missed the outbound calls. The call sends, but when the client is picking up the call is automatically hangsup… I am using Telnyx as SIP Trunking provider and the outgoing calls dial patterns I just gave a prefix condition, to call to external numers. Is anyone can advice me ? Maybe I miss a small detail in my current config. Thanks in advanced

Do you mean you added a second trunk to the same provider point of presence?

DIDs are not used in outbound calls.

Hi David, Thanks for reaching out. I am a bit newby on Freepbx, and try to setup 2 numbers with 2 trunks and same connection as DDNS. So, when I tried that configuration. I’ve couldn’t get the actual ringing automatically was going to my voicemail. So, now I was trying to connect 2 different numbers into the same trunk and I guess that as you already mentioned is not realiable is it?

I’m still not clear what you are doing, but I suspect you have two trunks to the same provider, and they are unable to tell them apart. If so, you need to find out how the provider identifies which accunt is making a call.

Hi David,

I can create any SIP Trunking with my provider. The issue is when I create the SIP Trunkings at FreePBX, both Trunkings I set up in the calls don’t deliver to the extensions. It reaches the extension on pjsip but doesn’t proceed with the call, automatically hangsup

logs will be needed to preclude any guessing needed by your peers

[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] res_agi.c: <PJSIP/1000-0000001a>AGI Script agi://127.0.0.1/allowlist-autoadd.agi completed, returning 0

103290[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:21] Macro(“PJSIP/1000-0000001a”, “dialout-trunk-predial-hook,”) in new stack

103291[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:1] MacroExit(“PJSIP/1000-0000001a”, “”) in new stack

103292[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:22] GotoIf(“PJSIP/1000-0000001a”, “0?skipcrm”) in new stack

103293[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:23] Set(“PJSIP/1000-0000001a”, “__CRM_DIRECTION=OUTBOUND”) in new stack

103294[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:24] Set(“PJSIP/1000-0000001a”, “__CRM_DESTINATION=07460710877”) in new stack

103295[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:25] Set(“PJSIP/1000-0000001a”, “__CRM_SOURCE=1000”) in new stack

103296[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:26] AGI(“PJSIP/1000-0000001a”, “agi://127.0.0.1/sangomacrm.agi”) in new stack

103297[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] res_agi.c: <PJSIP/1000-0000001a>AGI Script agi://127.0.0.1/sangomacrm.agi completed, returning 0

103298[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:27] Set(“PJSIP/1000-0000001a”, “CHANNEL(hangup_handler_push)=crm-hangup,s,1”) in new stack

103299[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:28] NoOp(“PJSIP/1000-0000001a”, “CRM Finished”) in new stack

103300[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:29] GotoIf(“PJSIP/1000-0000001a”, “0?bypass,1”) in new stack

103301[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:30] ExecIf(“PJSIP/1000-0000001a”, “1?Set(CONNECTEDLINE(num,i)=07460710877)”) in new stack

103302[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:31] ExecIf(“PJSIP/1000-0000001a”, “1?Set(CONNECTEDLINE(name,i)=CID:442045202452)”) in new stack

103303[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:32] ExecIf(“PJSIP/1000-0000001a”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)442045202452)”) in new stack

103304[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:33] GotoIf(“PJSIP/1000-0000001a”, “0?customtrunk”) in new stack

103305[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:34] ExecIf(“PJSIP/1000-0000001a”, “0?Set(DIAL_TRUNK_OPTIONS=)”) in new stack

103306[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:35] Set(“PJSIP/1000-0000001a”, “HASH(__SIPHEADERS,Alert-Info)=unset”) in new stack

103307[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:36] Dial(“PJSIP/1000-0000001a”, “PJSIP/[email protected],300,Tb(func-apply-sipheaders^s^1,(1))U(sub-send-obroute-email^07460710877^907460710877^1^1674503546^KOBU SMART LTD^442045202452)”) in new stack

103308[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] app_stack.c: PJSIP/kobu-smart-local-0000001b Internal Gosub(func-apply-sipheaders,s,1(1)) start

103309[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:1] ExecIf(“PJSIP/kobu-smart-local-0000001b”, “0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack

103310[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:2] NoOp(“PJSIP/kobu-smart-local-0000001b”, “Applying SIP Headers to channel PJSIP/kobu-smart-local-0000001b”) in new stack

103311[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:3] Set(“PJSIP/kobu-smart-local-0000001b”, “TECH=PJSIP”) in new stack

103312[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:4] Set(“PJSIP/kobu-smart-local-0000001b”, “SIPHEADERKEYS=Alert-Info”) in new stack

103313[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:5] While(“PJSIP/kobu-smart-local-0000001b”, “1”) in new stack

103314[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:6] Set(“PJSIP/kobu-smart-local-0000001b”, “sipheader=unset”) in new stack

103315[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:7] ExecIf(“PJSIP/kobu-smart-local-0000001b”, “1?Set(PJSIP_HEADER(remove,Alert-Info)=)”) in new stack

103316[2023-01-23 19:52:26] ERROR[32457] res_pjsip_header_funcs.c: No headers had been previously added to this session.

103317[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:8] ExecIf(“PJSIP/kobu-smart-local-0000001b”, “0?Set(sipheader=http://127.0.0.1;info=unset)”) in new stack

103318[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:9] ExecIf(“PJSIP/kobu-smart-local-0000001b”, “0?Set(sipheader=http://127.0.0.1unset)”) in new stack

103319[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:10] ExecIf(“PJSIP/kobu-smart-local-0000001b”, “0?Set(PJSIP_HEADER(add,Alert-Info)=unset)”) in new stack

103320[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:11] EndWhile(“PJSIP/kobu-smart-local-0000001b”, “”) in new stack

103321[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:5] While(“PJSIP/kobu-smart-local-0000001b”, “0”) in new stack

103322[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:12] Return(“PJSIP/kobu-smart-local-0000001b”, “”) in new stack

103323[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] app_stack.c: Spawn extension (from-pstn, 907460710877, 1) exited non-zero on ‘PJSIP/kobu-smart-local-0000001b’

103324[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] app_stack.c: PJSIP/kobu-smart-local-0000001b Internal Gosub(func-apply-sipheaders,s,1(1)) complete GOSUB_RETVAL=

103325[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] app_dial.c: Called PJSIP/[email protected]

103326[2023-01-23 19:52:27] VERBOSE[13461][C-00000015] app_dial.c: PJSIP/kobu-smart-local-0000001b is ringing

103327[2023-01-23 19:52:28] VERBOSE[13461][C-00000015] app_dial.c: PJSIP/kobu-smart-local-0000001b is making progress passing it to PJSIP/1000-0000001a

103328[2023-01-23 19:52:32] VERBOSE[13461][C-00000015] app_dial.c: PJSIP/kobu-smart-local-0000001b answered PJSIP/1000-0000001a

103329[2023-01-23 19:52:32] VERBOSE[13461][C-00000015] app_stack.c: PJSIP/kobu-smart-local-0000001b Internal Gosub(sub-send-obroute-email,s,1(07460710877,907460710877,1,1674503546,KOBU SMART LTD,442045202452)) start

103330[2023-01-23 19:52:32] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:1] GotoIf(“PJSIP/kobu-smart-local-0000001b”, “0?sendEmail”) in new stack

103331[2023-01-23 19:52:32] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:2] NoOp(“PJSIP/kobu-smart-local-0000001b”, “email notifications disabled…exiting.”) in new stack

103332[2023-01-23 19:52:32] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:3] Return(“PJSIP/kobu-smart-local-0000001b”, “”) in new stack

103333[2023-01-23 19:52:32] VERBOSE[13461][C-00000015] app_stack.c: Spawn extension (from-pstn, , 1) exited non-zero on ‘PJSIP/kobu-smart-local-0000001b’

103334[2023-01-23 19:52:32] VERBOSE[13461][C-00000015] app_stack.c: PJSIP/kobu-smart-local-0000001b Internal Gosub(sub-send-obroute-email,s,1(07460710877,907460710877,1,1674503546,KOBU SMART LTD,442045202452)) complete GOSUB_RETVAL=

103335[2023-01-23 19:52:32] VERBOSE[13508][C-00000015] bridge_channel.c: Channel PJSIP/kobu-smart-local-0000001b joined ‘simple_bridge’ basic-bridge <16ae1861-5da2-440e-91d3-bdea2df72811>

103336[2023-01-23 19:52:32] VERBOSE[13461][C-00000015] bridge_channel.c: Channel PJSIP/1000-0000001a joined ‘simple_bridge’ basic-bridge <16ae1861-5da2-440e-91d3-bdea2df72811>

103337[2023-01-23 19:52:32] VERBOSE[13461][C-00000015] bridge_channel.c: Channel PJSIP/1000-0000001a left ‘simple_bridge’ basic-bridge <16ae1861-5da2-440e-91d3-bdea2df72811>

103338[2023-01-23 19:52:32] VERBOSE[13461][C-00000015] app_macro.c: Spawn extension (macro-dialout-trunk, s, 36) exited non-zero on ‘PJSIP/1000-0000001a’ in macro ‘dialout-trunk’

103339[2023-01-23 19:52:32] VERBOSE[13461][C-00000015] pbx.c: Spawn extension (from-internal, 907460710877, 14) exited non-zero on ‘PJSIP/1000-0000001a’

103340[2023-01-23 19:52:32] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:1] Macro(“PJSIP/1000-0000001a”, “hangupcall”) in new stack

103341[2023-01-23 19:52:32] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:1] GotoIf(“PJSIP/1000-0000001a”, “1?theend”) in new stack

103342[2023-01-23 19:52:32] VERBOSE[13461][C-00000015] pbx_builtins.c: Goto (macro-hangupcall,s,3)

103343[2023-01-23 19:52:32] VERBOSE[13508][C-00000015] bridge_channel.c: Channel PJSIP/kobu-smart-local-0000001b left ‘simple_bridge’ basic-bridge <16ae1861-5da2-440e-91d3-bdea2df72811>

103344[2023-01-23 19:52:32] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:3] ExecIf(“PJSIP/1000-0000001a”, “0?Set(CDR(recordingfile)=)”) in new stack

103345[2023-01-23 19:52:32] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:4] Hangup(“PJSIP/1000-0000001a”, “”) in new stack

103346[2023-01-23 19:52:32] VERBOSE[13461][C-00000015] app_macro.c: Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘PJSIP/1000-0000001a’ in macro ‘hangupcall’

103347[2023-01-23 19:52:32] VERBOSE[13461][C-00000015] pbx.c: Spawn extension (from-internal, h, 1) exited non-zero on ‘PJSIP/1000-0000001a’

103348[2023-01-23 19:52:32] VERBOSE[13461][C-00000015] app_stack.c: PJSIP/1000-0000001a Internal Gosub(crm-hangup,s,1) start

103349[2023-01-23 19:52:32] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:1] NoOp(“PJSIP/1000-0000001a”, “Sending Hangup to CRM”) in new stack

103350[2023-01-23 19:52:32] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:2] NoOp(“PJSIP/1000-0000001a”, “HANGUP CAUSE: 16”) in new stack

103351[2023-01-23 19:52:32] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:3] ExecIf(“PJSIP/1000-0000001a”, “0?Set(__CRM_VOICEMAIL=)”) in new stack

103352[2023-01-23 19:52:32] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:4] NoOp(“PJSIP/1000-0000001a”, “MASTER CHANNEL: 1674503546.26 = 1674503546.26”) in new stack

103353[2023-01-23 19:52:32] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:5] GotoIf(“PJSIP/1000-0000001a”, “0?return”) in new stack

103354[2023-01-23 19:52:32] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:6] Set(“PJSIP/1000-0000001a”, “__CRM_HANGUP=1”) in new stack

103355[2023-01-23 19:52:32] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:7] AGI(“PJSIP/1000-0000001a”, “agi://127.0.0.1/sangomacrm.agi”) in new stack

103356[2023-01-23 19:52:32] VERBOSE[13461][C-00000015] res_agi.c: <PJSIP/1000-0000001a>AGI Script agi://127.0.0.1/sangomacrm.agi completed, returning 0

103357[2023-01-23 19:52:32] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:8] Return(“PJSIP/1000-0000001a”, “”) in new stack

You might need to rationalize your numbering

103301[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:30] ExecIf(“PJSIP/1000-0000001a”, “1?Set(CONNECTEDLINE(num,i)=07460710877)”) in new stack

103302[2023-01-23 19:52:26] VERBOSE[13461][C-00000015] pbx.c: Executing [[email protected]:31] ExecIf(“PJSIP/1000-0000001a”, “1?Set(CONNECTEDLINE(name,i)=CID:442045202452)”) in new stack

show attempted use of both e164 and UK locale numbering. Check with your provider that both are acceptable.

I Have talked with my provider about this authentication issues, and it seems they are investigating, but so far my oubound calls are still not working and I based in London and every time I touch the config is getting worse lol. At least the Inbound calls are working fine.

However, I’ve got a response and it seems, from my site:

Hello again,

As mentioned earlier, the 407 is just a standard response we send the PBX to challenge it to provide the correct SIP credentials to authenticate and make a valid connection setup.

While looking at both the shared samples I can see in the SIP ladder the BYE is coming from your PBX and you can view this in your portal debugging section too and you’ll see the BYE.

We can only provide configuration guides for what we have covered on support.telnyx.com which I shared with you earlier.

FreePBX is pretty widely supported by us so it should work however you may be best to reach to FreePBX support for configuration help as all we are obligated to do on our side is portal setup, and after checking the SIP configurations and the OB configuration it looks good to me.

You haven’t said anything about this before, and the call is answered, so must have been authenticated.

You haven’t provided the pjsip set logger on output, that would be needed to understand what is happening at the SIP level.

Apologise david, as I mentioned I am a bit newby at FreePBX and I missed that part to mentioning.

[2023-01-24 11:34:27] VERBOSE[8392] res_pjsip_logger.c: <— Transmitting SIP request (1716 bytes) to UDP:185.246.41.140:5060 —>
37454 INVITE sip:[email protected]:5060;user=phone SIP/2.0
37455 Via: SIP/2.0/UDP 86.170.17.132:5060;rport;branch=z9hG4bKPj13ba2a3a-9fa7-4386-86f4-affcc5b3ff44
37456 From: sip:[email protected];user=phone;tag=ac0c99f6-d46b-4237-8b8e-19d925edd6e0
37457 To: sip:[email protected];user=phone
37458 Contact: sip:[email protected]:5060
37459 Call-ID: e5caafa7-883b-408e-b472-bcda97cd11ff
37460 CSeq: 28239 INVITE
37461 Allow: OPTIONS, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, MESSAGE, REFER
37462 Supported: 100rel, timer, replaces, norefersub, histinfo
37463 Session-Expires: 1800
37464 Min-SE: 90
37465 Max-Forwards: 70
37466 User-Agent: FPBX-16.0.30(18.13.0)
37467 Proxy-Authorization: Digest username=“kobusmart”, realm=“sip.telnyx.eu”, nonce=“763b3243-ef03-421f-8c88-62cdb05c06bb”, uri=“sip:[email protected]:5060;user=phone”, response=“b2654a23d8ad8d411e21bc9d0aa45f7d”, algorithm=MD5, cnonce=“0701728bbc9742f19344dc16b98122be”, opaque=“621c48bb-371c-413a-b6fe-3aac4e4f4975/10.13.145.4”, qop=auth, nc=00000001
37468 P-Asserted-Identity: sip:[email protected];user=phone
37469 Remote-Party-ID: sip:[email protected];user=phone;party=calling;privacy=off;screen=no
37470 Content-Type: application/sdp
37471 Content-Length: 469
37472
37473 v=0
37474 o=- 1747162772 1747162772 IN IP4 86.170.17.132
37475 s=Asterisk
37476 c=IN IP4 86.170.17.132
37477 t=0 0
37478 m=audio 12540 RTP/AVP 0 8 3 111 9 18 4 107 101
37479 a=rtpmap:0 PCMU/8000
37480 a=rtpmap:8 PCMA/8000
37481 a=rtpmap:3 GSM/8000
37482 a=rtpmap:111 G726-32/8000
37483 a=rtpmap:9 G722/8000
37484 a=rtpmap:18 G729/8000
37485 a=fmtp:18 annexb=no
37486 a=rtpmap:4 G723/8000
37487 a=rtpmap:107 opus/48000/2
37488 a=fmtp:107 useinbandfec=1
37489 a=rtpmap:101 telephone-event/8000
37490 a=fmtp:101 0-16
37491 a=ptime:20
37492 a=maxptime:20
37493 a=sendrecv
37494
37495 [2023-01-24 11:34:27] VERBOSE[3000] res_pjsip_logger.c: <— Received SIP response (406 bytes) from UDP:185.246.41.140:5060 —>
37496 SIP/2.0 100 Telnyx Trying
37497 Via: SIP/2.0/UDP 86.170.17.132:5060;rport=20001;branch=z9hG4bKPj13ba2a3a-9fa7-4386-86f4-affcc5b3ff44;received=86.170.17.132
37498 From: sip:[email protected];user=phone;tag=ac0c99f6-d46b-4237-8b8e-19d925edd6e0
37499 To: sip:[email protected];user=phone
37500 Call-ID: e5caafa7-883b-408e-b472-bcda97cd11ff
37501 CSeq: 28239 INVITE
37502 Server: Telnyx SIP Proxy
37503 Content-Length: 0
37504
37505
37506 [2023-01-24 11:34:28] VERBOSE[3000] res_pjsip_logger.c: <— Received SIP response (813 bytes) from UDP:185.246.41.140:5060 —>
37507 SIP/2.0 180 Ringing
37508 Via: SIP/2.0/UDP 86.170.17.132:5060;received=86.170.17.132;rport=20001;branch=z9hG4bKPj13ba2a3a-9fa7-4386-86f4-affcc5b3ff44
37509 Record-Route: sip:10.31.224.10;transport=tcp;r2=on;lr;ftag=ac0c99f6-d46b-4237-8b8e-19d925edd6e0
37510 Record-Route: sip:185.246.41.140;r2=on;lr;ftag=ac0c99f6-d46b-4237-8b8e-19d925edd6e0
37511 From: sip:[email protected];user=phone;tag=ac0c99f6-d46b-4237-8b8e-19d925edd6e0
37512 To: sip:[email protected];user=phone;tag=rSUF1e91Z74FQ
37513 Call-ID: e5caafa7-883b-408e-b472-bcda97cd11ff
37514 CSeq: 28239 INVITE
37515 Contact: sip:telnyx*07460710877**10.13.145.4*5070*[email protected]
37516 Accept: application/sdp
37517 Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REFER, NOTIFY
37518 Supported: path
37519 Allow-Events: talk, hold, conference, refer
37520 Content-Length: 0
37521
37522
37523 [2023-01-24 11:34:28] VERBOSE[13066][C-0000000d] app_dial.c: PJSIP/kobu-smart-local-00000018 is ringing
37524 [2023-01-24 11:34:28] VERBOSE[8392] res_pjsip_logger.c: <— Transmitting SIP response (614 bytes) to UDP:192.168.172.101:5060 —>
37525 SIP/2.0 180 Ringing
37526 Via: SIP/2.0/UDP 192.168.172.101:5060;rport=5060;received=192.168.172.101;branch=z9hG4bK-qjjdpleftvyx
37527 Call-ID: 63cfc23abc76-gkbrk97n62h6
37528 From: “Kilian Perez” sip:[email protected];tag=0wm0j71uzy
37529 To: sip:[email protected];user=phone;tag=2d419d9f-aa3a-43a7-a046-8252711972e2
37530 CSeq: 2 INVITE
37531 Server: FPBX-16.0.30(18.13.0)
37532 Contact: sip:192.168.172.17:5060
37533 Allow: OPTIONS, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, MESSAGE, REFER
37534 P-Asserted-Identity: “CID:442045202452” sip:[email protected];user=phone
37535 Content-Length: 0
37536
37537
37538 [2023-01-24 11:34:28] VERBOSE[3000] res_pjsip_logger.c: <— Received SIP response (1166 bytes) from UDP:185.246.41.140:5060 —>
37539 SIP/2.0 183 Session Progress
37540 Via: SIP/2.0/UDP 86.170.17.132:5060;received=86.170.17.132;rport=20001;branch=z9hG4bKPj13ba2a3a-9fa7-4386-86f4-affcc5b3ff44
37541 Record-Route: sip:10.31.224.10;transport=tcp;r2=on;lr;ftag=ac0c99f6-d46b-4237-8b8e-19d925edd6e0
37542 Record-Route: sip:185.246.41.140;r2=on;lr;ftag=ac0c99f6-d46b-4237-8b8e-19d925edd6e0
37543 From: sip:[email protected];user=phone;tag=ac0c99f6-d46b-4237-8b8e-19d925edd6e0
37544 To: sip:[email protected];user=phone;tag=rSUF1e91Z74FQ
37545 Call-ID: e5caafa7-883b-408e-b472-bcda97cd11ff
37546 CSeq: 28239 INVITE
37547 Contact: sip:telnyx*07460710877**10.13.145.4*5070*[email protected]
37548 Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REFER, NOTIFY
37549 Supported: path
37550 Allow-Events: talk, hold, conference, refer
37551 Content-Type: application/sdp
37552 Content-Disposition: session
37553 Content-Length: 306

Okay I found the issue finally, it seems was my IP Phone issues. I was forcing to listen on TCP connections and the FreePBX the trunk I’ve got is listen via UDP…
Things i have to learn I guess