[asterisk-users] chan_sip.c: Failed to parse contact info
Leif Neland
leifn at neland.dk
Wed Mar 16 12:10:55 CDT 2011
Den 19-01-2011 00:19, Nick Ustinov skrev:
> Hello!
>
> I have just upgraded to asterisk 1.8.2.1 and see some weird messages
> in log when client tries to register:
>
> [2011-01-19 00:52:47] WARNING[25624] chan_sip.c: Failed to parse contact info
> [2011-01-19 00:52:50] NOTICE[25624] chan_sip.c: Peer '0010101' is now
> UNREACHABLE! Last qualify: 105
> [2011-01-19 00:53:03] VERBOSE[25624] chan_sip.c: -- Registered SIP
> '0010101' at 78.84.202.65:37891
>
Could it be because single_binding_found is not initialized to zero?
in chan_sip.c
static enum parse_register_result parse_register_contact(...
...
int wildcard_found = 0;
int single_binding_found;
...
if (!strcasecmp(curi, "*")) {
wildcard_found = 1;
} else {
single_binding_found = 1;
}
if (wildcard_found && (ast_strlen_zero(expires) ||
expire != 0 || single_binding_found)) {
/* Contact header parameter "*" detected, so
punt if: Expires header is missing,
* Expires value is not zero, or another
Contact header is present. */
return PARSE_REGISTER_FAILED;
}
More information about the asterisk-users
mailing list