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

[reSIProcate] "Add transport" confusion... please help...


Hi,

According to "dum/test" code,  basicRegister.cxx calls this method...

  clientDum.addTransport(UDP, 15066);

Add transport is defined below.  Note above,  only two parameters
are passed.  protocol, and Version.

But, as you see below, there are other parameters "addTransport"
takes, like....  ipInterface (whatever that is),  sipDomainname,
and privateKeyPassPhrase,  etc.

DialogUsageManager::addTransport( TransportType protocol,
                                 int port,
                                 IpVersion version,
                                 const Data& ipInterface,
                                 const Data& sipDomainname, // only used
                                 const Data& privateKeyPassPhrase,
                                 SecurityTypes::SSLType sslType)

Because of this,  my logs say...

INFO | 1125908400 | SipPhone | RESIP:TRANSPORT | /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/UdpTransport.cxx:30 | Creating UDP transport host= port=5060 ipv4=1

note,  host is blank....   Am I supposed to pass it in like this?

  clientDum.addTransport(UDP, 15066, "whitephone.com");

I presume this is the remote host,  IE: the SIP proxy or server,  right?
Why does the test code leave that out? And if I leave it out, then how is the
test code getting tested if we don't specify the destination host I wish
to register with?