[Users] $rt setting avp to the "To" header instead of the "Refer-To" header

Kanakatti Mahesh Subramanya mahesh at aptela.com
Sat Aug 27 01:14:16 CEST 2005

Given the following packet

REFER sip:9546236300 at SIP/2.0
Via: SIP/2.0/UDP;branch=z9hG4bK5eb7146d4B8F8EA4
From: <sip:mahesh.aptela at>;tag=AB447651-36547B1E
To: "operator.aptela" <sip:9546236300 at>;tag=as6c1b062a
Route: <sip:;ftag=as6c1b062a;lr=on>
Call-ID: 688b089d4b10573715a49690228f1586 at
Contact: <sip:mahesh.aptela at>
User-Agent: PolycomSoundPointIP-SPIP_500-UA/1.4.1
Refer-To: sip:7100 at flareon.aptela.com:5060
Referred-By: <sip:mahesh.aptela at>
Max-Forwards: 70
Content-Length: 0

avp_printf() sets $rt to "sip:9546236300 at" instead of 
"sip:7100 at flareon.aptela.com:5060"

trace follows

When you run
avp_write("$hdr[Refer-To]", "$savedRefer");
you get

2(5034) DEBUG:                 id=<65>
 2(5034) DEBUG:                 val_str=<sip:7100 at flareon.aptela.com:5060>

When you run
avp_printf("$savedRefer", "$rt");
you get

 2(5034) DEBUG:                 id=<65>
 2(5034) DEBUG:                 val_str=<sip:9546236300 at>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mahesh.vcf
Type: text/x-vcard
Size: 332 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20050826/8bf71274/attachment.vcf>

More information about the sr-users mailing list