Polycom Callerid Shows Host

From Integrics Wiki
Jump to: navigation, search

If anyone is using Asterisk 1.8, and suffering from problems where Polycom handsets are showing callerids as <user>@<host>, here's a temporary workaround:

  1. In /etc/asterisk/sip.conf, find the line like [1.2.3.4], where 1.2.3.4 is the service IP address for Kamailio.
  2. Add a ":5060" after the 1.2.3.4 so it says [1.2.3.4:5060] (or whatever your IP address is). You do not need to change any of the other lines for this peer, such as the host or fromdomain lines.
  3. Run "asterisk -rx 'sip reload'" to make it take effect.

If this is permanently fixed in a future version of Asterisk it may be necessary to reverse this change in future.

The reason this is causing the Polycom callerid problem is that enswitch_routed does a Dial(SIP/<phone>@1.2.3.4:5060), and Asterisk 1.8 doesn't realise that [1.2.3.4] matches. It therefore fails to set the "fromdomain" setting on the outbound call. In this case the Polycom handset then sees the Asterisk IP address in the from SIP header, and (incorrectly in my opinion) chooses to display it in the callerid.