Upgrade 3CX to v18 and get it hosted free!

Asterisk IAX media path

Author image

From a message to Asterisk-Dev from Mark Spencer:

Essentially it works like this (a little simplified):

A -> B “NEW” (A sets up a call to B)
A <- B “ACK” (B acknowledges)
B -> C “NEW” (B sets up call to C)
B <- C “ACK” (C acks)
B <- C “RINGING” (C informs B of ringing if applicable)
A <- B “RINGING” (B informs A of ringing if applicable)
B <- C “ANSWER” (C informs B of answer condition)
A <- B “ANSWER” (B informs A of answer condition)

At this point, there are two calls setup, one from A->B and one from B->C.
Audio is passing both directions via “B”. “B” then decides to complete
the transfer so that “A” and “C” talk directly:

A <- B “TXREQ” (B requests A test connectivity to C)
B -> C “TXREQ” (B requests C test connectivity to A)
A -> C “TXCNT” (A attempts contact with C)
A <- C “TXCNT” (C attempts contact with A)
A <- C “TXACC” (C verifies connectivity with A)
A -> C “TXACC” (A verifies connectivity with C)

Note that if A can’t see C or C can’t see A, this the end… audio
continues to be bridged through B, and the user is none-the-wiser. This
keeps IAX transfer robust across even the penultimately worst routers
(although the ulitimately worst routers crash when you try to send to two
different destinations from the same source).

A -> B “TXREADY” (A informs B that everything looks good)
B <- C “TXREADY” (C informs B that everything looks good)
A <- B “TXREL” (B releases A to talk to C)
B -> C “TXREL” (B releases C to talk to A)

And at this point, the sequence numbers and jitter buffer timers are
reset, and A and C now talk happily ever after until HANGUP do them part.

Was that helpful?

Mark

See also


Article Reviews

Write a Review

Your email address will not be published. Required fields are marked *

Required Field. Minimum 5 characters.

Required Field. Minimum 5 characters, maximum 50.

Required field.There is an error with this field.

Required Field.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

There are no reviews for this article. Be the first one to write a review.
Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.