Hi ad5ou,
your posts are always very helpful.
My FusionPBX version is:
4.5.10,
Branch: master
Commit:
1f7c6304d57370816790d21d75cd4543e74ebc95
Origin:
https://github.com/fusionpbx/fusionpbx
Status: Your branch is up-to-date with 'origin/master'. +207 days ago
Switch version: 1.10.1 (64bit)
In this version, in the Default Settings I do not have config.lua. I located the dial_string under the Domain category.
So, I inserted the rtp_secure_media parameter in the dial_string of Default Settings/Domain and enabled it.
But it has no effect. As I see in /var/cache/fusionpbx the dial_string in the directory entries does not take in account the above setting.
The only way I have managed to enable SRTP when calling a registered extension is by setting the dial_string parameter of the specific extension in Account / Extensions [ADVANCED]
I use the same value as you:
{sip_invite_domain=${domain_name},leg_timeout=${call_timeout},rtp_secure_media=${regex(${sofia_contact(${dialed_user}@${dialed_domain})}|transport=tls)},presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(*/${dialed_user}@${dialed_domain})}
Do you think I should try a FusionPBX upgrade ?
Which version are you using ?