[OpenSIPS-Users] redirect to IVRs

Gabriel Bermudez elgabo81 at gmail.com
Wed Aug 12 03:44:45 CEST 2009


hi list,

I'm using opensips as a redirect server based on the TO or R-URI 
header.  If the user is in the IVR group the proxy will respond with a 
redirect.

(is_user_in("To", "ivr")) {
     xlog("The call will be redirect to calling card server");
     rewritehostport("x.x.x.x:5060");
     sl_send_reply("302", "Moved Temporarily");
     exit;
}

but I would also want to tell the UAC (a PSTN gateway) to change the 
FROM header from a local number to a international number.  Is this 
possible?  If not, which is the best way to handle it if the IVR needs 
to recognize an international CallerID and must be easily scalable (my 
idea is to use the dispatcher module and stateless transactions for that)

Thanks for you answers.




More information about the Users mailing list