[pjsip] Getting notified on RTP/RTCP address changes

Landman, Marcel (Comms & Control Solutions) Marcel.Landman at capita.co.uk
Fri Apr 6 11:08:50 EDT 2018

I see. I did not understand your use case. You are talking about the _source_ port. I am not familiar with any SDP attribute that specifies the source port as you are suggesting, nor can I think of any use case where one would care. What are you trying to do?

From: pjsip <pjsip-bounces at lists.pjsip.org> on behalf of mscdexdotexe <mscdex at mscdex.net>
Sent: 30 March 2018 21:19:15
To: pjsip list
Subject: Re: [pjsip] Getting notified on RTP/RTCP address changes

Hello Marcel,

PJSIP automatically adjusts these addresses if it detects a different source address and/or port. This can be disabled with the PJMEDIA_UDP_NO_SRC_ADDR_CHECKING flag, but some SIP clients will use a dummy port in the SDP and then transmit from a different port, so disabling PJSIP's automatic switching behavior is not useful/helpful. There is also nothing I can do about the SIP clients in question, so it would be nice if there was a way to subscribe to these source address/port changes so I can update my application appropriately.

On Thu, Mar 29, 2018 at 10:46 AM, Landman, Marcel (Comms & Control Solutions) <Marcel.Landman at capita.co.uk<mailto:Marcel.Landman at capita.co.uk>> wrote:

you will need to use a packet sniffer to diagnose this type of issue. An application will only receive packets on the ports it is listening on. If you want to change the port your application listens on, you need to use the SIP re-invite process (which exchanges a new SDP)

From: pjsip <pjsip-bounces at lists.pjsip.org<mailto:pjsip-bounces at lists.pjsip.org>> on behalf of mscdexdotexe <mscdex at mscdex.net<mailto:mscdex at mscdex.net>>
Sent: 26 March 2018 10:17:12
To: pjsip at lists.pjsip.org<mailto:pjsip at lists.pjsip.org>
Subject: [pjsip] Getting notified on RTP/RTCP address changes

Is there some way to get notified when the RTP/RTCP address changes in pjsip, for example when pjsip notices a stream coming from a different port number than the original port number from the SDP?

This message has been scanned by Capita’s systems, but if you believe it to be spam then click here<https://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ==> to report this email as spam.

This email is security checked and subject to the disclaimer on web-page: http://www.capita.co.uk/email-disclaimer.aspx

Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip at lists.pjsip.org<mailto:pjsip at lists.pjsip.org>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20180406/5d763136/attachment.html>

More information about the pjsip mailing list