background image

www.atcom.cn

 

 

 

34/35 

In u-boot: 

 

    ip04>set autostart 

    ip04>setenv serverip your_tftp_server_address 

    ip04>tftp 0x1000000 uImage_r2.ip08 

    ip04>nand erase clean 

    ip04>nand erase 

    ip04>nand write 0x1000000 0x0 0x300000 

    ip04>set bootargs ethaddr=your:mac:address console=ttyBF0,115200 root=/dev/mtdblock0 rw 

    ip04>save 

    ip04>bootm 0x1000000 

 

    (uClinux will boot.......) 

 

NOTE: If Linux doesn't boot or you experience other problems reboot 

into uboot, type "print", and carefully check bootargs 

 

4/ Now we have uClinux running, but using a ram-based ext2 file system 

for root. So we need to copy /root into the yaffs file system: 

On the IP04: 

       

root:~> /bin/copy_rootfs.sh 

root:~> reboot 

 

5/ Now set up u-boot to mount root from yaffs (some of these env variables may be set already, 

use 'print' to check): 

 

    ip04>set autostart yes 

    ip04>set bootargs ethaddr=your:mac:address console=ttyBF0,115200 root=/dev/mtdblock2 rw 

    ip04>set nandboot 'nboot 0x2000000 0x0' 

    ip04>set bootcmd run nandboot 

    ip04>save 

    ip04>reset 

 

6/ Boot IP04 to the uClinux root prompt.    Use mount to check that root is mounted on mtdblock2 

(yaffs file system). 

 

Now we can install some packages using ipkg.   

 

When the system boots with the new kernel, only the network part is available and the IP04 will 

get the network parameter from your DHCP server.   

Then you need to install the needed packages for your application. Below is the default packages 

installed in the IP04.   

root:~>ipkg install zaptel-sport 

root:~>ipkg  install  pagecache  libtiff  spandsp  asterisk-spandsp  voiptel-gui  voiptel-sounds 

Summary of Contents for IPPBX IP04

Page 1: ...www atcom cn 1 35 IP 04 User Manual ...

Page 2: ...www atcom cn 2 35 Version Date Author Description 1 0 2008 April 19 Edwin Creation 1 1 2008 Jul 11 Edwin Interlink backup ...

Page 3: ...15 4 2 Ring another extension if operator doesn t answer 16 4 3 Time Base Rule 17 5 IVR 17 5 1 Add Greeting Menu 17 5 2 Route incoming route to greeting menu 19 5 3 Record your voice 19 6 DISA 21 7 Ring Group 22 8 Link two IP04 in different office 23 8 1 Link two IP04 in the same network 23 8 2 Link two IP04 in different offices 26 FAQ 28 HOWTO Do files transfer for IP04 28 HOWTO Change SSH passwo...

Page 4: ...www atcom cn 4 35 ...

Page 5: ...her than build time Basically we only need to maintain a kernel with basic functions installed Different applications zaptel asterisk ntp etc are built in different packages and maintain in a remote server We only need to use some simple commands like root ipkg install PACKAGE_NAME to install the needed package root ipkg remove PACKAGE_NAME to remove the useless package root ipkg update to check t...

Page 6: ...to connect to PSTN while FXS port is used to connect to your normal phone 2 Normal phone connect to the IP04 FXS ports 3 Working PC x lite runs on this computer act as a sip extension 4 AT 530 IP phone register to IP04 to act to as SIP or IAX2 extension We want to provide below function in our simple application 1 free internal call 2 Voice Mail 3 make out bound call 4 IVR system We will implement...

Page 7: ... or SSH Web Use Web browser to open the GUI of IP04 Default IP address 192 168 1 100 Default username password admin mysecret IP04 doesn t support IE well You need to use Firefox version 2 to configure it SSH Use the SSH tool to access the IP04 Default IP address 192 168 1 100 Default username password root uClinux or root 12xerXes06 Most of our configure job will be done in the web interface And ...

Page 8: ... of digit of each extension Go to Option Admin Settings Here we set the number to 4 so each extension will be a four digits number Add SIP extensions Sip extensions is an SIP account allows you to log on the IP04 via an SIP terminal such as IP phone AT 530 or softphone x lite Go to User Page Add New Exenions Extension 8806 Phone number of this extension Name Edwin Caller ID Name Password 8806 SIP ...

Page 9: ...ed three SIP extensions Remember to click active change on the right top of the page to active the extensions in Asterisk Now we can use SIP devices to log on the IP04 use these extensions Note if your IP04 and sip devices is not in the same network for example your IP04 uses public ip and sip devices is behind router you may need to enable NAT when set up the extensions 2 4 Register SIP device 1 ...

Page 10: ...ugh this IP d Put the SIP extensions info on the AT 530 IP phones Register Server Addr 192 168 1 100 IP address of Trixbox server Register Username 8047 Register Password 8047 Phone Number 8047 Use the same method register another AT 530 to extension 8469 then you can make free inbound call between these three extensions 8806 8047 8469 2 5 Add Zap extensions Port 3 and port4 are configure as the f...

Page 11: ...orrect username password user will hear the old and new voicemail Voicemail VoiceMail Configuration 2 7 Voice Mail to Email The ssmtp packages is a simple voicemail to Email application With this function setting correctly the ip04 will send the Voicemail to your mail address whenever there is a new voice message The ssmtp package is installed by default in the IP04 1 in the user setting page we n...

Page 12: ...rresponding LED shows GREEN What are FXO and FXS FXS Foreign eXchange Station is an interface which drives a telephone or FAX machine FXS interfaces get phones plugged into them delivery battery and provide ringing FXS interfaces are signalled with FXO signalling FXO Foreign eXchange Office is an interface that connects to a phone line They supply your PBX with access to the public telephone netwo...

Page 13: ...the DialPlan1 As we can see from the dialing rule of OUT_PSTN all numbers start with 9 will be cut the first digit 9 and sent to PSTN port1 or port2 Choose Dial Plan for extensions In the User page edit the extensions to choose DialPlan1 After we have done above in the extension we can dial 9 local number to dial out via PSTN line ...

Page 14: ...BUSTER in the DialPlan1 As we can see from the dialing rule of OUT_VOIPBUSTER all numbers start with 00 will be cut the first two digits 00 and sent to my sip service provide voipbuster The OUT_VOIPBUSTER is in the same DialPlan1 Since we have added this dial plan to the extensions in above we don t need to add dial plan again So far when we have added two calling rules any call start with 9 will ...

Page 15: ...ransfer or hang call Be able to do this for 4 FXO In this case we use the extension 6000 as operator and extension 6001 6002 for clerk Below is the configure page Register extension 6000 with eyebeam And register 6001 and 6002 with IP phone AT 530 Configure the service provide to add all FXO ports to the same service provider Add the incoming and route all the calls from ports 1 2 3 4 to the 6000 ...

Page 16: ...beam and then press 6001 and then XFER again to transfer the call after transfer the call press hang up to return to line1 4 2 Ring another extension if operator doesn t answer Purpose If secretary does not answer FXO CALL pass call to next extensions If no call answer send call to voicemail 6000 ext voicemail Setting a Ring Group as show below Put 6000 and 6001 to the ring group Set the strategy ...

Page 17: ...is moment First we need to record a voice menu for the close time off_time1 refer chapter five for how to record the voice menu Second set up the time base rule as below In above rule we have set a time base as required Third we need to point the incoming call to this time base rule 5 IVR IVR means Interactive Voice Response It is very important for the enterprise application We can use the IVR to...

Page 18: ...g menu and when there is incoming call the caller will hear thanks for your calling if you know the extension of the part you wish to reach then dial now during the greeting voice You can dial the number you wish to reach Add two new background steps The voice we choose are thank you for calling and if u know ext dial and remember to enable the dial other extensions ...

Page 19: ...You may need also need to record your voice for greeting or other voice menu Go to Record a Menu Record a new voice menu Then you will be prompted as below Type the name of your record and choose the extension to record After that click the Record button and your extension will ring Answer the call and make a record After recording you can see the record in the page ...

Page 20: ...www atcom cn 20 35 The record files are stored in the storage sounds record directory if you have the voice files already you can use the FTP server to put the files to this directory too ...

Page 21: ...to compromise your security If the password parameter is no password then the DISA application will provide dial tone without first requiring a password Obviously this should only be done if the user s identity has already been proved by some other means or the set of numbers which can be dialed is tightly controlled DISA passcode context DISA password file Below is an simple example guide for DIS...

Page 22: ...ions need to ring when the call enter this group Ring Groups Ring Groups We have set a group Sales_team in above This group include the extension 100 and 101 Then we need to link the group with the incoming calls Incoming calls Incoming calls Above we set that all the incoming call from port1 will enter the ring group Sales_team So if there is any call from port1 the extension 100 and 101 will rin...

Page 23: ...and it to different network Below is the structure of how to link two IP04s in the same LAN In above structure 1 AT 530A registers to IP04A as an extension 6001 2 AT 530B registers to IP04B as an extension 5001 3 All the extensions under IP04A are in the format 6XXX 4 All the extensions under IP04B are in the format 5XXX 5 Extensions under IP04A can make calls to extension under IP04B use format 5...

Page 24: ...A Option Show advance option file Editor Edit the iax conf file and add this context Add a new context test test the name of this peer type peer context numberplan customs 2 this peer can use the DialPlan2 in IP04A auth md5 secret 7777 password of this peer username 7777 username of this peer ...

Page 25: ...h 6 will be sent to IP04A In IP04B Calling Rules add a new rule officeA as below Active the change and apply the test Register an IP phone AT 530B to IP04B with 5001 extension Register an IP phone AT 530A to IP04A with 6001 extension Use 5001 to dial 6001 And you can see 6001 is ringing and you can pick up the calls Above is the way to router IP04B s call to IP04A the method to link IP04A to IP04B...

Page 26: ... do port forwarding in the router and make IP04 is reachable to others Below is the port forwarding structure 1 Set port forwarding in the router for IP04A The IP04A is behind the router to register to IP04A via the internet you need to forward the IAX2 port in your router so all the packets received on the router WAN port 202 8 16 98 4569 will be forwarded to the IP04A 192 168 1 21 4569 Below is ...

Page 27: ...EPT you need to use the 202 8 16 98 as the service provider instead of 192 168 1 21 3 Use the same method do port forwarding in routerB for IP04B Your public address from network provider maybe a dynamic ip which will be changed periodically To overcome the problem of dynamic ip you may need to use the DDNS service for more info please google the internet ...

Page 28: ...can be found on etc ipkg conf file Below are some commands for the software management root ipkg update check available packages root ipkg install PACKAGE_NAME install the needed package root ipkg remove PACKAGE_NAME remove the needed package root ipkg list_installed list the installed packages information The etc autoinstall describes the needed packages for the system and the ip04 will check if ...

Page 29: ...ystem time The file etc TZ specify the timezone of the system The IP04 will get the date and time from NTP server according to the timezone If the system is different from your time you can set the timezone value on the etc TZ file Example time zone values is Australia Melbourne Canberra Sydney AEST 10AEDT 11 M10 5 0 02 00 00 M4 1 0 03 0 0 00 Perth AWST 8AWDT 9 M10 5 0 M3 5 0 03 00 00 Brisbane AES...

Page 30: ...T 1CEST 2 M3 5 0 02 00 00 M10 5 0 03 00 00 Prague Czech Republic CET 1CEST 2 M3 5 0 02 00 00 M10 5 0 03 00 00 Roma Italy CET 1CEST 2 M3 5 0 02 00 00 M10 5 0 03 00 00 Moscow Russia MSK 3MSD M3 5 0 2 M10 5 0 3 Sofia Bulgaria EET 2EEST 3 M3 5 0 03 00 00 M10 5 0 04 00 00 St Petersburg Russia MST 3MDT M3 5 0 2 M10 5 0 3 Stockholm Sweden CET 1CEST 2 M3 5 0 02 00 00 M10 5 0 03 00 00 Tallinn Estonia EET 2...

Page 31: ...ia Jakarta WIB 7 Singapore SGT 8 Hong Kong HKT 8 Ulaanbaat ar Mongolia ULAT 8ULAST M3 5 0 2 M9 5 0 2 Central and South America Brazil Sã o Paulo BRST 3BRDT 2 M10 3 0 M2 3 0 Colombia UTC 5 Argentina UTC 3 Central America CST 6 HOWTO Change the IP address of IP04 Go to Option Show Advance Option A new box will appear on the Right top of the page you can see the network setting here ...

Page 32: ...y root storage gui_configbackups ls backup08071102__2008jul11 tar backup080711__2008jul11 tar Upload the backup files to your tftp server root tftp p r backup080711__2008jul11 tar 192 168 1 235 Download the backup files from tftp server root tftp g r backup080711__2008jul11 tar 192 168 1 235 It is easy to shared the configuration between different IP04 use above method ...

Page 33: ...odule ship together with the IP04 Connect the console port to the ip04 as below picture Connect Console port to IP04 Running the Hyper Terminal or Minicom in your computer to connect the IP04 the setting of the console port should be Bits per second to 115200 Data bits 8 Parity None Stop bits 1 Flow control None Power on the IP04 and stop the boot process at the u boot prompt Now we are going to w...

Page 34: ...Now set up u boot to mount root from yaffs some of these env variables may be set already use print to check ip04 set autostart yes ip04 set bootargs ethaddr your mac address console ttyBF0 115200 root dev mtdblock2 rw ip04 set nandboot nboot 0x2000000 0x0 ip04 set bootcmd run nandboot ip04 save ip04 reset 6 Boot IP04 to the uClinux root prompt Use mount to check that root is mounted on mtdblock2 ...

Page 35: ...oot etc init d zaptel enable load zaptel driver on every booting root etc init d asterisk enable load the asterisk on evert booting root reboot after reboot you can check the ip address on the console port and check its ip address via root ifconfig put this ip address on your firefox browser and configure the IP04 7 After the new kernel and new software packages are installed in the ip04 successfu...

Reviews:

Related manuals for IPPBX IP04