 mazilo From Mazilo Premium join:2002-05-30 Lilburn, GA
| [Equipment] Asterisk on Linksys PAP2v2 and DLink VTA-VR
Some of you may have seen and/or noticed my mention in this forum on porting asterisk to a Linksys PAP2v2 and/or DLink VTA-VR devices as shown in my posts here (first hinted post of PAP2v2 ability), here (first mention of asterisk on PAP2v2), and here (first mention of asterisk on VTA-VR). Since then, I received some responses with mixed feedbacks directly from my own posts and/or indirectly from responses to someone else posts in other VoIP forums. Ironically, some people are so skeptic and even go further to blatantly make some unfounded statement that porting asterisk to TI AR7 platform will take more than one year or may even never happen.
Well, I am here to prove that there is no need to be such a skeptic about this issue once and for all because I have recently managed to successfully port and compile asterisk from openWRT WhiteRussian RC5 firmware source to a TI AR7 platform. This was made possible by a very unselfished individual who voluntarily lent his hands to help me out. For this, I would like to take this opportunity to show my gratidude to thank Mr. czyc who has been very kind to voluntarily offer his help to guide me into the right directions on how to port and to compile the openWRT WhiteRussian RC5 firmware source code to the TI AR7 platform.
The compiled or binary code of asterisk can now run on a Linksys PAP2v2/RTP300/WRTP54G, DLink VTA-VR, and other Linux embedded devices based on a TI AR7 platform, i.e. VoIP devices supported by CYT Unlocker program. Even though asterisk may now run on an AR7 hardware; however, the performance really depends on how much Flash/RAM and clock speed of the CPU used on the device. OTOH, please beware that there are still lots of other hurdles facing us ahead before asterisk can be considered to be a useful program for a PAP2v2 and/or VTA-VR devices. As of this writing, some people are working on incorporating asterisk into some modded firmware to run on a PAP2v2. For a VTA-VR and other AR7 based VoIP devices, I believe this will follow.
To make a long story short, here is the screen dump from my PAP2v2 when I tested on a dry-run (without the *.conf files) for asterisk I just compiled:
said by "Asterisk on a Linksys PAP2 v2" :
sh Admin@192.168.1.35 Admin@192.168.1.35's password:
BusyBox v0.61.pre (2006.04.26-10:41+0000) Built-in shell (ash) Enter 'help' for a list of built-in commands.
# cd /var/tmp # ./asterisk -v Asterisk 1.2.7.1, Copyright (C) 1999 - 2006 Digium, Inc. and others. Created by Mark Spencer Asterisk comes with ABSOLUTELY NO WARRANTY; type 'show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'show license' for details. ========================================================================= Unable to open logger.conf: Bad file descriptor Asterisk Event Logger Started /var/log/asterisk/event_log Asterisk Dynamic Loader loading preload modules: Sep 5 01:17:04 NOTICE[22]: manager.c:1678 init_manager: Unable to open management configuration manager.conf. Call management disabled. Sep 5 01:17:04 NOTICE[22]: cdr.c:1191 do_reload: CDR simple logging enabled. Asterisk PBX Core Initializing Registering builtin applications: [AbsoluteTimeout] [Answer] [BackGround] [Busy] [Congestion] [DigitTimeout] [Goto] [GotoIf] [GotoIfTime] [ExecIfTime] [Hangup] [NoOp] [Progress] [ResetCDR] [ResponseTimeout] [Ringing] [SayNumber] [SayDigits] [SayAlpha] [SayPhonetic] [SetAccount] [SetAMAFlags] [SetGlobalVar] [SetLanguage] [Set] [SetVar] [ImportVar] [Wait] [WaitExten] Asterisk Dynamic Loader Starting: Sep 5 01:17:04 WARNING[22]: loader.c:564 load_modules: Unable to open modules directory /usr/lib/asterisk/modules. Sep 5 01:17:04 WARNING[22]: loader.c:564 load_modules: Unable to open modules directory /usr/lib/asterisk/modules. Sep 5 01:17:04 WARNING[22]: loader.c:564 load_modules: Unable to open modules directory /usr/lib/asterisk/modules. Sep 5 01:17:04 WARNING[22]: loader.c:564 load_modules: Unable to open modules directory /usr/lib/asterisk/modules. Sep 5 01:17:04 WARNING[22]: db.c:67 dbinit: Unable to open Asterisk database Asterisk Ready.
Executing last minute cleanups The following is a screen dump of processes running (ps axw) on my Linksys PAP2 v2 with asterisk:
said by "Process running on PAP2 v2" :
# ps axw PID Uid VmSize Stat Command 1 Admin 1292 S init 2 Admin S [keventd] 3 Admin R [ksoftirqd_CPU0] 4 Admin S [kswapd] 5 Admin S [bdflush] 6 Admin S [kupdated] 7 Admin S [mtdblockd] 32 Admin 900 S /usr/sbin/lightbox 33 Admin 1212 S /usr/sbin/thttpd -d /usr/www -u root -p 80 -c /cgi-b 35 Admin 5160 S /usr/bin/cm_pc 37 Admin 1292 S init 38 Admin 4704 S /usr/bin/cm_logic -m /dev/ti_partitions/active_confi 39 Admin 3396 S /usr/bin/cm_monitor 42 Admin 612 S /usr/bin/cm_klogd /dev/klog 45 Admin 10508 S /usr/sbin/ggsip 171 Admin 10508 S /usr/sbin/ggsip 172 Admin 10508 S /usr/sbin/ggsip 173 Admin 10508 S /usr/sbin/ggsip 175 Admin 10508 S /usr/sbin/ggsip 176 Admin 10508 S /usr/sbin/ggsip 177 Admin 10508 S /usr/sbin/ggsip 178 Admin 10508 S /usr/sbin/ggsip 179 Admin 10508 S /usr/sbin/ggsip 180 Admin 10508 S /usr/sbin/ggsip 181 Admin 10508 S /usr/sbin/ggsip 182 Admin 10508 S /usr/sbin/ggsip 183 Admin 10508 S /usr/sbin/ggsip 184 Admin 10508 S /usr/sbin/ggsip 185 Admin 10508 S /usr/sbin/ggsip 186 Admin 10508 S /usr/sbin/ggsip 187 Admin 10508 S /usr/sbin/ggsip 188 Admin 10508 S /usr/sbin/ggsip 189 Admin 10508 S /usr/sbin/ggsip 190 Admin 10508 S /usr/sbin/ggsip 542 Admin 2284 R /usr/sbin/dropbear 543 Admin 1304 S -sh 550 Admin 3304 S ./asterisk -v 551 Admin 3304 S ./asterisk -v 553 Admin 3304 S ./asterisk -v 554 Admin 3304 S ./asterisk -v 555 Admin 1292 R ps axw Here is the screen dump from my DLink VTA-VR device on a dry-run asterisk:
said by "Asterisk on a DLink VTA-VR" :
ssh Admin@192.168.1.9 Admin@192.168.1.9's password:
BusyBox v0.61.pre (2006.04.20-03:00+0000) Built-in shell (ash) Enter 'help' for a list of built-in commands.
# /var/tmp/asterisk -v & Asterisk 1.2.7.1, Copyright (C) 1999 - 2006 Digium, Inc. and others. Created by Mark Spencer Asterisk comes with ABSOLUTELY NO WARRANTY; type 'show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'show license' for details. ========================================================================= Unable to open logger.conf: Bad file descriptor Asterisk Event Logger Started /var/log/asterisk/event_log Asterisk Dynamic Loader loading preload modules: Sep 4 23:20:30 NOTICE[22]: manager.c:1678 init_manager: Unable to open management configuration manager.conf. Call management disabled. Sep 4 23:20:30 NOTICE[22]: cdr.c:1191 do_reload: CDR simple logging enabled. Asterisk PBX Core Initializing Registering builtin applications: [AbsoluteTimeout] [Answer] [BackGround] [Busy] [Congestion] [DigitTimeout] [Goto] [GotoIf] [GotoIfTime] [ExecIfTime] [Hangup] [NoOp] [Progress] [ResetCDR] [ResponseTimeout] [Ringing] [SayNumber] [SayDigits] [SayAlpha] [SayPhonetic] [SetAccount] [SetAMAFlags] [SetGlobalVar] [SetLanguage] [Set] [SetVar] [ImportVar] [Wait] [WaitExten] Asterisk Dynamic Loader Starting: Sep 4 23:20:30 WARNING[22]: loader.c:564 load_modules: Unable to open modules directory /usr/lib/asterisk/modules. Sep 4 23:20:30 WARNING[22]: loader.c:564 load_modules: Unable to open modules directory /usr/lib/asterisk/modules. Sep 4 23:20:30 WARNING[22]: loader.c:564 load_modules: Unable to open modules directory /usr/lib/asterisk/modules. Sep 4 23:20:30 WARNING[22]: loader.c:564 load_modules: Unable to open modules directory /usr/lib/asterisk/modules. Sep 4 23:20:30 WARNING[22]: db.c:67 dbinit: Unable to open Asterisk database Asterisk Ready. Here is the screen dump of processes running on my DLink VTA-VR:
said by "Process running on DLink VTA-VR" :
# ps axw PID Uid VmSize Stat Command 1 Admin 1288 S init 2 Admin S [keventd] 3 Admin R [ksoftirqd_CPU0] 4 Admin S [kswapd] 5 Admin S [bdflush] 6 Admin S [kupdated] 7 Admin S [mtdblockd] 34 Admin 892 S /usr/sbin/lightbox 35 Admin 1180 S /usr/sbin/thttpd -d /usr/www -u root -p 80 -c /cgi-b 39 Admin 3416 S /usr/sbin/diap 41 Admin 4800 S /usr/bin/cm_pc 43 Admin 1288 S init 44 Admin 4520 S /usr/bin/cm_logic -m /dev/ti_partitions/active_confi 45 Admin 612 S /usr/bin/cm_klogd /dev/klog 49 Admin 10364 S /usr/sbin/ggsip 66 Admin 924 S /sbin/msntp -r 2 -t 5 -p 30 -s time.nist.gov 0.0.0.0 171 Admin 10364 S /usr/sbin/ggsip 172 Admin 10364 S /usr/sbin/ggsip 173 Admin 10364 S /usr/sbin/ggsip 175 Admin 10364 S /usr/sbin/ggsip 176 Admin 10364 S /usr/sbin/ggsip 177 Admin 10364 S /usr/sbin/ggsip 178 Admin 10364 S /usr/sbin/ggsip 179 Admin 10364 S /usr/sbin/ggsip 180 Admin 10364 S /usr/sbin/ggsip 181 Admin 10364 S /usr/sbin/ggsip 182 Admin 10364 S /usr/sbin/ggsip 183 Admin 10364 S /usr/sbin/ggsip 184 Admin 10364 S /usr/sbin/ggsip 185 Admin 10364 S /usr/sbin/ggsip 186 Admin 10364 S /usr/sbin/ggsip 187 Admin 10364 S /usr/sbin/ggsip 188 Admin 10364 S /usr/sbin/ggsip 189 Admin 10364 S /usr/sbin/ggsip 190 Admin 10364 S /usr/sbin/ggsip 213 Admin 2284 S /usr/sbin/dropbear 214 Admin 1300 S -sh 216 Admin 3304 S /var/tmp/asterisk -v 217 Admin 3304 S /var/tmp/asterisk -v 219 Admin 3304 S /var/tmp/asterisk -v 220 Admin 3304 S /var/tmp/asterisk -v 221 Admin 1288 R ps axw[/bqoute] -- Mazi (UK Non-Geo Phone: +44-703-194-2574) |
|
 madmatrix
join:2006-09-03 Fairfax, VA | Thanks for mazilo and czyc's great work. I think success about asterisk port on pap2v2 or vta-vr can give us a good future to play voip pbx. It's VERY COOL!!!
I will study the relevant knowledge and happy with playing.
Lou |
|
 mazilo From Mazilo Premium join:2002-05-30 Lilburn, GA
| said by madmatrix :I think success about asterisk port on pap2v2 or vta-vr can give us a good future to play voip pbx. It's VERY COOL!!! It may even force Linksys to lower its MSRP of SPA9K to probably US$50/each. Right now, an SPA9K is sold on the market for about $400/each with only 8(?) license. AFAIK, running asterisk on a PAP2v2 doesn't need a license and the number of extensions/trunk it can support really depends on its CPU and RAM. Remember, the CPU on a PAP2v2 runs at about 160MHz. -- Mazi (UK Non-Geo Phone: +44-703-194-2574) |
|
 madmatrix
join:2006-09-03 Fairfax, VA | Happy with 160MHz. So VTA-VR is same, right? I saw the name on the TI chip is a little different between PAP2V2 and VTA-VR. PAP2V2 is *47* and VTA-VR is *45*. Do you remember this? |
|
 tigger66
join:2004-01-09 New York, NY | reply to mazilo This is just great. Hope soon I can compile it by myself. |
|
 hollando
join:2006-09-03
| reply to mazilo mazilo, can u tell me how to put the asterisk into flash? I want to port some other applications to the box and don't want to tftp every reset. /var/tmp is in the ram, when reset, it'll disapear and all the /var directory will untar from var.tar. Right? How can we put files into squashfs root file system? Or how to make a acceptable update image? Thanks |
|
 mazilo From Mazilo Premium join:2002-05-30 Lilburn, GA
| said by hollando :mazilo, can u tell me how to put the asterisk into flash? I want to port some other applications to the box and don't want to tftp every reset. /var/tmp is in the ram, when reset, it'll disapear and all the /var directory will untar from var.tar. This was how I ran the asterisk for the moment. -- Mazi (UK Non-Geo Phone: +44-703-194-2574) |
|
  SteveLV702 Premium join:2004-04-22 Henderson, NV
| reply to mazilo Damn you can put Asterisk on a PAP2v2 and I can't even get my PAP2v2's to connect to my Asterisk Server... my PAP2-NA works fine with Asterisk but when I connect the PAP2v2 I get a dialtone but when I dial a number I just get a fast busy signal.. When I login to the PAP2v2 web gui and check status it shows line1 102 Proceeding (102 is my asterisk extention) |
|
 mazilo From Mazilo Premium join:2002-05-30 Lilburn, GA
| said by SteveLV702 :when I connect the PAP2v2 I get a dialtone but when I dial a number I just get a fast busy signal.. This sounds like a dial-plan issue. -- Mazi (UK Non-Geo Phone: +44-703-194-2574) |
|
  SteveLV702 Premium join:2004-04-22 Henderson, NV | reply to mazilo Well the dialplan on the PAP2v2 is
(*xx|*xxxxxxxxx|*xxxxxxxxxxxxx|*xxx|xxx|xxxx|[3469]11|0|00|[2-9]xxxxxx|1xxx[2-9]xxxxxxS0|xxxxxxxxxxxx.|011xxxxxxxxxx.|011xxxxxxxxxx)
the same as on my WRTP54G-NA and our PAP2-NA which works fine. |
|
 mazilo From Mazilo Premium join:2002-05-30 Lilburn, GA | reply to mazilo That dialplan is not going to work. |
|
 rcilink Premium join:2003-12-15 Manchester, NH
1 edit | reply to SteveLV702 RE: Asterisk on Linksys PAP2 v2 and D-Link VTA: I have been working on getting the partitions resized.. that has proven to be lots of fun :)
The thing is tight on space, so something would have to give..
I know that Linksys dropped 'dropbear' (ssh) to save space but that seems important to have.. what can I prune out??
----------------------
About that dialplan stuff on these...
Might this be helpful:
The 'factory' dialplan for the PAP2 v2.0 is:
*xxT|*1xx|[349]11|1xxx[2-9]xxxxxx|[2-9]xxxxxxT|[2-9]xxxxxxxxx|011x.T to add other dialing, you should be able to add the mapping in there.
For the following number: 0018005551212
This dial map should match: 001[2-9]XXXXXXXXXT |
|
 madmatrix
join:2006-09-03 Fairfax, VA | Hi rcilink, Happy to see you again. Could you please tell me what "T" means? Thanks!!!
Lou |
|
 mazilo From Mazilo Premium join:2002-05-30 Lilburn, GA
| said by madmatrix :Could you please tell me what "T" means? Transmit immediately(?) -- Mazi (UK Non-Geo Phone: +44-703-194-2574) |
|
 mazilo From Mazilo Premium join:2002-05-30 Lilburn, GA
| reply to rcilink said by rcilink :what can I prune out?? What about /usr/sbin/ppdd (about 300KB)? -- Mazi (UK Non-Geo Phone: +44-703-194-2574) |
|
 vladimir0
join:2006-08-30
| how about trimming var.tar ? and I think I saw some useless crap about routing and pptp stuff too. also if possible, why not get rid of whole ggsip sip client and use a better sip client (which support all pap2 v1 settings or better) ? frankly speaking I won't mind just running configurable asterisk without the sip client. it will replace my huge intel box running asterisk.. it can useful to create instant pbx'es when travelling .. since it will run asterisk, it can use IAX to traverse NAT.. could be very useful in cases where internet provider does not allow VoIP |
|
 vladimir0
join:2006-08-30
| look what I found..!!
»wiki.openwrt.org/OpenWrtDocs/Har···/WRTP54G
as per this page the ggsip is this radvision sip toolkit..
»www.radvision.com/Products/Devel···col/SIP/
so it might not be dlink hardware properitry at all.. !! above link only works in IE |
|
  SteveLV702 Premium join:2004-04-22 Henderson, NV | reply to mazilo rcilink what dialplan would I use for the PAP2v2 if we dial a 9 first to reach a outside line and we wanna be able to call any number in the USA and Toll Free Numbers... Don't need to dial international or anything. |
|
 mazilo From Mazilo Premium join:2002-05-30 Lilburn, GA | reply to mazilo Please let's keep this thread clean and post only relevant subject here. -- Mazi (UK Non-Geo Phone: +44-703-194-2574) |
|
  SteveLV702 Premium join:2004-04-22 Henderson, NV
| reply to mazilo I checked the asterisk logs and it was showing username/auth mismatch so changed the password for that user in asterisk and also in the pap2v2 and now its connecting fine by calls are still not being completed and when I check the logs now right after I try to make a call it shows this:
Sep 6 09:28:26 DEBUG[3256] channel.c: Driver for channel 'SIP/68.225.80.199-b7b1a9e0' does not support indication 8, emulating it Sep 6 09:28:26 DEBUG[5948] pbx.c: Expression result is '1' Sep 6 09:28:26 DEBUG[5948] pbx.c: Function result is 's' Sep 6 09:28:26 DEBUG[5948] pbx.c: Expression result is '0' Sep 6 09:28:26 DEBUG[5948] pbx.c: Not taking any branch Sep 6 09:28:33 DEBUG[5948] channel.c: Driver for channel 'SIP/phone.xetechnologies.net-b7b0a370' does not support indication 8, emulating it Sep 6 09:28:34 DEBUG[3256] pbx.c: Expression result is '1' Sep 6 09:28:34 DEBUG[3256] pbx.c: Function result is 's' Sep 6 09:28:34 DEBUG[3256] pbx.c: Expression result is '0' Sep 6 09:28:34 DEBUG[3256] pbx.c: Not taking any branch Sep 6 09:28:36 DEBUG[4476] chan_sip.c: Stopping retransmission on '7dddc8141e17bb4c743631d44e27cf28@68.225.80.199' of Request 102: Match Found Sep 6 09:28:40 DEBUG[3256] channel.c: Driver for channel 'SIP/68.225.80.199-b7b1a9e0' does not support indication 8, emulating it Sep 6 09:28:41 DEBUG[5948] pbx.c: Expression result is '1' Sep 6 09:28:41 DEBUG[5948] pbx.c: Function result is 's' Sep 6 09:28:41 DEBUG[5948] pbx.c: Expression result is '0' Sep 6 09:28:41 DEBUG[5948] pbx.c: Not taking any branch Sep 6 09:28:41 DEBUG[3594] manager.c: Manager received command 'Command' Sep 6 09:28:41 DEBUG[3594] manager.c: Manager received command 'Command' |
|