Forum Discussion
telcentris_9103
Nimbostratus
Mar 02, 2010SIP SDP Field Manipulation
Trying to replace owner address in SDP. Little to nothing found on web, Google or F5 sites. Basically want to replace IP address in Owner Address portion of SDP on SIP calls.
First off - there is no clear defintion of SDP::field. If you test by logging you'll see that SDP:field [owner | owner-adress(yes 1 d instead of 2) | owner-address-type | owner-username] all give you the full Owner/Creator line.
I've tried everything and every combination of SDP::field replace | remove | insert | regsub but either get errors on iRule submit or TCL error while running.
This is a tough one.
Thanks
Darren
yahoo - darren_voip
keywords to help searchers: f5, big-ip, SIP, SDP, owner-address, owner address, session description protocol
4 Replies
- hoolio
Cirrostratus
Hi Darren,
Can you post an anonymized copy of the request that you're trying to rewrite, the iRule you've tried testing and log output from it not working?
Thanks,
Aaron - telcentris_9103
Nimbostratus
Here is everything I have tried along with results. I have replaced ip address with x.x.x.x
SDP::field insert owner-adress $dd
bad args
SDP::field insert "owner-adress" "$dd"
bad args
SDP::field insert owner-adress "$dd"
bad args
SDP::field remove owner-adress
SDP::field owner-adress "$dd"
TCL error: SDP_OWNER SIP_RESPONSE - expected integer but got owner-adressIllegal argument. Invalid integer value line 1 invoked from within SDP::field remove owner-adress
SDP::field remove "owner-adress"
SDP::field owner-adress "$dd"
TCL error: SDP_OWNER SIP_RESPONSE - expected integer but got owner-adressIllegal argument. Invalid integer value line 1 invoked from within SDP::field remove owner-adress
SDP::field insert owner-adress [regsub $a $tmp $b]
SDP::field remove "owner-adress" 1
bad args
SDP::field owner-adress [regsub $a [SDP::field owner-adress] $b]
TCL error: SDP_OWNER SIP_RESPONSE - expected integer but got Sippy 322524076 1 IN IP4 x.x.x.x Illegal argument. Invalid integer value line 1 invoked from within SDP::field owner-adress [regsub $a [SDP::field owner-adress] $b]
SDP::field remove "owner-adress"
TCL error: SDP_OWNER SIP_RESPONSE - expected integer but got owner-adressIllegal argument. Invalid integer value line 1 invoked from within SDP::field remove owner-adress
SDP::field owner-adress $dd
TCL error: SDP_OWNER SIP_RESPONSE - expected integer but got Sippy 332352716 1 IN IP4 x.x.x.x Illegal argument. Invalid integer value line 1 invoked from within SDP::field owner-adress $dd - telcentris_9103
Nimbostratus
Anything?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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