SDP in reply to reinvite

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

 



Hello list,

We have a problem here with metaswitch sending my app a reinvite every 15
minutes. The problem is, they send an SDP offer in the reinvite, but if they
don't receive an SDP body back in the 200 OK reply, they hang up. As far as
I know, this breaks RFC compliance, but they're not going to change
anything.

So, what's the correct way to force an SDP in the reply? I've set up an
on_rx_offer() callback, and I tried to do something like this:

void call_on_rx_offer(pjsip_inv_session *inv, const pjmedia_sdp_session
*offer) {
    pj_status_t status;
    const pjmedia_sdp_session *active_local;
    pjmedia_sdp_neg_get_active_local(inv->neg, &active_local);
    status = pjsip_inv_set_sdp_answer(inv, active_local);
}

But this causes pjsip to try to re-attach the transport again, causing an
assert.

What's the "correct" way to go about this?

Thanks in advance!
-Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090624/cfb466bb/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