Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 36 guests online
 
Advertisement

You are here:
EH-Net
May 23, 2013, 01:11:39 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: WarVox and Asterisk  (Read 6871 times)
0 Members and 1 Guest are viewing this topic.
BillV
Hero Member
*****
Offline Offline

Posts: 1892


View Profile WWW
« on: November 09, 2011, 10:22:10 AM »

Does anyone have experience setting up WarVox to work via Asterisk?

I have an Asterisk server setup that is accepting both SIP and IAX2 (of which I have created accounts for each). I am able to call from one to the other internally so can call from my IAX2/warvox account to my SIP/bill account (and vice-versa) via softphones.

I have purchased an account with a VoIP provider that does not directly support IAX2, they support SIP (hence why I'm trying to set this up). I have configured Asterisk to work with this service and can also make external calls (to landlines) from either my IAX2 or SIP softphones.

When I plug the information into WarVox (1.2) running on BT5R1 x86, I am unable to successfully make a call (internal or external). Every attempt comes up as "Fail=1" and 0/1 answered.

Reviewing a successful call vs. WarVox call in wireshark, it appears that WarVox is being rejected by my Asterisk server.. I see it do a 'REGREQ' (assume that's a Registration Request) then a 'NEW' call but it receives a 'REGREJ' followed by a 'REJECT.' My guess is that the registration request is being rejected followed by the call attempt being rejected.

Any thoughts?
Logged
BillV
Hero Member
*****
Offline Offline

Posts: 1892


View Profile WWW
« Reply #1 on: November 09, 2011, 10:26:52 AM »

The 'REGREQ' packets appear to be the same between WarVox and the softphone - the only difference there is the time to refresh the registration (300 in WarVox and 60 softphone).

Also the 'NEW' packet in WarVox passes an empty 'Name of caller' and entirely omits a bunch of other stuff that's included from the softphone. It does seem the important pieces are there though: protocol, calling number, username for auth, number being called, originally dialed dnid.
Logged
BillV
Hero Member
*****
Offline Offline

Posts: 1892


View Profile WWW
« Reply #2 on: November 09, 2011, 02:22:14 PM »

Finally got it working Smiley

Thanks to the tip here:
http://www.freepbx.org/forum/freepbx/users/iax2-softphone-zoiper-wont-register-after-yum-update-solved

Quote
In /etc/asterisk/iax_general_custom.conf add:

calltokenoptional = 0.0.0.0/0.0.0.0
maxcallnumbers = 16382
Logged
BillV
Hero Member
*****
Offline Offline

Posts: 1892


View Profile WWW
« Reply #3 on: November 10, 2011, 04:21:34 PM »

Probably worth noting the best version of WarVox to run currently is 1.0.1 (the 'stable' release) - from what I've seen anyway. The SVN version (1.9.9-dev) has some bugs as expected. My biggest complaint is that it isn't properly handling multiple numbers. If you provide anything beyond a single number to dial it just comes back with an error of 'unable to dial number.'

For those interested, here were my steps to get 1.9.9 running properly on BT5R1:

Quote
cd /pentest/telephony/
svn co http://metasploit.com/svn/warvox/trunk/
mv trunk warvox2
cd warvox2

update-alternatives --config ruby (select 0 for auto)

cp /pentest/telephony/warvox/lib/kissfft.so ./lib/

apt-get install postgresql-8.4
apt-get install postgresql-contrib-8.4
apt-get install libpq-dev

su - postgres
psql template1
\i /usr/share/postgresql/8.4/contrib/_int.sql
exit

su - postgres
createuser warvox
createdb warvox -O warvox
psql
alter user warvox with password 'password';
exit

vi web/config/database.yml (set port to 5432)
vi etc/warvox.conf (change user/pass if you want)

make

bin/warvox.rb --address 0.0.0.0 (to listen on all and access remote)

For the stable version, it's a bit easier

Quote
cd /pentest/telephony/
wget http://warvox.org/releases/warvox-1.0.1.tar.gz
tar -xvzf warvox-1.0.1.tar.gz
mv warvox-1.0.1 warvox2
cd warvox2

cp /pentest/telephony/warvox/lib/kissfft.so ./lib/

apt-get install sqlite3-ruby

vi etc/warvox.conf (change user/pass if you want)

make

bin/warvox.rb --address 0.0.0.0 (to listen on all and access remote)

Hope it helps save someone some headache.. ;-)
Logged
don
Editor-In-Chief
Administrator
Hero Member
*****
Offline Offline

Posts: 4167


Editor-In-Chief


View Profile WWW
« Reply #4 on: November 15, 2011, 01:08:24 AM »

Glad we could be of help.  Wink

Don
Logged

CISSP, MCSE, CSTA, Security+ SME
BillV
Hero Member
*****
Offline Offline

Posts: 1892


View Profile WWW
« Reply #5 on: November 21, 2011, 04:34:19 PM »

Haha, of course Smiley

For reference, I used VoicePulse as my VoIP provider for this engagement.

The service and setup with their part went smoothly and I was happy with the cost per call ($0.011/minute). I didn't have any problems with their service and would recommend it (if you have the time to setup an Asterisk server, or already have one).

The only downside is that they require a $10 monthly minimum usage and a $2.95 monthly regulatory fee. The entire cost to use what I needed for my engagement was well under $10. This just means I had to cancel my account and would have to go through their setup process again to use their service the next time.

While I didn't use it for this engagement, an alternative (and probably easier option) is Vitelity. They still support direct IAX2 connections but you will need to call in to their customer support and let them know you need this capability so they can flag your account for IAX2 use. I believe their cost per minute is similar (and my guess is they have the same regulatory fee but I don't know about any minimums). The only difference is you can use WarVox directly with their service rather than having to setup an Asterisk service (like I said, much easier).

Enjoy Smiley
Logged
BillV
Hero Member
*****
Offline Offline

Posts: 1892


View Profile WWW
« Reply #6 on: January 04, 2013, 08:29:01 AM »

Update for anyone looking for information on using warvox (since there's not much out there), another good provider to select is Rapidvox as they allow direct connections from warvox. No additional asterisk or anything provided. Sign up for an account, enter credentials into warvox, and away you go.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.082 seconds with 23 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Free Business and Tech Magazines and eBooks

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.