[pjsip] Repeated MESSAGE packets

Nuno Costa ncosta at wit-software.com
Thu May 29 04:44:49 EDT 2008


Hi,

I'm having a problem using PJSIP to receive MESSAGE packets.
When I'm using a low-bandwidth network (like 3G, for instance) and 
multiple MESSAGE packets are transmitted, I'm receive multiple events 
for the same packet.
Should this re-transmissions be detected by the stack, preventing this?

## CODE #####################################
if (pjsip_method_cmp(&rdata->msg_info.msg->line.req.method, 
&pjsip_message_method) == 0) {

        /* Should not have any transaction attached to rdata. */
        PJ_ASSERT_RETURN(pjsip_rdata_get_tsx(rdata) == NULL, PJ_FALSE);

        /* Should not have any dialog attached to rdata. */
        PJ_ASSERT_RETURN(pjsip_rdata_get_dlg(rdata) == NULL, PJ_FALSE);

        // Reply with 200 OK
        pjsip_endpt_respond_stateless(SIPEngine::instance->sip_endpt, 
rdata, PJSIP_SC_OK, NULL, NULL, NULL);
## CODE #####################################

Best regards,
Nuno Costa

-- 
=========================================
Nuno Costa
Senior Engineer
WIT-Software Lda.
Coimbra (Portugal), San Jose (California)
Phone : +351.239.801030
Email : nuno.costa at wit-software.com 
Web: http://www.wit-software.com
=========================================

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080529/49377a9f/attachment.html>


More information about the pjsip mailing list