On 02/18/2011 03:57 PM, Brian Artigas wrote:
Hello,
I have a provider that requires me to prefix every call with a technical
prefix.
For example a call to 15615551212 would have to be prepended with
12345#15615551212
Below is a code snippet that detects a 10 digit phone number prefixed
with a 1 and strips the 1.
if (uri =~ "^sip:1[0-9]{10}@")
{
xlog("L_INFO", "route - found a local/ld call with a 1 prefixed -
removing [$fu/$tu/$ru/$ci]\n");
strip(1);
}
How would I go about adding 12345# to the given uri?
Just do prefix('12345#');
http://www.opensips.org/Resources/DocsCoreFcn16#toc114
Regards,
--
Saúl Ibarra Corretgé
AG Projects
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users