Sunday, September 21, 2008

Get MoH on Polycom Phones before 4.0 is release

A workaround was posted to the sipx-users mailing list by Chris St. Dennis. You need to have Polycom firmware 3.1.0b firmware on the phone.

To make Music on Hold work with 3.8.x or later (replace domain.com with your SIP domain), add:
"~~mh~@domain.com"/>
to the section of -sipx-config.cfg

It has been reported that this works with sipx 3.8.1 and 3.10.2 between phones and phone to AudioCodes and Patton gateways.

To modify the template so that when phone profiles are generated the settings get in there for all Polycom phones, edit the template file /etc/sipxpbx/polycom/mac-address.d/sip-2.0.cfg.vm.

Chris was kind enough to provide a patch for anyone else wanting to do this (domain is hardcoded in so change domain.com to your SIP domain, use at your own risk):
---------------- snip ---------------
--- /etc/sipxpbx/polycom/mac-address.d/sip-2.0.cfg.vm.old 2008-09-19 16:09:56.000000000 -0700
+++ /etc/sipxpbx/polycom/mac-address.d/sip-2.0.cfg.vm 2008-09-19 16:09:41.000000000 -0700
@@ -21,6 +21,7 @@
voIpProt.SIP.${setting.ProfileName}="$!{setting.Value}"
#end
>
+
<musicOnHold voIpProt.SIP.musicOnHold.uri="~~mh~@domain.com"/;>
<outboundProxy
#set ($group = $cfg.EndpointSettings.getSetting('voIpProt').getSetting('SIP.outboundProxy'))
#foreach ($setting in $cfg.getSettings($group))

---------------- snip ---------------

Add the above into a text file called polypatch in the /etc/sipxpbx/polycom/mac-address.d folder and issue the patch command:

cd /etc/sipxpbx/polycom/mac-address.d
patch -p0 <polypatch

.

3 comments:

Wayne said...

I have tried the above

patching file /etc/sipxpbx/polycom/mac-address.d/sip-2.0.cfg.vm
patch: **** malformed patch at line 4: voIpProt.SIP.${setting.ProfileName}="$!{setting.Value}"



Any ideas guys???

Please contact me if you do wayne@timico.co.uk

Many Thanks

Unknown said...

Is there anything special required to upload the 3.1.x Polycom firmware and replace the 2.x.x firmware?

Michael Picher said...

Sorry guys, just noticed these comments... don't know why I didn't get them...

Anyway, upgrade to sipXecs 3.10.3 and run Polycom 3.1.1 firmware with 4.1.2 bootrom. Bam, MoH!