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.
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.