[SR-Users] Change from_uri

Alex Balashov abalashov at evaristesys.com
Sat Feb 22 01:49:12 CET 2014


On 02/21/2014 07:46 PM, arun Jayaprakash wrote:

> It looks like my gateway is expecting to see a DID number in the from
> header. Can someone let me know how I can dot this? Thank you.

The uac_replace_from() function exported by the 'uac' module can do this:

 
http://kamailio.org/docs/modules/4.1.x/modules/uac.html#uac.f.uac_replace_from

However, you should carefully give some consideration to whether you 
really want to change the value of the From header. It is quite 
inadvisable, and is not something proxies are formally permitted to do. 
The UAC module gets around this requirement through some rather 
complicated spoofing.

You might consider instead reconfiguring your UAC to send different From 
values, most likely by changing 'caller ID' settings in Asterisk, in 
your case.  For instance, there is the 'callerid' option for sip,conf peers.

-- 
Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Decatur, GA 30030
United States
Tel: +1-678-954-0670
Web: http://www.evaristesys.com/, http://www.alexbalashov.com/



More information about the sr-users mailing list