[OpenSIPS-Users] CRITICAL <is_contact_registered>

Dragomir Haralambiev goup2010 at gmail.com
Tue Nov 3 21:19:21 CET 2015


Now worked fine!
Thanks for your help!

BR

2015-11-03 17:35 GMT+02:00 Ionut Ionita <ionutionita at opensips.org>:

> Hi,
>
> If you look into the documentation[1], the comma is not optional. So you
> should call something like:
> if (!is_contact_registered("location","$fu",,)) {
> ....
>
> Regards,
> Ionut Ionita
>
> [1]
> http://www.opensips.org/html/docs/modules/2.2.x/registrar.html#id294862
>
> On 02.11.2015 21:58, Dragomir Haralambiev wrote:
>
>> Hello,
>>
>> I try to test latest version: opensips 2.2-dev.
>>
>> When use:
>> if (!registered("location","$fu")) {
>> ....
>> I receive follow message:
>> WARNING:registrar:registered: Deprecated! Use is_contact_registered()
>> instead!
>>
>> when use:
>> if (!is_contact_registered("location","$fu")) {
>> .....
>>
>> I receive :
>> CRITICAL:core:yyerror: parse error in config file /opensips.cfg, unknown
>> command <is_contact_registered>, missing loadmodule?
>>
>> Regards,
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>
> _______________________________________________
> 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/20151103/ae3236e1/attachment.htm>


More information about the Users mailing list