[Serusers] subst() usage - weird behavior?

Kanakatti Mahesh Subramanya mahesh at aptela.com
Sun Jan 16 08:16:37 CET 2005


One of my clients has a weird Cisco router which is chopping off the end 
of the Contact headers that are being sent to me.
They look like Contact: 
<sip:foo at 192.168.28.102:5060;transport=udp;line=8hzddhav>;q=
Thats right, "q="
So, I figured that as a temporary hack (till they got the Cisco 
patched), i'd check incoming packets, and replace the "q=" with a "q=1.0"
i.e., doing the following

if ( subst( '/^Contact:(.*);q=$/Contact:\1q=1.0/' ) {
...
}

however, as far as I can tell, the above substitution never actually 
takes place?
What gives? 
Do I need to match for '\r' too?

Ideas?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mahesh.vcf
Type: text/x-vcard
Size: 325 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20050116/46e5c3a1/attachment.vcf>


More information about the sr-users mailing list