Summary:ASTERISK-16028: ARA - error if fields are empty (not NULL)
Reporter:Serge Berney (sberney)Labels:
Date Opened:2010-04-29 03:03:58Date Closed:2010-04-30 11:08:27
Versions:Frequency of
Description:I got this error :

WARNING[27221]: acl.c:383 ast_get_ip_or_srv: Unable to lookup ''
NOTICE[27221]: chan_sip.c:20603 handle_request_register: Registration from '" voipphone1"<sip:voipphone1@>' failed for '' - No matching peer found

This error appeared when field "defaultip" on table sip peers is blank or NULL (set to solve the problem).

It could be great to improve that on chan_sip.c : if a field is blank (or NULL) don't use it.

I experiment problems with fields : 'defaultip', 'permit', 'deny' and 'mask'.

Fields "permit", "deny" and "mask" generate this error message :

WARNING27599 acl.c: Invalid IP address in
ERROR27599 chan_sip.c: Bad ACL entry in configuration line 0 :
Comments:By: Paul Belanger (pabelanger) 2010-04-29 09:09:53

Additional information: http://lists.digium.com/pipermail/asterisk-dev/2010-April/043781.html

By: Serge Berney (sberney) 2010-04-30 01:53:05

Severity isn't high ? Peers are unable to register !

By: Paul Belanger (pabelanger) 2010-04-30 09:07:28

Please try the patch posted in the related issue ASTERISK-1702266.

As for severity, it only represents the 'number of affected people', not how much of a problem it is from the reporter PoV.

By: Serge Berney (sberney) 2010-04-30 10:04:39

Solved by the patch : https://issues.asterisk.org/view.php?id=17266 !