Forum Discussion
Ken_Wong_48678
Sep 04, 2008Historic F5 Account
SIP via header modification
Hi,
my customers have a requirement to modify SIP via header, they want to insert the SIP client ip and port into the via header.
when CLIENT_ACCEPTED {
set ::clie...
Nicolas_Menant
Employee
Sep 04, 2008You have this error message even if you use this part :
when SIP_REQUEST_SEND {
log local0. "[IP::client_addr]:[UDP::client_port]: [IP::client_addr]:[UDP::client_port]"
SIP::header insert "Via" "[lindex [split [SIP::via 1] ";"] 0]received=[IP::client_addr]rport=[UDP::client_port][lindex [split [SIP::via 1] ";"] 2]" 1
SIP::header remove "Via" 2
}
?
The problem is you may have issue to retrieve variable value in this event, so you should try to call directly [IP::client_addr] instead of $clientip
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