|
reSIProcate/stack
9694
|
#include "resip/stack/AbandonServerTransaction.hxx"#include "resip/stack/CancelClientInviteTransaction.hxx"#include "resip/stack/TerminateFlow.hxx"#include "resip/stack/EnableFlowTimer.hxx"#include "resip/stack/ZeroOutStatistics.hxx"#include "resip/stack/PollStatistics.hxx"#include "resip/stack/ConnectionTerminated.hxx"#include "resip/stack/KeepAlivePong.hxx"#include "resip/stack/DnsInterface.hxx"#include "resip/stack/DnsResultMessage.hxx"#include "resip/stack/DnsResult.hxx"#include "resip/stack/Helper.hxx"#include "resip/stack/MethodTypes.hxx"#include "resip/stack/SipMessage.hxx"#include "resip/stack/SendData.hxx"#include "resip/stack/SipStack.hxx"#include "resip/stack/StatisticsManager.hxx"#include "resip/stack/TimerMessage.hxx"#include "resip/stack/TransactionController.hxx"#include "resip/stack/TransactionMessage.hxx"#include "resip/stack/TransactionState.hxx"#include "resip/stack/TransactionTerminated.hxx"#include "resip/stack/TransportFailure.hxx"#include "resip/stack/TransactionUserMessage.hxx"#include "resip/stack/TransportSelector.hxx"#include "resip/stack/TransactionUser.hxx"#include "resip/stack/TuSelector.hxx"#include "resip/stack/InteropHelper.hxx"#include "resip/stack/KeepAliveMessage.hxx"#include "rutil/DnsUtil.hxx"#include "rutil/Logger.hxx"#include "rutil/MD5Stream.hxx"#include "rutil/Socket.hxx"#include "rutil/Random.hxx"#include "rutil/WinLeakCheck.hxx"
Go to the source code of this file.
Defines | |
| #define | RESIPROCATE_SUBSYSTEM Subsystem::TRANSACTION |
Functions | |
| static const Tuple | simpleTupleForUri (const Uri &uri) |
| #define RESIPROCATE_SUBSYSTEM Subsystem::TRANSACTION |
Definition at line 44 of file TransactionState.cxx.
Definition at line 2401 of file TransactionState.cxx.
References resip::Symbols::DefaultSipPort, resip::Symbols::DefaultSipsPort, resip::Uri::exists(), resip::Uri::host(), resip::ParserCategory::param(), resip::Uri::port(), resip::TCP, resip::TLS, resip::Tuple::toTransport(), resip::UDP, and resip::UNKNOWN_TRANSPORT.
Referenced by resip::TransactionState::sendCurrentToWire().
{
const Data& host = uri.host();
int port = uri.port();
resip::TransportType transport = UNKNOWN_TRANSPORT;
if (uri.exists(p_transport))
{
transport = Tuple::toTransport(uri.param(p_transport));
}
if (transport == UNKNOWN_TRANSPORT)
{
transport = UDP;
}
if (port == 0)
{
switch(transport)
{
case TLS:
port = Symbols::DefaultSipsPort;
break;
case UDP:
case TCP:
default:
port = Symbols::DefaultSipPort;
break;
// !ah! SCTP?
}
}
return Tuple(host,port,transport);
}

1.7.5.1