Hi All,
I found that PSTN GW usually put the "From: xxxx@ipaddress" as ANI (caller ID) when it receive a SIP call. There is a function "rewritingURI" for called URI, I am wandering if there was a function can do rewriting on the the sorc "From" also.
For example: user FROM:alice@abc.com make call to hugen@abf.com, can I rewrite the alice@abc.com to 661234223@abc.com when I send INVITE to hugen@abf.com ?
Any help will be appreciated.
Steve
Hi Steve,
check the UAC module :-)
I think ther eis a function there, uac_replace();
(pleace dont shoot me if I'm wrong)
-Atle
* Steve Xu 516888@gmail.com [060130 07:04]:
Hi All,
I found that PSTN GW usually put the "From: xxxx@ipaddress" as ANI (caller ID) when it receive a SIP call. There is a function "rewritingURI" for called URI, I am wandering if there was a function can do rewriting on the the sorc "From" also.
For example: user FROM:alice@abc.com make call to hugen@abf.com, can I rewrite the alice@abc.com to 661234223@abc.com when I send INVITE to hugen@abf.com ?
Any help will be appreciated.
Steve
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Hi Atle,
Thanks for point me to the right way. I have another question if I can replace the FROM URI based on Called URI? for example:
From 6162341124@abc.com call to 8786212323@abc.com
I want to replace 6162341124@abc.com with 8786219999@abc.com in the INVITE , so that called user 8786212323@abc.com will see the calling party number is 8786219999.
another example: From 6162341124@abc.com call to 5623225323@abc.com I want to replace 6162341124@abc.com with 5623229999@abc.com in the INVITE
the uac_replace_from() can do it too?
Thanks for your time.
Steve
On 1/29/06, Atle Samuelsen clona@cyberhouse.no wrote:
Hi Steve,
check the UAC module :-)
I think ther eis a function there, uac_replace();
(pleace dont shoot me if I'm wrong)
-Atle
- Steve Xu 516888@gmail.com [060130 07:04]:
Hi All,
I found that PSTN GW usually put the "From: xxxx@ipaddress" as ANI
(caller
ID) when it receive a SIP call. There is a function "rewritingURI" for called URI, I am wandering if there was a function can do rewriting on
the
the sorc "From" also.
For example: user FROM:alice@abc.com make call to hugen@abf.com, can I rewrite the alice@abc.com to 661234223@abc.com when I send INVITE to hugen@abf.com?
Any help will be appreciated.
Steve
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Hi Steve,
actually you can do this - dynamically change the from based on different info - uac_replace_from() accepts in the parameter avp values. See examples at: http://openser.org/docs/modules/1.1.x/uac.html#AEN108
so, put the new uri into an AVP (load it from DB based on RURI for ex) and then use it in uac_replace_from().
regards, bogdan
Steve Xu wrote:
Hi Atle,
Thanks for point me to the right way. I have another question if I can replace the FROM URI based on Called URI? for example: From 6162341124@abc.com mailto:6162341124@abc.com call to 8786212323@abc.com mailto:8786212323@abc.com I want to replace 6162341124@abc.com mailto:6162341124@abc.com with 8786219999@abc.com mailto:8786219999@abc.com in the INVITE , so that called user 8786212323@abc.com mailto:8786212323@abc.com will see the calling party number is 8786219999.
another example:
From 6162341124@abc.com mailto:6162341124@abc.com call to 5623225323@abc.com mailto:5623225323@abc.com I want to replace 6162341124@abc.com mailto:6162341124@abc.com with 5623229999@abc.com mailto:5623229999@abc.com in the INVITE
the uac_replace_from() can do it too?
Thanks for your time.
Steve
On 1/29/06, *Atle Samuelsen* <clona@cyberhouse.no mailto:clona@cyberhouse.no> wrote:
Hi Steve, check the UAC module :-) I think ther eis a function there, uac_replace(); (pleace dont shoot me if I'm wrong) -Atle * Steve Xu <516888@gmail.com <mailto:516888@gmail.com>> [060130 07:04]: > Hi All, > > I found that PSTN GW usually put the "From: xxxx@ipaddress" as ANI (caller > ID) when it receive a SIP call. There is a function "rewritingURI" for > called URI, I am wandering if there was a function can do rewriting on the > the sorc "From" also. > > For example: > user FROM:alice@abc.com <mailto:FROM:alice@abc.com> make call to hugen@abf.com <mailto:hugen@abf.com>, can I rewrite the > alice@abc.com <mailto:alice@abc.com> to 661234223@abc.com <mailto:661234223@abc.com> when I send INVITE to hugen@abf.com <mailto:hugen@abf.com> ? > > Any help will be appreciated. > > Steve > _______________________________________________ > Users mailing list > Users@openser.org <mailto:Users@openser.org> > http://openser.org/cgi-bin/mailman/listinfo/users <http://openser.org/cgi-bin/mailman/listinfo/users>
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users