Why do you think they breaks RFC? It depents on UA implementation how to handle reInvite. Maybe ask your provider use another keep-alive method like UPDATE without SDP. regards, Gang On Wed, Jun 24, 2009 at 11:19 PM, Mark Webster <mark.webster+pjsip at gmail.com<mark.webster%2Bpjsip at gmail.com> > wrote: > 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 > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090625/8f8e62e0/attachment.html>