background image

SECN User Guide

5.3 Telephony Operation

Overview

 

MP devices provide an RJ11 port to which a telephone may be connected and each MP device runs 
a copy of the Asterisk application to provide the telephony facilities. Asterisk allows phone calls to 
be made between devices by means of Voice over IP (VoIP) and Session Initiated Protocol (SIP).
The operation of Asterisk is controlled to a number of configuration files, two of which are of 
particular interest for MP devices - 

/etc/asterisk/extensions.conf

 and 

/etc/asterisk/sip.conf

The 

extensions.conf

 file sets up the dial plan while the 

sip.conf

 file defines the channels to be used 

for making calls.
Operation of Asterisk can be monitored from the MP command line by executing the command:

#  asterisk -r

Useful commands in the Asterisk shell include:

CLI> exit

Return to the command shell

CLI> core set verbose 5

Set verbose level to 5

CLI> sip reload 

Reload sip.conf configuration

CLI> dialplan reload 

Reload extensions.conf dialplan

CLI> show dialplan default  Display current dial plan
CLI> sip show registry 

Display sip registrations

The MP Asterisk configuration includes several telephone extension numbers that allow interaction 
with the device using Interactive Voice Response (IVR) system. These numbers include:

2663 (C-O-N-F)

Configure the 

eth0

 / 

br-lan 

IP address of the device

2661

Read out the 

ath0

 wireless interface IP address

2664

Read out the 

eth0

 / 

br-lan

  interface IP address

7774

Read out the 

rssi

 signal strength

3427

Start DHCP client on 

eth0

The SECN firmware includes a facility for making calls using abbreviated dialling using the last 
octet of the device IP address by pre-pending the rest of the address. This is set up on re-boot by the 
script 

/bin/generate-extension.sh 

using the MP device's own 

br-lan

 IP address as reference

.

Making Calls to MP Devices

To dial an MP device using the full IP address, dial the IP number substituting the * character for 
the dots between octets in the address. To dial an MP with address 10.130.1.21, dial

10*130*1*21

To dial an MP device using abbreviated dialling, simply dial the last octet of the unique IP number 
assigned to the required MP. This can be dialled as 1, 2 or 3 digits eg 
   5         (device address 10.130.1.5) 
   25       (device address 10.130.1.25) 
   105     (device address 10.130.1.105) 

Note that numbers with leading zeroes are reserved for the external SIP provider dial plan.

SECN_UserGuideV1d6b

20

Содержание Mesh Potato

Страница 1: ...SECN User Guide Mesh Potato Small Enterprise Campus Network User Guide SECN_UserGuideV1d6b 1...

Страница 2: ...een possible without the contributions of many people associated with Village Telco In particular I would like to acknowledge the considerable contributions made by Elektra both in providing technical...

Страница 3: ...up 10 Set the root Password 11 Set the br lan Bridge IP Address 12 Set the ath0 IP Address 13 4 4 Advanced Set up 14 Connecting to the MP 14 Set the MP Network Addresses 14 Set the ath0 IP Address 14...

Страница 4: ...use of the data network as long as the pass phrase key is kept confidential If one or more of the MP devices is connected via its ethernet port to a LAN with a router DHCP server and internet access a...

Страница 5: ...s after the wifi light starts to flash pick up the phone on the 21 MP check for dial tone and dial 22 The other phone should start to ring after a few seconds Repeat the other way around Step 4 Attach...

Страница 6: ...etwork either by Ethernet cable or WiFi it will acquire an IP address from the router in exactly the same manner as if it was connected directly to the router The router address space must be managed...

Страница 7: ...on assigned a static address in the same range as the MP devices and attached via Ethernet cable or WiFi to any MP device in the network When a workstation is attached to the network either by Etherne...

Страница 8: ...g Ubuntu or other Linux distribution on your PC 1 Set up the potato flash application on your PC Download the potato flash file from http elektrad info download MESH POTATO potato flash Save the file...

Страница 9: ...rv238 squashfs openwrt atheros vmlinux rv238 lzma Reading rootfs file openwrt atheros root rv238 squashfs with 3801088 bytes Reading kernel file openwrt atheros vmlinux rv238 lzma with 720896 bytes No...

Страница 10: ...ntending to connect the mesh to a LAN you may choose to assign addresses from the LAN address space to the MP devices so that they will appear as static IP devices on the LAN In this case just set the...

Страница 11: ...your PC to the MP device with an Ethernet cable Set up a network profile for the Ethernet port on your PC with Static IP 172 31 255 253 and Netmask 255 255 255 252 Point your browser to the MP Fallba...

Страница 12: ...n click on the Save Apply button at the lower right of the page Once the password as been set and the change committed future logins will require the password to be entered In addition telnet connecti...

Страница 13: ...of the MP device s bridge IP address If you are intending to connect the mesh to a LAN you may choose to assign addresses from the LAN address space to the MP devices so that they will appear as stat...

Страница 14: ...vides a known fallback address that will work on any device The default setting for this IP address when the device is flashed is 10 10 1 20 and you may choose to change just the last octet of the add...

Страница 15: ...ci set network br lan ipaddr 103 130 1 XXX Where xxx is unique to each MP uci commit network Edit the etc config network file config interface lan option type bridge option ifname eth0 bat0 ath1 optio...

Страница 16: ...c hostapd conf file interface ath1 bridge br lan driver madwifi Edit BSSID as required ssid Mesh Potato AP country_code DE hw_mode g wpa 1 wpa_passphrase potato potato wpa_key_mgmt WPA PSK macaddr_acl...

Страница 17: ...mysecret mysipprovider com b Add a new sipaccount section to define the account details sipaccount host sip mysipprovider com secret mysecret username myusername fromuser myusername insecure port invi...

Страница 18: ...ter then all WiFi and Ethernet interfaces connected to the meshed MPs will have access to the LAN resources If there is a DHCP server running on the LAN eg in the router then devices configured as DHC...

Страница 19: ...t interface for the batman advanced mesh Batman adv itself bridges all bat0 interfaces in all the mesh devices to a big smart virtual switch This means that all bat0 interfaces in the mesh are link lo...

Страница 20: ...onfiguration includes several telephone extension numbers that allow interaction with the device using Interactive Voice Response IVR system These numbers include 2663 C O N F Configure the eth0 br la...

Страница 21: ...SECN User Guide SECN_UserGuideV1d6b 21...

Отзывы: