[OpenSIPS-Users] [Kamailio-Users] Question about redirect if user is not online
Andrew Pogrebennyk
andrew.pogrebennyk at portaone.com
Mon Sep 22 15:32:22 CEST 2008
Ali,
Check the avpops module:
http://www.opensips.org/html/avpops.html
You can put the call forwarding settings into the usr_preference table:
username: your_subscriber_id
attribute: callfwd
type: 0
value: sip:userid at asterisk.domain.com
And then use several simple statements to push this AVP to the SIP
packet changing the original Request-URI to the new one.
if(avp_db_load("$ruri/username","s:callfwd")){
avp_pushto("$ruri","s:callfwd");
route(1);
exit;
};
The following link has all the variables you can assign the values to
marked in red:
http://www.opensips.org/index.php?n=Resources.DocsCoreVar
Hope it helps.
Ali Jawad wrote:
> Hi
> I got the below fixed, however I do need to achieve something else as
> well. When I forward the call to asterisk I need asterisk to forward it
> in turn to my cellphone number. Where an how should I re-write the DID
> number of my SIP packet that acts as the destination URI to my cell
> phone number.
--
Sincerely,
Andrew Pogrebennyk
More information about the Users
mailing list