Getting notified on RTP/RTCP address changes

M
mscdexdotexe
Mon, Mar 26, 2018 9:17 AM

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?

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?
LM
Landman, Marcel (Comms & Control Solutions)
Thu, Mar 29, 2018 2:46 PM

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@lists.pjsip.org on behalf of mscdexdotexe mscdex@mscdex.net
Sent: 26 March 2018 10:17:12
To: pjsip@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 herehttps://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

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@lists.pjsip.org> on behalf of mscdexdotexe <mscdex@mscdex.net> Sent: 26 March 2018 10:17:12 To: pjsip@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
M
mscdexdotexe
Fri, Mar 30, 2018 8:19 PM

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@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@lists.pjsip.org on behalf of mscdexdotexe <
mscdex@mscdex.net>
Sent: 26 March 2018 10:17:12
To: pjsip@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@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

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@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@lists.pjsip.org> on behalf of mscdexdotexe < > mscdex@mscdex.net> > *Sent:* 26 March 2018 10:17:12 > *To:* pjsip@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@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >
LM
Landman, Marcel (Comms & Control Solutions)
Fri, Apr 6, 2018 3:08 PM

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@lists.pjsip.org on behalf of mscdexdotexe mscdex@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@capita.co.ukmailto:Marcel.Landman@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@lists.pjsip.orgmailto:pjsip-bounces@lists.pjsip.org> on behalf of mscdexdotexe <mscdex@mscdex.netmailto:mscdex@mscdex.net>
Sent: 26 March 2018 10:17:12
To: pjsip@lists.pjsip.orgmailto:pjsip@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 herehttps://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@lists.pjsip.orgmailto:pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

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@lists.pjsip.org> on behalf of mscdexdotexe <mscdex@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@capita.co.uk<mailto:Marcel.Landman@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@lists.pjsip.org<mailto:pjsip-bounces@lists.pjsip.org>> on behalf of mscdexdotexe <mscdex@mscdex.net<mailto:mscdex@mscdex.net>> Sent: 26 March 2018 10:17:12 To: pjsip@lists.pjsip.org<mailto:pjsip@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@lists.pjsip.org<mailto:pjsip@lists.pjsip.org> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org