[OpenSIPS-Users] uac_replace_from
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Thu Apr 29 10:24:47 CEST 2010
Hi David,
David Adade wrote:
> Thanks
> help much apreciated
>
> modparam("rr", "append_fromtag", 1)
> modparam("uac","restore_mode","auto")
>
> xlog("$fu \n");
> uac_replace_from(2101573704 at 10.10.1.100 <mailto:2101573704 at 10.10.1.100>);
> xlog("$fu \n");
>
>
> Output
>
> sip:02086847213 at 10.10.1.50
> sip:02086847213 at 10.10.1.50
>
> I cant seem to get it to change the value. am i missing something
>
It is ok, the $fu prints all the time the original FROM URI (it does not
reflect the changes) - but check the outgoing SIP message to see if the
FROM URI was indeed changed.
Regards,
Bogdan
>
>
> ------------------------------------------------------------------------
> *From:* users-bounces at lists.opensips.org
> [mailto:users-bounces at lists.opensips.org] *On Behalf Of *Antonio
> Anderson Souza
> *Sent:* 29 April 2010 00:26
> *To:* OpenSIPS users mailling list
> *Subject:* Re: [OpenSIPS-Users] uac_replace_from
>
> The best way is to use the uac module.
>
> Calling the function uac_replace_from before the relay, follow a
> script snippet bellow:
>
> uac_replace_from("sip:22222222 at 10.10.1.100
> <mailto:sip%3A22222222 at 10.10.1.100>")
>
> Best regards,
>
> Antonio Anderson M. Souza
> Voice Technology
> http://www.antonioams.com
>
>> Em 28/04/2010 20:19, "dcomms" <info at dcomms.net
>> <mailto:info at dcomms.net>>escreveu:
>>
>>
>> HI,
>>
>>
>> Whats the best way to do this? i have asterisk configured with
>> fromuser=2222222222
>>
>> xlog("$fu \n") shows sip:2222222222 at 10.10.1.100
>> <mailto:sip%3A2222222222 at 10.10.1.100>
>>
>>
>> I want to change to sip:1111111111 at 10.10.1.100
>> <mailto:sip%3A1111111111 at 10.10.1.100> before relay
>>
>> Even better can someone show me how to change $fu for any ip address
>> 10.10.1.100
>>
>> thanks
>>
>> --
>> View this message in context:
>> http://opensips-open-sip-server.1449251.n2.nabble.com/uac-replace-from-tp4977451p4977451.html
>> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
--
Bogdan-Andrei Iancu
www.voice-system.ro
More information about the Users
mailing list