[reSIProcate] requestline header
Byron Campen
bcampen at estacado.net
Tue Mar 27 14:13:04 CDT 2007
Are you positive this is the same message? It seems like a response
could be coming off that fifo. Try inspecting h_StatusLine if sip-
>isResponse() is true.
Best regards,
Byron Campen
> 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.
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel at list.resiprocate.org
> https://list.resiprocate.org/mailman/listinfo/resiprocate-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20070327/1cb17351/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2423 bytes
Desc: not available
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20070327/1cb17351/attachment.bin>
More information about the resiprocate-devel
mailing list