Mitel provided some of their phones to the freepbx team. One question of interest was how to get paging/intercom (auto-answer) working. Mitel supports a couple variants for the 'ring-answer' behavior. The one that I used is the broadwords compatible mode that uses a slightly different version of the Call-Info header than normally comes with freepbx. Here is a patch that can be applied to /var/www/html/admin/modules/paging/functions.inc.php. In a future version of paging, we will either make changes so you can specify this in amportal.conf or better yet, get closer to the improved devices mode that will set the correct options once it knows the phone is a Mitel.
--- functions.inc.php 2006-12-07 22:19:25.000000000 -0800
+++ /var/www/html/admin/modules/paging/functions.inc.php 2007-05-02 17:41:49.000000000 -0700
@@ -88,7 +88,7 @@
$ext->add('ext-paging', "PAGE${xtn}", 'SKIPCHECK', new ext_noop('Seems to be available (state = ${AVAILSTATUS}'));
if (!$skipheaders) {
- $ext->add('ext-paging', "PAGE${xtn}", '', new ext_setvar('__SIPADDHEADER', 'Call-Info: \;answer-after=0'));
+ $ext->add('ext-paging', "PAGE${xtn}", '', new ext_setvar('__SIPADDHEADER', 'Call-Info: <sip:broadworks.net>\;answer-after=0'));
$ext->add('ext-paging', "PAGE${xtn}", '', new ext_setvar('__ALERT_INFO', 'Ring Answer'));
$ext->add('ext-paging', "PAGE${xtn}", '', new ext_setvar('__SIP_URI_OPTIONS', 'intercom=true'));
}
@@ -134,7 +134,7 @@
$ext->add('ext-intercom', '_'.$code.'.', '', new ext_dbget('user-intercom','AMPUSER/${dialnumber}/intercom'));
$ext->add('ext-intercom', '_'.$code.'.', '', new ext_gotoif('$["${user-intercom}" = "disabled" ]', 'nointercom'));
- $ext->add('ext-intercom', '_'.$code.'.', '', new ext_setvar('__SIPADDHEADER', 'Call-Info: \;answer-after=0'));
+ $ext->add('ext-intercom', '_'.$code.'.', '', new ext_setvar('__SIPADDHEADER', 'Call-Info: <sip:broadworks.net>\;answer-after=0'));
$ext->add('ext-intercom', '_'.$code.'.', '', new ext_setvar('__ALERT_INFO', 'Ring Answer'));
$ext->add('ext-intercom', '_'.$code.'.', '', new ext_setvar('__SIP_URI_OPTIONS', 'intercom=true'));