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

[reSIProcate] Question about addTransport()


I am writing simple test code on windows platform.

Both UAS and UAC are on the same IP 10.0.0.162. The UAS uses port
5060, while UAC uses 5070.

If I ignore IP address, i.e.
dumUAC->addTransport(UDP, 5070);
dumUAS->addTransport(UDP, 5060);
everything works out fine.

However if i explicitly set the IP, i.e.
dumUAC->addTransport(UDP, 5070, V4 Data("10.0.0.162",10));
UAC always shows following debug messages, which indicates a transport
layer failure.

DEBUG | 20050223-134253.411 |  | RESIP:TRANSACTION | 1992 |
TimerQueue.cxx:89 | Adding timer: Timer A tid=5539fe022b3f0b3a ms=500
DEBUG | 20050223-134253.427 |  | RESIP:TRANSPORT | 1992 |
TransportSelector.cxx:627 | Looked up source for destination: [ V4
10.0.0.162:5060 UDP connectionId=0 ] -> [ V4 127.0.0.1:0 UDP
connectionId=0 ] sent-by= sent-port=0
DEBUG | 20050223-134253.427 |  | RESIP:TRANSPORT | 1992 |
TransportSelector.cxx:885 | findTransport([ V4 127.0.0.1:0 UDP
connectionId=0 ])
DEBUG | 20050223-134253.442 |  | RESIP:TRANSPORT | 1992 |
TransportSelector.cxx:933 | Exact interface / Specific port: [[ V4
10.0.0.162:5070 UDP connectionId=0 ] -> 012087A8]
DEBUG | 20050223-134253.442 |  | RESIP:TRANSPORT | 1992 |
TransportSelector.cxx:934 | Any interface / Specific port: []
DEBUG | 20050223-134253.458 |  | RESIP:TRANSPORT | 1992 |
TransportSelector.cxx:935 | Exact interface / Any port: [[ V4
10.0.0.162:5070 UDP connectionId=0 ] -> 012087A8]
DEBUG | 20050223-134253.458 |  | RESIP:TRANSPORT | 1992 |
TransportSelector.cxx:936 | Any interface / Any port: []
WARNING | 20050223-134253.474 |  | RESIP:TRANSPORT | 1992 |
TransportSelector.cxx:938 | Can't find matching transport [ V4
127.0.0.1:0 UDP connectionI
d=0 ]
INFO | 20050223-134253.474 |  | RESIP:TRANSPORT | 1992 |
TransportSelector.cxx:774 | tid=5539fe022b3f0b3a failed to find a
transport to [ V4 10.0.0.162:5060 UDP connectionId=0 ]
INFO | 20050223-134253.489 |  | RESIP:TRANSACTION | 1992 |
TransactionState.cxx:1229 | Try sending request to a different dns
result
INFO | 20050223-134253.505 |  | RESIP:TRANSACTION | 1992 |
TransactionState.cxx:1212 | Ran out of dns entries for 10.0.0.162.
Send 503
DEBUG | 20050223-134253.505 |  | RESIP | 1992 | Helper.cxx:272 |
Helper::makeResponse(SipReq:  INVITE UAS@xxxxxxxxxx:5060
tid=5539fe022b3f0b3a cseq=IN
VITE contact=UAC / 1 from(tu) code=503 reason=
DEBUG | 20050223-134253.521 |  | RESIP | 1992 | SipStack.cxx:301 |
RECV: SipResp: 503 tid=5539fe022b3f0b3a cseq=INVITE / 1 from(wire)
INFO | 20050223-134253.521 |  | RESIP:DUM | 1992 |
DialogUsageManager.cxx:663 | Got: SipResp: 503 tid=5539fe022b3f0b3a
cseq=INVITE / 1 from(wire)
DEBUG | 20050223-134253.536 |  | RESIP:DUM | 1992 |
DialogUsageManager.cxx:668 | DialogUsageManager::process: SipResp: 503
tid=5539fe022b3f0b3a cseq=I
NVITE / 1 from(wire)
DEBUG | 20050223-134253.552 |  | RESIP:DUM | 1992 |
DialogUsageManager.cxx:1202 | DialogUsageManager::processResponse:
SIP/2.0 503 Service Unavailable


Any idea? Thanks.