[asterisk-dev] [Code Review] Check for ANY to place calls on hold for SIP

mjordan reviewboard at asterisk.org
Mon Oct 10 12:53:27 CDT 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1504/
-----------------------------------------------------------

Review request for Asterisk Developers and Tzafrir Cohen.


Summary
-------

As reported, Asterisk (1.6.2 and prior) would previously place calls on hold if an INVITE was received with c=0.0.0.0.  This fails in 1.8 and later, as we only check to see if the various addresses are null.

This patch resolves this by checking if the addresses received are null or any.  This is done using the netsock2 library of functions, so it should be compatible with both IPv4 and IPv6.


This addresses bug ASTERISK-18086.
    https://issues.asterisk.org/jira/browse/ASTERISK-18086


Diffs
-----

  /branches/1.8/channels/chan_sip.c 340135 

Diff: https://reviewboard.asterisk.org/r/1504/diff


Testing
-------

Tested using a cobbled together SIPp scenario, which appeared to behave as expected.  Tested also under the Asterisk TestSuite, which continued to work as expected.


Thanks,

mjordan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20111010/87bf1a85/attachment-0001.htm>


More information about the asterisk-dev mailing list