[Users] Is it possiable to rewriting sorc UA name?

Steve Xu 516888 at gmail.com
Mon Jan 30 21:34:58 CET 2006


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 at abc.com  call to 8786212323 at abc.com
I want to replace 6162341124 at abc.com with  8786219999 at abc.com in the INVITE
, so that called user 8786212323 at abc.com will see the calling party number
is 8786219999.

another example:
  From 6162341124 at abc.com  call to 5623225323 at abc.com
I want to replace 6162341124 at abc.com with  5623229999 at 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 at 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 at gmail.com> [060130 07:04]:
> > Hi All,
> >
> > I found that PSTN GW usually put the "From: xxxx at 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 at abc.com make call to hugen at abf.com, can I rewrite the
> > alice at abc.com  to 661234223 at abc.com when I send INVITE to hugen at abf.com?
> >
> > Any help will be appreciated.
> >
> > Steve
>
> > _______________________________________________
> > Users mailing list
> > Users at openser.org
> > http://openser.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20060130/53d37882/attachment.htm 


More information about the Users mailing list