[Asterisk-Users] chan_sccp release 20050725

asterisk_on_oelf asterisk at oelf.net
Tue Jul 26 07:02:12 MST 2005


That's strange.
With your code my asterisk crashs everytime a new device tries to register. I
thought, that's because ast_db_get returns nothing or NULL.
(-1 will be returned if dbinit() fails.)


Jens

> Nope, the ast_db_get return -1 on failure.
> The code is ok.
>
> Sergio
>
> asterisk_on_oelf ha scritto:
>
>>
>> Is it possible, that you mean:
>>
>> "if (!ast_db_get("SCCP", d->id, result, sizeof(result))) {"
>>
>> instead of
>>
>> "if (ast_db_get("SCCP", d->id, result, sizeof(result))) {"
>>
>> in line 222 sccp_utils.c
>
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users





More information about the asterisk-users mailing list