Solved

Asterisk on Debian - Help with initial setup

Posted on 2014-04-02
10
1,303 Views
Last Modified: 2014-04-03
Hi Experts,

I'm currently following Asterisk The Definitive Guide for my setup but can't seem to get a test call to *43.

This is what I have done so far:

1. On a Debian wheezy machine I entered:
    apt-get install asterisk

2. Moved sip.conf and extensions.conf to backup/

3. Edit sip.conf as follows:

[general]
context=unauthenticated
allowguest=no
srvlookup=no
udpbindaddr=0.0.0.0
tcpenable=no

[office-phone](!)
type=friend
context=LocalSets
host=dynamic
nat=force_rport,comedia
dtmfmode=auto
disallow=all
allow=g722
allow=ulaw
allow=alaw


[1001](office-phone)
secret=1234


[1002](office-phone)
secret=1234

Open in new window


4. Skip the bit about iax.conf

5. Edit entensions.conf as follows:

[LocalSets]
exten => 1001,1,Dial(SIP/1001)
exten => 1002,1,Dial(SIP/1002)

Open in new window


6. Start asterisk with:

asterisk -c

Open in new window


7. Setup Blink softphone with the following:

Display name: 1001
Sip address: 1001@192.168.0.222 (have setup static ip for this asterisk box)
Password: 1234

8. I am getting the following messages from CLI:

NOTICE[2930]: chan_sip:24850 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1001

Open in new window


9 After performing a fail test call to *43 I get the following from CLI:
WARNING[2930]: chan_sip.c:9187 process_sdp: We are requesting SRTP, but they responded without it!

Open in new window


Please help point me in the right direction.

Many Thanks
Ricky
0
Comment
Question by:RiCzN
  • 5
  • 5
10 Comments
 
LVL 20

Accepted Solution

by:
José Méndez earned 500 total points
ID: 39972746
Yo yo yo!!! My man Ricky!! Long time no see..... xD

Here my friend:

This line is not important for now, I will gladly let you know how to fix it when you get to the voicemail part, it is just Blink asking Asterisk if this account has pending voice messages (how cool huh!!??)

NOTICE[2930]: chan_sip:24850 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1001

Open in new window


Now, you are saying that from Blink phones you are dialing *43? If so, I don't think that is going to work based on the dialplan chunk shown here, the only 2 extensions listed are 1001 and 1002 within the context LocalSets. If you wish to ring extension 1002 from 1001, try this:

exten => *43,1,Dial(SIP/1002)

Reload your dialplan (dialplan reload from CLI) and try again.
0
 

Author Comment

by:RiCzN
ID: 39973742
Hi willlywilburwonka!! yeah long time no see... Haha..

The test dialing to *43 is the echo test I was trying to make similar to the what I did in FreePBX.

 I thought *43 was an echo test universal to Asterisk or have I mistaken and *43 is only specific to FreePBX?

When I dial 1002 to test a call from 1001, the system doesn't ring but cuts off right away.

I have also tried changing the dialplan to *43 as suggested but with the same result.
0
 
LVL 20

Expert Comment

by:José Méndez
ID: 39973838
Ricky, lets see some debugs:

at the cli type:

core set debug 9...
core set verbose 9...

then call from 1002 from 1001 and copy the output. Would it be possible to attach the extensions.conf and sip.conf?
0
 

Author Comment

by:RiCzN
ID: 39973862
I get the same warning message when trying to dial 1002 from 1001:

WARNING[2930]: chan_sip.c:9187 process_sdp: We are requesting SRTP, but they responded without it!

Open in new window


I've since changed my sip.conf and extensions.conf similar to this website:

http://draalin.com/basic-asterisk-configuration-in-ubuntu/

Should I change it back?
extensions.conf.jpg
sip.conf.jpg
blink.jpg
0
 

Author Comment

by:RiCzN
ID: 39973878
Hmm.. I think I know what's wrong. When I performed the initial Asterisk install using the apt-get install method, I thought version 11 would be installed as per http://voipfreak.net/how-to-install-asterisk-on-debian/ comments on the bottom.

It turns out when typing "core show version" in CLI, I am told it's actually version 1.8.13.1.

I might have to go and do a fresh install from source.
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

Author Closing Comment

by:RiCzN
ID: 39973994
Thanks willlywilburwonka for your input. I indeed installed the wrong version. Once I had correct version installed, test dial to 1002 from 1001 works!!
0
 
LVL 20

Expert Comment

by:José Méndez
ID: 39976041
Glad to hear that!

What was the new install method? Compilation?
0
 
LVL 20

Expert Comment

by:José Méndez
ID: 39976045
Oh, and what version of Asterisk did you install this time?
0
 

Author Comment

by:RiCzN
ID: 39976853
Yeah thanks. :) I have version 11.8 installed now but I think the ATDG book has version 11.3 installed.

I just followed the book and downloaded the program from source using wget. The only problem I encountered was that Debian Wheezy didn't have a C++ compiler pre-installed. So I installed g++ package via aptitude before running the ./configure command and everything went smoothly from then on.

One question I did have regarding the ATDG book was that it added asteriskpbx user to the wheels group in sudo like so on page 44.

wheel:x:10:asteriskpbx

Open in new window


Why would you do that? Wouldn't you create a more sensible group, say phonebox, and add the asteriskpbx user to there instead? Or am I missing the point and by adding to the wheel group it would increase security because that means it would be harder to guess the group that the asteriskpbx user is in?
0
 
LVL 20

Expert Comment

by:José Méndez
ID: 39977083
Those steps are meant for the asterisk process to be run as a non-root user. So they change the ownership of the /etc/asterisk folder among other steps to let that user open all necessary files and modules.

My asterisk box at home is also Debian based. Well, its a LinuxMint box to be honest, running as a server =S , so its Ubuntu really
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now