[Asterisk-Users] Setting Request URI

Douglas Garstang dgarstang at oneeighty.com
Sat Dec 10 22:49:47 MST 2005


Hi Mark. The 'fromdomain' directive in sip.conf just sets the 'From:' field in the SIP header. This is different to the request URI. It's a major pain in the ass because most SIP proxies (OpenSER in this case) route based on the request URI. Asterisk is setting the request URI to sip:192.168.10.40 where 192.168.10.40 is the IP address of the peer/proxy. Grrrr!

	-----Original Message----- 
	From: Marc Storck [mailto:mstorck at voipgate.com] 
	Sent: Sat 12/10/2005 7:34 PM 
	To: Asterisk Users Mailing List - Non-Commercial Discussion 
	Cc: 
	Subject: Re: [Asterisk-Users] Setting Request URI
	
	

	Hello Douglas,
	
	I don't know if this is exactly what you need, but the "fromdomain" and
	"fromuser" in sip.conf (explained here:
	http://www.voip-info.org/wiki-Asterisk+config+sip.conf) change the From:
	header to fromuser_value at fromdomain_value.
	
	Regards,
	
	Marc
	
	Douglas Garstang wrote:
	> Does anyone know how to set the request URI of SIP messages being sent from Asterisk to a peer? Asterisk always puts the IP address or hostname of the peer in the request URI. Eventhough Asterisk's SRV lookups are broken, I'd really like to put a domain name in the request URI (makes OpenSER routing easier and more logical).
	> 
	> Anyone know how to do this?
	> 
	> Doug.
	> 
	>
	>
	> ------------------------------------------------------------------------
	>
	> _______________________________________________
	> --Bandwidth and Colocation provided by Easynews.com --
	>
	> Asterisk-Users mailing list
	> To UNSUBSCRIBE or update options visit:
	>    http://lists.digium.com/mailman/listinfo/asterisk-users
	
	_______________________________________________
	--Bandwidth and Colocation provided by Easynews.com --
	
	Asterisk-Users mailing list
	To UNSUBSCRIBE or update options visit:
	   http://lists.digium.com/mailman/listinfo/asterisk-users
	

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 5050 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20051210/603e8e4a/attachment.bin


More information about the asterisk-users mailing list