[SR-Users] Manipulate From header
alex pappas
rebel.pappas at gmail.com
Fri May 20 16:14:35 CEST 2011
Dear all,
I'm trying to change the From uri and Dsplay but without sucess.
My config is as follow:
if(dp_translate("1111", "$avp(s:frm_user_name)/$avp(s:test_frm_user_name)"))
--> i'm sending 2112202701 and I get back corectly 701
{
$avp(s:display) = $avp(s:test_frm_user_name);
$avp(s:fu_uri) = "sip:"
+ $avp(s:test_frm_user_name) + "@" + $fd;
xlog("alx ------- The avp(s:display):
$avp(s:display) ---- avp(s:fu_uri)=$avp(s:fu_uri) ----------\n"); --> I
see values 701 and sip:701 at my_IP_address
uac_replace_from("$avp(s:display)","$avp(s:fu_uri)");
Here I log the fu and I see that nothing has
changed..
}
Do you have any ideas on that ?
I use Kamailio 3.1.3
Thank you in advance
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20110520/0609fb7a/attachment.htm>
More information about the sr-users
mailing list