Re: RTP address learning and timing problem

David Cunningham <[email protected]>
Newsgroups gmane.comp.telephony.pbx.asterisk.user
Message-ID <CAHGbP-_4EOt3SemYqprFdHgX3FrW5eWq434bX+PiFkxPK+DvXw@mail.gmail.com>
Hello,

Does anyone know if one of the "strictrtp" options disables RTP learning?
As far as I can tell from the documentation the values "no" and "seqno" are
more permissive in allowing other sources rather than less, but I thought
I'd check.

Thanks.


On Thu, 23 Feb 2023 at 12:13, David Cunningham <[email protected]>
wrote:

> Hello,
>
> We have a system that interoperates with an external service, so that the
> basic call flow is:
>
> PSTN origination -> Asterisk A -> External service -> Asterisk B
>
> Initially the SDP from the external service tells the two Asterisks to
> send RTP directly to each other. Part way through the call the external
> service sends re-INVITEs both Asterisks to change the address for audio to
> itself, but this fails to work intermittently. The problem seems to be one
> of timing.
>
> If there's no RTP between the two re-INVITEs then it works fine, and both
> Asterisks send future RTP to the external service as instructed.
>
> The problem is if RTP is transmitted/received in the fraction of the
> second between the two re-INVITEs. If Asterisk A receives the re-INVITE
> first, and then receives RTP from Asterisk B (which hasn't yet received its
> re-INVITE), then it re-learns the media address of Asterisk B and sends
> audio there instead of the new address. Asterisk B gets the second
> re-INVITE with the new media address, but soon re-learns the media address
> of Asterisk A because it's getting RTP from it.
>
> Note we have "canreinvite = no" in sip.conf, but I don't think that's
> relevant to the problem.
>
> Can anyone suggest how to prevent this problem? Is it possible to turn off
> learning the media address per call or per peer?
>
> Thanks for your help.
>
> --
> David Cunningham, Voisonics Limited
> http://voisonics.com/
> USA: +1 213 221 1092
> New Zealand: +64 (0)28 2558 3782
>


-- 
David Cunningham, Voisonics Limited
http://voisonics.com/
USA: +1 213 221 1092
New Zealand: +64 (0)28 2558 3782

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.