mirror of https://github.com/asterisk/asterisk
https://origsvn.digium.com/svn/asterisk/trunk ........ r193387 | dvossel | 2009-05-08 15:32:51 -0500 (Fri, 08 May 2009) | 7 lines TCP not matching valid peer. find_peer() does not find a valid peer when using pvt->recv as the sockaddr_in argument. Because of the way TCP works, the port number in pvt->recv is not what we're looking for at all. There is currently only one place that find_peer searches for a peer using the sockaddr_in argument. If the peer is not found after using pvt->recv (works for UDP since the port number will be correct), a temp sockaddr_in struct is made using the Contact header in the sip_request. This has the correct port number in it. Review: http://reviewboard.digium.com/r/236/ ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@193390 65c4cc65-6c06-0410-ace0-fbb531ad65f31.6.2
parent
bc623d1bbb
commit
6fa173dd65
Loading…
Reference in new issue