[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