Question

Asterisk; Calls work, but no voice.

Asked by: Tagor

I have the following problem with Asterisk after someone installed fax support on my Asterisk server:

When I call internally everything works fine. This is how my setup is like:
SIP software phone -> asterisk -> voip provider -> phone

When I call someone, or someone calls me I can't hear the other side neither does the other side hear me. But if he/she calls my number, here hears the ring and a short welcome message. When the connection is established between us, we don't hear anything anymore.

Does anyone know how to fix this?

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2006-02-11 at 08:09:47ID21732917
Tags

asterisk

,

voice

Topic

Voice Over IP

Participating Experts
1
Points
125
Comments
25

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Asterisk: converting from sip to IAX2
    How do i beging to setup my asterisk server and phones to work with IAX2 instead of sip
  2. Asterisk VoIP server (SIP) behind ISA 2006 (NAT) s…
    Im running an AsteriskNOW server on my internal network (192.168.30.12) and an ISA 2006 server that provides the internet for the internal clients and servers (ISA internal: 192.168.30.10). Now I want to make it possible for external users (VoIP phones) to connect to my int...
  3. Nokia E51, VoIP, Asterisk
    Hi, Outbound calls are working perfect on VoIP. However, incoming calls do not work. When an incoming call from a outside line are made to the VOIP number. The callers phone ring. The nokia E51 receiver of the call, shows the incoming call on the display, however when a ...
  4. asterisk calling problem
    Hello experts, I have installed an asterisk in a debian lenny distro. and now i am trying to place calls between two sip phones(i am using xLite) installed on two different pc(note these PCs are in a LAN while server is situated remotely) i have made two configuration files...
  5. sipdroid + asterisk
    When connecting to an asterisk box using sipdroid on an android based phone, you can make calls but not receive. The phone gets UNREACHABLE after just seconds. If you use pbxes.org then you are able to make and receive calls without problem. What's the difference between th...
  6. Echo in Asterisk
    I have Asterisk 1.6.2.2 on RHEL 5 I can see the voice quality is not that good, also I can hear echo, I have googled the problem, and I found some sites are advising to use codec G711 although it is consuming too much bandwdth and others are advising to use the open source ec...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: TagorPosted on 2006-02-11 at 17:27:15ID: 15932900

Here is some extra information: if I get the mailbox and say something then it is recorded correctly. This is when I call from outside and when I use a sip software phone.

So it's only if there is a connection between two users, then I don't hear anything.

 

by: grbladesPosted on 2006-02-13 at 02:47:13ID: 15939951

Can you connect to the asterisk console and post the output when you establish a call.

Was the server rebooted after fax support added? I would disable the firewall (iptables) temporarily to see if that helps.

 

by: TagorPosted on 2006-02-13 at 09:12:54ID: 15942937

> Can you connect to the asterisk console and post the output when you establish a call.
Sure here it is:

    -- Executing Goto("SIP/***MY-NUMBER***-1287", "inter|212|1") in new stack
    -- Goto (inter,212,1)
    -- Executing Macro("SIP/***MY-NUMBER***-1287", "internal|212|212@voicemail") in new stack
    -- Executing Set("SIP/***MY-NUMBER***-1287", "CALL=***EXTERNAL-NUMBER***+212+20060213-181017") in new stack
    -- Executing Monitor("SIP/***MY-NUMBER***-1287", "wav|***EXTERNAL-NUMBER***+212+20060213-181017|m") in new stack
    -- Executing Dial("SIP/***MY-NUMBER***-1287", "SIP/212|20") in new stack
    -- Called 212
    -- SIP/212-102b is ringing
    -- SIP/212-102b answered SIP/***MY-NUMBER***-1287

> Was the server rebooted after fax support added?
Yes

> I would disable the firewall (iptables) temporarily to see if that helps.
It is already disabled.

 

by: grbladesPosted on 2006-02-13 at 10:23:32ID: 15943581

Can you connect to asterisk with 'asterisk -r -vvv' instead as some information seems to be missing.

When I make an outgoing call I get the following :-

    -- Accepting AUTHENTICATED call from 82.24.x.x:
       > requested format = gsm,
       > requested prefs = (),
       > actual format = gsm,
       > host prefs = (gsm|ilbc),
       > priority = mine
    -- Executing Dial("IAX2/6152-3", "IAX2/xxxxxx@voiptalk/4413444xxxxx|60|Tr") in new stack
    -- Called xxxxxx@voiptalk/441344xxxxxx
    -- Call accepted by 217.14.x.x (format ilbc)
    -- Format for call is ilbc
    -- IAX2/voiptalk-4 is making progress passing it to IAX2/6152-3
    -- IAX2/voiptalk-4 answered IAX2/6152-3
    -- Attempting native bridge of IAX2/6152-3 and IAX2/voiptalk-4
    -- Operating with different codecs 2[0x2 (gsm)] 1024[0x400 (ilbc)] , can't native bridge...

I think I have a problem one where asterisk was attempting to do a native bridge between the internal phone and the isp which resulted in the call being blocked by the company firewall.
Native bridging is where asterisk tells each party the IP address of the other end and expects them to communicate directly. I think I just forced the use of a different codec on the ISP link so native bridging would never be attempted. I cant remember if the problem was with IAX or SIP however.

 

by: TagorPosted on 2006-02-13 at 13:41:31ID: 15945426

I now used asteriks -r -vvv. Then I get the below output. By the way the above log is when I called from outside to my asterisk server. This is from internal to outside:

   -- Executing Dial("SIP/212-f215", "SIP/***NUMBER-TO***@12connect") in new stack
    -- Called ***NUMBER-TO***@12connect
    -- SIP/12connect-ca85 is ringing
    -- SIP/12connect-ca85 is making progress passing it to SIP/212-f215
    -- SIP/12connect-ca85 answered SIP/212-f215
    -- Attempting native bridge of SIP/212-f215 and SIP/12connect-ca85
  == Spawn extension (inter, ***NUMBER-TO***, 1) exited non-zero on 'SIP/212-f215'

 

by: grbladesPosted on 2006-02-14 at 00:53:56ID: 15949167

Looks like native bridging is being used. Therefore I suspect the problem is that when the native bridging is completed and the phone and ISP try to communicate directly the packets are blocked somehow. This is probably due to your company firewall.

What codecs are you using for the ISP link and the phones?
Normally this sory of thing does not occur as internal phones use the high quality G711 codec while the codec used over the internet is a higher compression one such as SPEEX or gsm.

Is the phone your are using a soft phone or do you have a hardware one to try aswell?

 

by: grbladesPosted on 2006-02-14 at 01:08:57ID: 15949222

Have a look at this page http://www.dslreports.com/forum/remark,14632031
It seems to be discussing the same problem that you have.

Is your asterisk box directly connected to the internet or is there a firewall or router performing NAT inbetween?
If there is I would look at the site above and apply the entries for fixing the RTP ports and forwarding them on the router/firewall.

 

by: TagorPosted on 2006-02-14 at 08:04:02ID: 15951989

> This is probably due to your company firewall.
I've I connect using x-lite to the sip provider directly, then it uses the same router and everything works fine. I have enabled DMZ on all routers.

> What codecs are you using for the ISP link and the phones?
Phones:
disallow=all
allow=alaw
allow=ulaw
allow=gsm

Sip provider:
disallow=all
allow=alaw
allow=ulaw
bandwidth=high

> Is the phone your are using a soft phone or do you have a hardware one to try aswell?
Sorry, I only have a soft phone. Though I tried JSphone too.

> Is your asterisk box directly connected to the internet or is there a firewall or router performing NAT inbetween?
Firewalls are disabled. However there are some routers which have DMZ enabled. This is how the setup looks like:
computer -> WLAN router -> router -> internet

 

by: grbladesPosted on 2006-02-14 at 08:11:06ID: 15952090

Can you try confiuring your soft phone to use gsm only (or allow only gsm for the phones temporarily) and see if that works?

 

by: TagorPosted on 2006-02-14 at 09:38:49ID: 15952917

Thanks. I tried that, but also doesn't work.

 

by: grbladesPosted on 2006-02-14 at 10:18:00ID: 15953265

In /etc/asterisk/rtp.conf make sure the rtp start and end points are defined and make sure these UDP ports and UDP port 5060 is forwarded on your routers to the asterisk machine.

In /etc/asterisk/sip_nat.conf make sure the following lines are set correctly:-
externip=[your external public IP address]
localnet=[local internal ip address]/255.255.255.0

In your extensions.conf or wherever you have the ISP defined make sure the following are set:-
canreinvite=no
nat=yes

Then go to 'asterisk -r -vvv' and type 'reload' and post the output again when you try to make a call.

 

by: TagorPosted on 2006-02-14 at 11:41:33ID: 15954003

> In /etc/asterisk/rtp.conf make sure the rtp start and end points are defined and make sure these UDP ports and UDP port 5060 is forwarded on your routers to the asterisk machine.
They were not set so I used the sample entries in rtp.conf.

> In /etc/asterisk/sip_nat.conf make sure the following lines are set correctly:-
This file didn't exist so I created it with the above entries.

> In your extensions.conf or wherever you have the ISP defined make sure the following are set:-
These settings were already in there.

> Then go to 'asterisk -r -vvv' and type 'reload' and post the output again when you try to make a call.
This is the output:

    -- Executing Dial("SIP/212-f936", "SIP/***NUMBER-TO***@12connect") in new stack
    -- Called ***NUMBER-TO***@12connect
    -- SIP/12connect-428e is ringing
    -- SIP/12connect-428e is making progress passing it to SIP/212-f936
    -- SIP/12connect-428e is ringing
    -- SIP/12connect-428e is making progress passing it to SIP/212-f936
    -- SIP/12connect-428e answered SIP/212-f936
    -- Attempting native bridge of SIP/212-f936 and SIP/12connect-428e
  == Spawn extension (inter, ***NUMBER-TO***, 1) exited non-zero on 'SIP/212-f936'

 

by: grbladesPosted on 2006-02-15 at 00:38:34ID: 15958466

Can you try again but using different codecs and post the output again. i.e so the codec used by the software client and isp are different. You should then see a message saying it is unable to native bridge because different codecs are being used.

On a separate issue have you tried this client?
http://www.laser.com/dante/diax/diax.html
It uses the IAX protocol instead which is a lot more NAT friendly so is far more likly to work from hotels etc...

 

by: TagorPosted on 2006-02-15 at 04:56:20ID: 15959735

I just tried these settings and then made a call:
Phone: gsm
Sip provider: alaw

Output:
    -- Registered SIP '212' at 192.168.1.2 port 5063 expires 1800
    -- Executing Dial("SIP/212-27e9", "SIP/***NUMBER-TO***@12connect") in new stack
    -- Called ***NUMBER-TO***@@12connect
    -- SIP/12connect-9ea2 is ringing
    -- SIP/12connect-9ea2 is making progress passing it to SIP/212-27e9
    -- SIP/12connect-9ea2 is ringing
    -- SIP/12connect-9ea2 is making progress passing it to SIP/212-27e9
    -- SIP/12connect-9ea2 answered SIP/212-27e9
    -- Attempting native bridge of SIP/212-27e9 and SIP/12connect-9ea2
  == Spawn extension (inter, ***NUMBER-TO***@, 1) exited non-zero on 'SIP/212-27e9'

I also tried DIAX but I always get this error even while the settings are correct: Feb 15 13:54:07 NOTICE[11414]: chan_iax2.c:5038 register_verify: No registration for peer '212' (from 192.168.1.2)

Thanks again for helping. I have raised the point a bit.

 

by: grbladesPosted on 2006-02-15 at 05:06:55ID: 15959803

I think the phone and ISP are still using the same coded as asterisk is attempting to do a native bridge.

DIAX only uses the IAX protocol so you need to setup the extensions in iax.conf aswell. When an internal number is dialed I have my 'dial' command dialing the SIP and IAX extensions at the same time so both the software client and the desk phone ring until one of them answers to it times out.

 

by: TagorPosted on 2006-02-15 at 06:08:18ID: 15960234

> I think the phone and ISP are still using the same coded as asterisk is attempting to do a native bridge.
I checked it again. And it only allows GSM.

I added the phone to iax.conf. I was now able to login. I tried a call to an external phone. However I still don't hear anything. I also tried an internal call to the phone which is configured in sip.conf. I noticed that on both phones only the line of the microphone volume moves. The speaker volume bar just doesn't show anything.

 

by: TagorPosted on 2006-02-15 at 06:30:33ID: 15960427

I forgot to post the log from an outgoing call:

    -- Accepting UNAUTHENTICATED call from 192.168.1.2:
       > requested format = gsm,
       > requested prefs = (),
       > actual format = alaw,
       > host prefs = (alaw|ulaw|gsm),
       > priority = mine
    -- Executing Dial("IAX2/213-5", "SIP/***NUMBER-TO***@12connect") in new stack
    -- Called ***NUMBER-TO***@12connect
    -- SIP/12connect-0b00 is ringing
    -- SIP/12connect-0b00 is making progress passing it to IAX2/213-5
    -- SIP/12connect-0b00 is ringing
    -- SIP/12connect-0b00 is making progress passing it to IAX2/213-5
    -- SIP/12connect-0b00 answered IAX2/213-5
  == Spawn extension (inter, ***NUMBER-TO***, 1) exited non-zero on 'IAX2/213-5'
    -- Hungup 'IAX2/213-5'

Note: now the phone is only using IAX. The sip provider still uses SIP. Do I need to use IAX for the sip provider too?

 

by: grbladesPosted on 2006-02-15 at 06:50:42ID: 15960630

No thats fine. Asterisk will decode and re-encode the voice and pass it between the clients.

Can you no make an outgoing and a separate incoming call and let me know if there is no audio at all or if it is in one direction only.

What are you using as the WLAN router and the other router?
Are either of these performing NAT?
Do you have the ports forwarded on either of the devices if they are performing NAT?

 

by: TagorPosted on 2006-02-15 at 07:44:42ID: 15961207

Above you will see an outgoing call.

When I try to make an incoming call, it says the line is busy?? I already removed the entry in sip.conf. But it still says busy.

Here is how my routers are configured:

Internet -> SpeedTouch 510 -> Linksys BEFW11S4 -> Asterisk server

The SpeedTouch 510 is connected to the linksys WAN port. It uses DMZ 'default server' to route all traffic to the WAN port of the Linksys router. The Linksys router again transfers all data using DMZ to the Asterisk server.

My computer connects true the Linksys router to the Asterisk server.

 

by: TagorPosted on 2006-02-15 at 10:59:35ID: 15963459

I'm not sure whether I already told this or not. But internal calls have the same problem.

 

by: TagorPosted on 2006-02-15 at 12:33:38ID: 15964518

I found out that the problem was caused by a bug: http://bugs.digium.com/view.php?id=6349

The Asterisk server was downgraded due to the fax which was not compatible with the new version.

I will ask an admin to give you 50% of the points for your help. Thanks a lot for helping!

 

by: grbladesPosted on 2006-02-16 at 00:06:34ID: 15968942

What was the incompatability with the fax out of interest?
I am running the fax with 1.2.0 release candidate which is working fine and was planning to upgrade when we did final testing once we got the desk phones.

 

by: TagorPosted on 2006-02-20 at 10:43:42ID: 16002313

Sorry, I have no idea about that. I did not setup the fax thing.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...