[OpenSIPS-Users] redirect to IVRs

Saúl Ibarra saghul at gmail.com
Wed Aug 12 08:37:12 CEST 2009


IIRC routing based on the To header is not recommended, you should use
the RURI instead.

To alter the From header you could use the uac_replace_from function
from the uac module.

Regards,


2009/8/12, Gabriel Bermudez <elgabo81 at gmail.com>:
> 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.
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>

-- 
Enviado desde mi dispositivo móvil

/Saúl
http://www.saghul.net | http://www.sipdoc.net



More information about the Users mailing list