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

Elena Ramona Modroiu ramona at voice-system.ro
Sat Aug 27 14:06:48 CEST 2005


Hi,

thanks for reporting. There was a missing break when parsing the name of
the $rt pseudo-variable. R-URI was printed instead of Refer-To URI. It
is now fixed on cvs.

Regards,
Ramona

Kanakatti Mahesh Subramanya wrote:

> Given the following packet
>
> REFER sip:9546236300 at 69.25.47.137:5090 SIP/2.0
> Via: SIP/2.0/UDP 192.168.28.118;branch=z9hG4bK5eb7146d4B8F8EA4
> From: <sip:mahesh.aptela at 66.23.129.213>;tag=AB447651-36547B1E
> To: "operator.aptela" <sip:9546236300 at 69.25.47.137:5090>;tag=as6c1b062a
> Route: <sip:66.23.129.213;ftag=as6c1b062a;lr=on>
> CSeq: 2 REFER
> Call-ID: 688b089d4b10573715a49690228f1586 at 69.25.47.137
> Contact: <sip:mahesh.aptela at 192.168.28.118>
> User-Agent: PolycomSoundPointIP-SPIP_500-UA/1.4.1
> Refer-To: sip:7100 at flareon.aptela.com:5060
> Referred-By: <sip:mahesh.aptela at 66.23.129.213>
> Max-Forwards: 70
> Content-Length: 0
>
>
> avp_printf() sets $rt to "sip:9546236300 at 69.25.47.137:5090" instead of
> "sip:7100 at flareon.aptela.com:5060"
>
> trace follows
>
> When you run
> avp_write("$hdr[Refer-To]", "$savedRefer");
> avp_print();
> 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");
> avp_print();
> you get
>
> 2(5034) DEBUG:                 id=<65>
> 2(5034) DEBUG:                 val_str=<sip:9546236300 at 69.25.47.137:5090>
>
>
> t
>
>_______________________________________________
>Users mailing list
>Users at openser.org
>http://openser.org/cgi-bin/mailman/listinfo/users
>  
>




More information about the sr-users mailing list