republican-creole
Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » VOIP etc » Voice Over IP - VOIP » VOIP Tech Chat » [Equipment] Asterisk on Linksys PAP2v2 and DLink VTA-VR
Search Topic:
Uniqs:
3641
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
VOIP0 issues last night-corrected. »
« Port 5060  
page: 1 · 2
AuthorAll Replies

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 See Profile :

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 See Profile :

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 See Profile :

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 See Profile :

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 See Profile :

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'
Forums » VOIP etc » Voice Over IP - VOIP » VOIP Tech ChatVOIP0 issues last night-corrected. »
« Port 5060  
page: 1 · 2


Saturday, 04-Jul 01:26:21 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 9.5 years online! © 1999-2009 dslreports.com.
page compression OFF
Most commented news this week
· [144] Biden Unveils Broadband Stimulus
· [94] AT&T: 65,000 SMS Sent Per SECOND
· [90] Compuserve Classic Says Goodnight
· [80] Thomas To Appeal Huge RIAA Fines
· [71] iPhone 3GS Already Jailbroken
· [67] Verizon: Cut Your Landline To Save Money
· [60] The Pirate Bay Gets Sold
· [60] Cable Carriers Miss Tru2Way Deadline
· [60] Obama Using NSA, AT&T For New Snooping Project
· [59] Breakdown of 3G Network Speeds, Reliability
Most people now reading
· So who's going to line up to pay $9.99/mo for turn-by-turn? [All Things Macintosh]
· Those Who Rented A Car From Enterprise [General Questions]
· Canada's slipping position on net access cost & speed [TekSavvy]
· More Malfeasance in Sacramento [Southern California]
· Evading throttling with uTP / uTorrent 1.9a [TekSavvy]
· Bell Landline to go up by $2, will this apply to TSI as well [TekSavvy]
· Maximizing Rogue DPS for 3.1 [World of Warcraft]
· [Unlock] TUTORIAL: VONAGE WRTP54G/RTP300 WITH 5.01.04 [VOIP Tech Chat]
· Bandwidth Limits/Congestion Management - All discussion here [Comcast HSI]