Re: [reSIProcate] requestline header
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
|
Attachment:
smime.p7s
Description: S/MIME cryptographic signature