< Previous by Date Date Index Next by Date >
  Thread Index  

Re: [reSIProcate] [reSIProcate-commit] resiprocate 8777 sgodin: -modified the Windows implementations of determineSourceInterface to not


oh, I think I have been waiting this update for 3 years, I ever reported this problem on 2007-7-3 as following:

Question:

I encounter register problem when my proxy server(192.168.101.28) is the same machine that my UA running:
if I write mDum.addTransport(resip::UDP, ListenPort); then register is ok
but if I write mDum.addTransport(resip::UDP, ListenPort, V4, Data("192.168.101.28"); then register got 503 No matching transport found

Answer:

This is because when you bind the transport to 192.168.101.28 it is binding to your NIC only and not to the loopback address.  When sending data to the same machine resip wants to use the loopback address.

 

Scott



2010/6/13 <svn@xxxxxxxxxxxxxxx>
Projectresiprocate
New Revision8777
Committersgodin (Scott Godin)
Date2010-06-13 10:39:35 -0500 (Sun, 13 Jun 2010)

Log

 -modified the Windows implementations of determineSourceInterface to not 
  return the loopback adapter (127.0.0.1).  This is accomplished by checking
  first if the address is a local address.  If it is, then we don't call getBestRoute or
  getBestInterfaceEx (since they will just return the loopback address), we just use 
  the address itself as the source.  This change helps in scenarios when a resip UA and
  proxy are run on the same machine.  The registration will no longer contain the 
  loopback address as the Contact URI.  It also helps when you bind the stack
  to a particular interface card, then try to route a SIP message to the same machine.
  In this case the stack would fail to find a transport, since getBestRoute would 
  return the Loopback interface, and we don't have a transport bound to this interface.
 

Modified:


_______________________________________________
resiprocate-commit mailing list
resiprocate-commit@xxxxxxxxxxxxxxx
https://list.resiprocate.org/mailman/listinfo/resiprocate-commit



--
Best Regards

Maodong Hu