How to config Asterisk20/pjsip direct_media and no re-invite

[endpoint-A]
type=endpoint
transport=transport-udp
context=incoming
disallow=all
allow=g729
allow=ulaw
allow=alaw
direct_media=yes

[endpoint-C]
type=endpoint
transport=transport-udp
disallow=all
allow=g729
allow=ulaw
allow=alaw
direct_media=yes
A                B(Asterisk20/PJSIP)                C
| --------INVITE--------> |                         |
|                         | --------INVITE--------> |
|                         | <-------200 OK--------- |
| <-------200 OK--------- |                         |  The media IP to A is Asterisk's IP
| <-------INVITE--------- |                         |  Asterisk re-INVITEs A and changes the media IP to B's IP

Currently Asterisk will update the media IP through re-INVITE, but sometimes A does not accept re-INVITE.

Is it possible to have Asterisk directly return the media IP address in B, like this

A                B(Asterisk20/PJSIP)                C
| --------INVITE--------> |                         |
|                         | --------INVITE--------> |
|                         | <-------200 OK--------- |
| <-------200 OK--------- |                         |  the media ip is B'ip

Asterisk does not pass through re-INVITEs for this like that, they are independent.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.