[Kamailio-Users] About Changing URI's

Iñaki Baz Castillo ibc at aliax.net
Tue Sep 23 20:15:34 CEST 2008


El Martes, 23 de Septiembre de 2008, Ali Jawad escribió:
> Hi
>
>
>
> I have the following setup
>
>
>
> Cell Phone "Any Possible Number" ----Calls a DID number-----> DID
> Provider --> Forwards Call to my Openser --> OpenSer Server--> Forwards
> Call to Asterisk with A2B --> Forwards it to the cell phone of the user
>
>
>
> In short, a person can call a DID and it gets forwarded to Openser, if
> the user is online using his sip phone, the sip phone rings and all is
> OK. However, if the user is not online I do forward that call to
> Asterisk and I want to forward it to the cell phone of the user.
>
> The problem is that the FROM field and the SOURCE URI 

What do you mean with "Source URI"? isn't it the FROM?


> keep changing,they 
> are in the from phonenumberOfCaller at DID_Service_Provider.com   and I do
> want to charge the user for the call.

Why do you need to change it?


> To do that I need to have the FROM 
> field and the source URI to be the USER ID so that I can charge him for
> the call.

I don't understand why you want that, could you put an example?




> So, I might have to change the source URI and FROM field of the packet
> and send it to asterisk..it would send the packet back to Openser and I
> have to change those back to what they were and then send it to the DID
> provider.

> Please help me set this straight, can it be done ? Maybe not ? Maybe
> Yes...

Use the module "uac" in Kamailio to change the From user.


-- 
Iñaki Baz Castillo




More information about the Users mailing list