[asterisk-dev] [Code Review] Properly route responses according to the Via headers in the request

Matthew Nicholson reviewboard at asterisk.org
Wed Dec 22 17:39:58 UTC 2010

This is an automatically generated e-mail. To reply, visit:

(Updated 2010-12-22 11:39:58.033661)

Review request for Asterisk Developers.


Attempted to make the 'description' and 'testing done' sections clearer.

Summary (updated)

This patch makes asterisk respect the Via headers in a request when responding to the request. Without this patch, the request is always routed back to the address the initial request was received from (unless nat=yes).  This can cause problems if the initial request comes through a proxy and additional requests (such as INFO dtmf tones) come from a different proxy.


  /branches/1.4/channels/chan_sip.c 299447 

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

Testing (updated)

Briefly tested using openser as a proxy and another asterisk machine as the requester.  I sent and invite, then some INFO DTMF messages.  Without the patch, our asterisk machine sends all responses to the INFO requests to the proxy, with the patch they are properly routed to the requesting asterisk machine.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20101222/9dbb762e/attachment.htm>

More information about the asterisk-dev mailing list