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
PitzKey
(Itzik)
2
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
[10111](+)
moh_suggest=Test
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.
lgaetz
(Lorne Gaetz)
4
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.
PitzKey
(Itzik)
5
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:
[[email protected] ~]# asterisk -x"core reload"
[[email protected] ~]# asterisk -x"sip show peer 101" | grep MOH
MOH Suggest : Test
this is working for PJSIP.
system
(system)
Closed
7
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.