Re: PJSUA-LIB - cannot get remote sdp

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

 



Hi Johan,

 

OK, that will do.

 

Thanks,

 

Nenad

 

From: pjsip [mailto:pjsip-bounces@xxxxxxxxxxxxxxx] On Behalf Of JOHAN LANTZ
Sent: Wednesday, February 22, 2017 1:50 AM
To: pjsip list
Subject: Re: [pjsip] PJSUA-LIB - cannot get remote sdp

 

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
Reply-To: pjsip list
Date: Tuesday, 21 February 2017 at 20:57
To: pjsip list
Subject: Re: [pjsip] PJSUA-LIB - cannot get remote sdp

 

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
Sent: Friday, February 17, 2017 2:04 AM
To: pjsip list
Subject: Re: [pjsip] PJSUA-LIB - cannot get remote sdp

 

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
Reply-To: pjsip list
Date: Thursday, 16 February 2017 at 22:03
To: "pjsip@xxxxxxxxxxxxxxx"
Subject: [pjsip] PJSUA-LIB - cannot get remote sdp

 

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

[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