Set DirectMedia in dialplan?

Hi,

Is there any way to set DirectMedia in dialplan before dialing?
We dial 2 contacts (one is a softphone and the other is a physical phone).
It’s the same endpoint in our database, but I would like the softphone to not allow direct_media.
Can I just set direct_media to no in the DB before dialing or direct_media will be set once the softphone register?

I will answer my own question:

I did a test and Asterisk is checking the option in the DB and will allow or not allow direct media no mater what the registration state is.
I can create an ODBC function that set direct media in the DB before dialing.

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