New Gateway Parameter

Status
Not open for further replies.

1nfoservices

New Member
Nov 21, 2019
6
2
3
36
Canada
I am trying to make FusionPBX play well with Teams Direct Routing.
A new option was added to Freeswitch release 1.10.5 named "contact-in-ping".

Added new fields as "contact_in_ping" for vars and database field; and "contact-in-ping" for xml handler.

Files modified:
app/gateways/gateway_edit.php
app/scripts/resources/scripts/app/xml_handler/resources/scripts/configuration/sofia.conf.lua
app/gateways/app_languages.php
app/gateways/app_config.php
resources/switch.php
Also:
/usr/share/freeswitch/scripts/app/xml_handler/resources/scripts/configuration/sofia.conf.lua


Still testing i out. No git done whatsoever.


Results:
Code:
OPTIONS sip:sip.pstnhub.microsoft.com:5061;transport=tls SIP/2.0
Via: SIP/2.0/TLS sbc.mydomain.com:5081;rport;branch=z9hG4bKprXtZeDHNp64S
Max-Forwards: 70
From: <sip:sip.pstnhub.microsoft.com:5061>;tag=pvr6r0Q2r81vF
To: <sip:sip.pstnhub.microsoft.com:5061>
Call-ID: 0ba7025b-9d88-123a-45aa-fa163e683858
CSeq: 42002544 OPTIONS
Contact: <sip:sbc.mydomain.com@sbc.mydomain.com:5081;transport=tls;transport=tls;gw=2efa37e6-b176-4788-aed1-1263c7dd694d>
User-Agent: FreeSWITCH
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, refer
Content-Length: 0


recv 395 bytes from tls/[52.114.132.46]:5061 at 18:27:16.221881:
------------------------------------------------------------------------
SIP/2.0 200 OK
FROM: <sip:sip.pstnhub.microsoft.com:5061>;tag=pvr6r0Q2r81vF
TO: <sip:sip.pstnhub.microsoft.com:5061>
CSEQ: 42002544 OPTIONS
CALL-ID: 0ba7025b-9d88-123a-45aa-fa163e683858
VIA: SIP/2.0/TLS sbc.mydomain.com:5081;branch=z9hG4bKprXtZeDHNp64S;rport
CONTENT-LENGTH: 0
ALLOW: INVITE,ACK,OPTIONS,CANCEL,BYE,NOTIFY
SERVER: Microsoft.PSTNHub.SIPProxy v.2021.9.28.13 i.USEA.2
 

1nfoservices

New Member
Nov 21, 2019
6
2
3
36
Canada
BTW, here are my versions numbers from a fresh install:
Code:
System Information
Version    4.5.28
Git Information    Branch: master
Commit: bc1e163c898ea2e410787f8e938ccbead172aa5a
Origin: https://github.com/fusionpbx/fusionpbx
Status: Your branch is up to date with 'origin/master'. +6 days ago
Project Path    /var/www/fusionpbx
Switch Version    1.10.6 (64bit)
PHP Version    7.3.29-1~deb10u1
 

kobyhud

New Member
Mar 1, 2021
24
3
3
44
Did this work for you? By adding the contact-in-ping option to your Gateway were you able to communicate with Teams?
 

markjcrane

Active Member
Staff member
Jul 22, 2018
499
177
43
49
Today I was called by a who wants MS Teams support in FusionPBX and that person showed me this link.
- https://lists.freeswitch.org/pipermail/freeswitch-users/2020-October/134047.html

I wrote the code and committed it to add contact-in-ping to FusionPBX Gateways -> Advanced button.

After that I searched for contact-in-ping in a search engine and found this message in the forum. Since I added this to FusionPBX gui by default for new installs as of 19 Jul 2022. Thought I would mention that it will be available to other people as well.
 
Status
Not open for further replies.