[PJSIP] Sending a stateless request.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, pj_status_t status; pjsip_tx_data *tdata; pj_str_t target; pj_str_t from; pj_str_t to; pj_str_t contact; pj_str_t cid; pjsip_method method;  target = pj_str("sip:127.0.0.1:5061"); from = pj_str("sip:sipp at 127.0.0.1:5065"); to = pj_str("sip:sipp at 127.0.0.1:5061"); contact = pj_str("sip:sipp at 127.0.0.1:5065"); cid = pj_str(list_sdp_context->cid); pjsip_method_set(&method, PJSIP_INVITE_METHOD);   //Creating data for the mn status = pjsip_endpt_create_request(global.endpt,     &method,     &target,     &from,     &to,     &contact,     &cid,     1,     NULL,     &tdata); if (status != PJ_SUCCESS) {  app_perror("Error creating request", status);  return PJ_TRUE;     }  status = pjsip_endpt_send_request_stateless(global.endpt,     &tdata,     NULL,     NULL);     if (status != PJ_SUCCESS) {  app_perror("Error forwarding request", status);  return PJ_TRUE;     }   I'm trying to send a stateless request with this code, but I have an error : stateful_proxy-i686-pc-linux-gnu: ../src/pjsip/sip_util.c:720: pjsip_process_route_set: Assertion `tdata->msg->type == PJSIP_REQUEST_MSG' failed.Abandon What can I do to send statelessly a request without managing route ?I don't want route in my final response. Thanks by advance for yours responses. C?dric.
_________________________________________________________________
T?l?phonez gratuitement ? tous vos proches avec Windows Live Messenger? !? T?l?chargez-le maintenant !
http://www.windowslive.fr/messenger/1.asp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080905/46ac41fa/attachment.html 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux