[asterisk-dev] chan_sip.c (1.6.2.11 & 1.8.0-beta3) vs "buf"

Jared Mauch jared at puck.nether.net
Thu Aug 26 14:48:14 CDT 2010


	While looking at some of the q.931 relay items, it appears
that it's easy for the following code path to be reached without
any data being populated in the 'buf' variable:

(line ~26100 in 1.6.2.11 | 28479 in 1.8.0-beta3 channels/chan_sip.c)
        ast_log(LOG_WARNING, "Unable to parse INFO message from %s. Content %s\n", p->callid, buf);

It would seem that what may be desired is to print the full req->data
or something else instead of "buf".

	- jared

-- 
Jared Mauch  | pgp key available via finger from jared at puck.nether.net
clue++;      | http://puck.nether.net/~jared/  My statements are only mine.



More information about the asterisk-dev mailing list