[reSIProcate] requestline header
heather jiang
heather37j at yahoo.com
Tue Mar 27 13:52:37 CDT 2007
Hi, I found that after dynamic recast, my sip message's h_RequestLine is lost, however, the h_To and h_From are still there, anyone has idea why it happens. Here is a bit detail:
TransactionMessage* message = controller.mStateMacFifo.getNext();
SipMessage* sip = dynamic_cast<SipMessage*>(message);--------------------------(1)
printf("aftercast:Looking up ports for %d\n", sip->header(h_RequestLine).uri().port()); --error happens.
however,
printf("target port:%d \n", sip->header(h_To).uri().port);---okay
And I have created the header h_RequestLine like this:
MethodTypes method=SUBSCRIBE;
RequestLine rLine(method);
rLine.uri() = targetAor.uri();
request.header(h_RequestLine) = rLine;
request.header(h_To)=targetAor;
where targetAor is:
NameAddr targetAor;
targetAor.uri().scheme() = "sip";
targetAor.uri().user() =Data("...");
targetAor.uri().host() =Data("...");
targetAor.uri().port() = port;
targetAor.uri().param(p_transport) = "udp";
Why h_requestLine is lost but h_To is still there at *sip message at (1) above?Thank you!
---------------------------------
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20070327/99923561/attachment.htm>
More information about the resiprocate-devel
mailing list