[OpenSIPS-Users] How to use a local variable as regex string

Brett Nemeroff brett at nemeroff.com
Thu Jun 11 16:03:24 CEST 2009


Use the dialplan module for this.. it's *great* :)-Brett



On Thu, Jun 11, 2009 at 7:52 AM, Eli Hayun <elihay at savion.huji.ac.il> wrote:

> Hi
> I am trying to add my dial plan and I did the following:
>
> [
>
> $var(dp_local) = "^sip:9.{3}@";
>
> if(uri=~$var(dp_local)) {
>        ... act as a local call
> }
>
> ]
>
> I am getting a syntax error because the sip parser expect to get a
> string . I do not want to use hard-code string. Is there a way to do
> what I want?
>
> Best regards
>
> Eli
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20090611/4733a66c/attachment.htm 


More information about the Users mailing list