Forum Discussion
Joao_Bota_10633
Nimbostratus
Mar 17, 2007irule to "NAT" SIP::uri
Hi all,
Need to perform destination NAT inside UDP/SIP messages
sip:XXX@vip --> sip:XXX@real
I am thinking of using the pseudo-code (being 10.1.2.3 the vip):
when SIP_REQUEST_SEND
set lbsa [LB::server addr] <--this will be the selected real
set su [SIP::uri]
set st [SIP::to]
SIP::header remove uri
SIP::header remove To
regsub {10.1.2.3} $su "$lbsa" su
regsub {10.1.2.3} $st "$lbsa" st
SIP::header insert uri $su
SIP::header insert To $st
The challenge is:
SIP::To header is well defined inside SIP header (eg. TO sip:XXX@vip).
However, SIP::uri is not so well defined (eg. INVITE\nsip:XXX@vip).
Can someone give me a direction ?
Regards,
Joao
No RepliesBe the first to reply
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects