SIP Trunks via a FusionPBX Server - "Issue" in Magic Formula

Status
Not open for further replies.

Skeelkat

Member
Jun 26, 2020
35
4
8
42
Hi everyone,

Following this thread, I have puzzled out what I was doing wrong trying to pass the destination number through to the PBX on site, however the sofia_contact in the below regex returns the LAN IP instead of the Public IP and thus the call is not passing to the public side of the connected PBX.

sofia/REGISTRATION_PUBLIC_5060/sip:$1${regex(${sofia_contact(700@domain.com}|^[^@]+(.*)|%1)}

Is there another variable instead of sofia_contact that can be used in the regex to obtain the public IP?

Any help would be greatly appreciated.
 
Status
Not open for further replies.