alias_db_find() and $ru

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

alias_db_find() and $ru

Thomas Gelf
While playing around with alias_db_find (great feature!) I discovered
that the following is fine:

  if (alias_db_find("dbaliases", "$var(vmuri)", "$var(vmuser)", "rd"))

This variant:

  if (alias_db_find("dbaliases", "$var(vmuri)", "$ru", "rd"))

passes config file check, but startup fails (showing lot of garbage
and special chars):

  ERROR:alias_db:find_fixup: PVAR <> ... AVP ... VAR
  ERROR:<lotsofstrangechars>

Cheers,
Thomas Gelf


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: alias_db_find() and $ru

Bogdan-Andrei Iancu
Hi Thomas,

that is true - I made a fix on SVN - could you test again, please.

Thank and regards,
Bogdan

Thomas Gelf wrote:

> While playing around with alias_db_find (great feature!) I discovered
> that the following is fine:
>
>   if (alias_db_find("dbaliases", "$var(vmuri)", "$var(vmuser)", "rd"))
>
> This variant:
>
>   if (alias_db_find("dbaliases", "$var(vmuri)", "$ru", "rd"))
>
> passes config file check, but startup fails (showing lot of garbage
> and special chars):
>
>   ERROR:alias_db:find_fixup: PVAR <> ... AVP ... VAR
>   ERROR:<lotsofstrangechars>
>
> Cheers,
> Thomas Gelf
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>  


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users