< Previous by Date | Date Index | Next by Date > |
< Previous in Thread | Thread Index | Next in Thread > |
This should work. Can you provide a
code sample and a trace at STACK level? From: resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Mehul Jain I am trying to use the resiprocate stack
to send INVITE's over TCP. The transport type is determined on the
basis of the value set in the Request-URI. The default transport is
scheme dependent. For sip:, it is UDP. For sips:, it is TCP. Im using
sip, so need to explicitly set transport=TCP in the request-uri. The steps Ive followed are : a. Add TCP transport to
the stack.
g_sipStack->addTransport(TCP, g_sipPort); b. Use TCP as the
transport type in the required headers (To, From, Contact) c. I ve used
Helper::makeInvite to build the INVITE.
Helper::makeInvite( dest, from, contact) The stack still tries to send the message
via UDP. Debugging --------------- * Helper::MakeInvite
uses Helper::MakeRequest in which the RequestLine is determined using the
target.uri. * When I send the
message, the TransportSelector calls "mDns.lookup(result,
msg->header(h_RequestLine).uri());" that further calls
"DnsResult::lookup" which returns UDP since the condition "if
(uri.exists(p_transport))" in that member function evaluates to false and
it therefore uses the default type of UDP. I can send the sample code as well. Any
pointers as to what Im missing. The log output is as follows : DEBUG | 20051020-143206.511 | UAC | RESIP:TRANSPORT
| 6124 | ConnectionBase.cxx:29 | ConnectionBase::ConnectionBase, no params:
00FD7E08 Thanks, Mehul. |