Force transmit media packets

Is it possible to force Asterisk to start transmitting media packets as soon as the call is answered?

It can be silence, or whatever. I need it, so that the NAT connection is created on the router, so that media can flow back in over that port. This happens when two endpoints are both sourced on the outside of our nat network. So it’s supposed to do a simple_bridge, but, it seems that the only packets it can transmit out are the ones coming in… so I get dead air. I can fix this by simply starting the ball rolling - I use a Playback(silence/1) just before the Dial command and the media flows perfectly after that.

Any suggestions?

The rtp_keepalive option can be used for this[1].

[1] asterisk/configs/samples/pjsip.conf.sample at master · asterisk/asterisk · GitHub

Perfect! that did the trick

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