MOH Per Extension

Hi Team

I want to add MOH per extension for specific extensions for SIP and PJSIP extns.

I tried -

Edit /etc/asterisk/sip_custom_post.conf

[388](+)
mohsuggest=LNG

388 is the extension.
“LNG” is the name of my On Hold Music category.

Edit /etc/asterisk/pjsip_custom_post.conf
388
mohsuggest=LNG

But this is not working.

Please help

Thanks
Amardeep

I just tried it, you have the wrong parameter and putting it in the wrong file:

[root@yplab ~]# asterisk -x"pjsip show endpoint 10111" | grep suggest
 moh_suggest                        : default

Edit the follwoing file

nano /etc/asterisk/pjsip.endpoint_custom_post.conf

Insert the following

[10111](+)
moh_suggest=Test

Save and then run the follwoing:

[root@yplab ~]# asterisk -x"core reload"
[root@yplab ~]# asterisk -x"pjsip show endpoint 10111" | grep suggest
 moh_suggest                        : Test

Thank You This is working for PJSIP but what about SIP extensions.

This may not always work for FreePBX pjsip config. It would be preferred to use:

[10111](+type=endpoint)

where you sub the desired type in the parentheses.

True, I forgot about that.

nano /etc/asterisk/sip_custom_post.conf

Insert

[101](+)
mohsuggest=Test

(Edit: I don’t recall if Chan_SIP also supports adding types in parentheses)

Reload:

[root@yplab ~]# asterisk -x"core reload"
[root@yplab ~]# asterisk -x"sip show peer 101" | grep MOH
  MOH Suggest  : Test

this is working for PJSIP.

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