Asterisk Called Party Name
With a traditional PBX when dialing an extension the name is displayed on the phone. With Asterisk 1.4 and 1.6.x the name is not displayed even though phones, like the Polycom SoundPoint series, have support for it with the Remote-Party-ID SIP header.
On the Asterisk issue tracker there was a proposed patch for Asterisk 1.2. This patch was simple, but it required dial plan changes for it to work. Due to this the patch was abandoned for a more complex solution which involved modifying numerous files. This patch has made it into the Asterisk trunk and will be released in the 1.8 version.
I choose to update the Asterisk 1.2 patch to work with Asterisk 1.6.1 and 1.6.2. With the number of changes that go into each Asterisk version maintaining a complex patch is not ideal and risks introducing bugs.
cd asterisk-1.6.1/ wget http://www.excaliburtech.net/wp-content/uploads/2010/07/asterisk-1.6.1.20-called-rpid.patch patch -p1 < asterisk-1.6.1.20-called-rpid.patch |
cd asterisk-1.6.2/ wget http://www.excaliburtech.net/wp-content/uploads/2010/07/asterisk-1.6.2.9-called-rpid.patch patch -p1 < asterisk-1.6.2.9-called-rpid.patch |
In your Asterisk dialplan before using the Dial application you need to call the SIPCalledRPID application and provide it with the name and number.
exten => 100,1,SIPCalledRPID(John Smith,100)}) |
If you specify the callerid on your devices in sip.conf you could do the following.
exten => 100,1,SIPCalledRPID(${SIPPEER(${EXTEN}:callerid_name)},${SIPPEER(${EXTEN}:callerid_num)}) |
Or if you use FreePBX 2.7 I have patches for the core and follow me modules.
cd /var/www/html/admin/modules/core/ wget http://www.excaliburtech.net/wp-content/uploads/2010/07/freepbx-2.7.0.8-core-called-rpid.patch patch -p1 < freepbx-2.7.0.8-core-called-rpid.patch cd /var/www/html/admin/modules/findmefollow wget http://www.excaliburtech.net/wp-content/uploads/2010/07/freepbx-2.7.0.4-findmefollow-called-rpid.patch patch -p1 < freepbx-2.7.0.4-findmefollow-called-rpid.patch |