Interoperability/PBX/FreeSwitch

From Snom User Wiki

Jump to: navigation, search

Contents

Voice mail

setup voice mail for snom in Freeswitch

Voicemail is activated by default in Freeswitch. You need to set the voice mailbox within the responsible Freeswitch account (e.g. /usr/local/freeswitch/conf/directory/default/1000.xml).

<include>
  <user id="1000">
    <params>
      <param name="password" value="1000"/>
      <param name="vm-password" value="1000"/>
    </params>
    <variables>
      <variable name="toll_allow" value="domestic,international,local"/>
      <variable name="accountcode" value="1000"/>
      <variable name="user_context" value="default"/>
      <variable name="effective_caller_id_name" value="Extension 1000"/>
      <variable name="effective_caller_id_number" value="1000"/>
      <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
      <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
      <variable name="callgroup" value="techsupport"/>
      <variable name="mailbox" value="1000"/>
    </variables>
  </user>
</include>
Description
<param name="vm-password" value="1000"/>

sets the password for the voice mailbox, in this example the password is 1000.

<variable name="mailbox" value="1000"/>

sets the mailbox used by this account, in this example 1000.

In your snom phone you need to set the mailbox in the used identity to use MWI, in this example the mailbox 1000 is used:

Image:fs_voicemail_01.jpg

retrieve voice mail with snom in Freeswitch

The snom phones (snom3xx and snom8xx) are equipped with a voice mail led for MWI and a retrieve button. On snom8xx the retrieve button is the led. To retrieve voice mail messages by pressing the retrieve button you have to change the configuration of the button. In the web interface of your phone use the function keys configuration page.

Image:fs_voicemail_02.jpg

retrieve voice mail without ID/password promt

To retrieve voice mail witout being promted to enter mailbox ID and password you need to add a new dialplan entry. In this example we will use the number 4001 in /usr/local/freeswitch/conf/dialplan/default.xml.

<extension name="vmain">
      <condition field="destination_number" expression="^4001$">
        <action application="answer"/>
        <action application="sleep" data="1000"/>
        <action application="set" data="voicemail_authorized=${sip_authorized}"/>
        <action application="voicemail" data="check default ${domain_name} 1000"/>
      </condition>
</extension>
Description
<condition field="destination_number" expression="^4001$">

Set the number to be called to retrieve voice mail to 4001.

<action application="set" data="voicemail_authorized=${sip_authorized}"/>

Deactivate the promt for password.

<action application="voicemail" data="check default ${domain_name} 1000"/>

Set mailbox 1000 as the default mailbox for number 4001.

To use this, set the retrieve key to 4001 in the web interface of your phone.


Paging (Multicasting)

In Freeswitch you can use mod_esf to make a multicast paging to snom phones (e.g. snom3xx, snom8xx and snomPA1)

Configure the snom phone for multicast paging

Set in the advanced configuration, on SIP/RTP tab "Multicast Support" to on and enter a multicast address and port into the next line:

Image:multicast_paging_01.jpg

Configure Freeswitch for multicast paging

In your dialplan (/usr/local/freeswitch/conf/dialplan/default.xml) add the following lines:

    <extension name="pmain">
      <condition field="destination_number" expression="^4021$">
        <action application="answer"/>
        <action application="esf_page_group" data="224.65.66.67 34564"/>
      </condition>
    </extension>


Description

Now, if you call 4021 from a phone, you will initiate a multicast to IP-address 224.65.66.67 on port 34564. Every phone, configured to listen on that IP and port will "auto answer" and paging.

Adding an Alert-Info Header

To add Alert-Info Header for Ring or Ringtone information, follow the steps below:

Load an external Wav Rington on all Calls.

<action application="export" data="alert_info=http://192.168.181.5/sounds/ctu.wav"/>

Use the External Ringer (Change the Ringtone for the alert-external, alert-group and alert-internal in Snom under Setup > Preferences > Alert-Info Ringer)

<action application="export" data="alert_info=http://www.notused.com;info=alert-external;x-line-id=0"/>

See also:

http://wiki.snom.com/Web_Interface/V8/Preferences/Alert-Info_Ringer
http://wiki.freeswitch.org/wiki/Variable_alert_info

SNOM m3 works with the setting "Registrar Config" "Force Domain" in the "Configuration Identity" Menu. You must reboot the Phone! Tested with Firmware-Version: snom-m3-SIP/02.09//11-Jun-10 10:06

Personal tools
Interoperability