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 is the extension.
“LNG” is the name of my On Hold Music category.

Edit /etc/asterisk/pjsip_custom_post.conf

But this is not working.

Please help


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

[[email protected] ~]# 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


Save and then run the follwoing:

[[email protected] ~]# asterisk -x"core reload"
[[email protected] ~]# 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:


where you sub the desired type in the parentheses.

True, I forgot about that.

nano /etc/asterisk/sip_custom_post.conf



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


[[email protected] ~]# asterisk -x"core reload"
[[email protected] ~]# 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.