Hi,
Use the uac_replace_from() to change the URI only and build a new URI
based on the old one:
$var(new_uri) = "sip:"+$fU+"@10.200.0.5" ;
uac_replace_from("$var(new_uri)")
or, much simpler:
uac_replace_from(""sip:[email protected]")
see: http://www.opensips.org/Resources/DocsCoreVar16#toc39
Regards,
Bogdan
CheeWii wrote:
> Hi
> I have a simple question.
> I know the from_uri can get the FROM information. and I can use
> uac_replace_from() to change uri.
> But I just want to modify the domain only , the username need to be
> reserved.
> Thus
> From: "123" <sip:[email protected]
> <mailto:sip%[email protected]>>;----->From: "123" <sip:[email protected]
> <mailto:sip%[email protected]>>
>
> How can I accomplish it simply? Thanks a lot:)
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
--
Bogdan-Andrei Iancu
www.voice-system.ro
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users