Hi Johan, OK, that will do. Thanks, Nenad From: pjsip [mailto:pjsip-bounces@xxxxxxxxxxxxxxx]
On Behalf Of JOHAN LANTZ Maybe you can use on_call_state or on_call_tsx_state then check the content of the pjsip_event. Something like: if (call_info.state
== PJSIP_INV_STATE_CONNECTING && call_info.role
== PJSIP_ROLE_UAC) { char* sdp_body_as_string = e->body.rx_msg.rdata->msg_info.msg_buf;
//now just parse the text string for your port or build a proper sdp using the pjsip tools and work with that one } I do some manual processing of a sdp here: Maybe it can help you get started. Johan From: pjsip on behalf of Nenad Milidrag Hi Johan, Thanks for the message. I didn’t formulated my questions well, I need IP:port that is in SDP answer. Callback you mentioned works well if you need to modify SDP before it is send, offer or answer, but if you need to check received
SDP answer then there is no callback for that at least I don’t see anything. Perhaps there is still a way to get it? Thanks, Nenad From: pjsip [mailto:pjsip-bounces@xxxxxxxxxxxxxxx]
On Behalf Of JOHAN LANTZ void (*on_call_sdp_created)(pjsua_call_id call_id, pjmedia_sdp_session *sdp, pj_pool_t *pool,
const pjmedia_sdp_session *rem_sdp);
/Johan From: pjsip on behalf of Nenad Milidrag Hi all, If I am using PJSUA-LIB API is there an easy way to get local and remote SDP. I really need media address and port from it. From what I see I have to move do different interface which is one level below (PJSIP,
PJMEDIA, and PJNATH) and lose all benefits provided by PJSUA-LIB. Trying to avoid moving one level lower since just managing registrations seems to be much harder.
Thanks, Nenad |
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org