[OpenSIPS-Users] uac_replace_from

David Adade david.adade at dcomms.co.uk
Thu Apr 29 01:56:59 CEST 2010


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
 
 


________________________________

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>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-t
p4977451p4977451.html
	Sent from the OpenSIPS - Users mailing list archive at
Nabble.com.
	
	_______________________________________________
	Users mailing list
	Users at lists.opensips.org
	http://lists.opensips.org/cgi-bin/mailman/listinfo/users
	

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100429/92f96409/attachment.htm 


More information about the Users mailing list