# Audio problems from external locations

**URL:** <https://community.asterisk.org/t/audio-problems-from-external-locations/24958>\
**Category:** Asterisk Support\
**Created:** [January 13, 2009, 5:32pm UTC](https://community.asterisk.org/t/audio-problems-from-external-locations/24958 "2009-01-13T17:32:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![VMCreate](https://avatars.discourse-cdn.com/v4/letter/v/a87d85/32.png) [@VMCreate](https://community.asterisk.org/u/VMCreate)\
**Post date:** [January 13, 2009, 5:32pm UTC](https://community.asterisk.org/t/audio-problems-from-external-locations/24958/1 "2009-01-13T17:32:11Z")

</div>

Hi folks,

apologise for probably duplicate topic, but I lack time for detailed searching.

I have an Asterisk box at home (connected to a SIP provider via common router, i.e. NAT) to accept incoming calls and either forward them to me (notebook with X-Lite) or record a message.

When I am at home, everything works fine. However, if I am logging from a different location (also connected with another router w/NAT), I experience difficulties with audio, to be more specific:

. audio works fine for voicemails (both listening and recording)  
. for inbound calls people cannot hear my voice (and sometimes I cannot hear them too).

Guess, the problem is with SIP configuration.

Can anyone with identical setup share their sip.conf settings?

Many thanks in advance.

---

<div class="post-metadata">

**Author:** ![chris.mylonas](https://avatars.discourse-cdn.com/v4/letter/c/f08c70/32.png) [@chris.mylonas](https://community.asterisk.org/u/chris.mylonas)\
**Post date:** [February 1, 2009, 2:50am UTC](https://community.asterisk.org/t/audio-problems-from-external-locations/24958/2 "2009-02-01T02:50:38Z")

</div>

make sure you have  
[externip=xxx.xxx.xxx.xxx](http://externip=xxx.xxx.xxx.xxx)  
localnet=192.168.x.0/255.255.255.0

or whatever your things are in sip.conf’s general section and nat=yes

I try not to do any NAT-ing because it is painful and time consuming to figure out - there are so many points of failure with any voip call, let alone having NAT issues.

---

<div class="post-metadata">

**Author:** ![VMCreate](https://avatars.discourse-cdn.com/v4/letter/v/a87d85/32.png) [@VMCreate](https://community.asterisk.org/u/VMCreate)\
**Post date:** [February 1, 2009, 8:02pm UTC](https://community.asterisk.org/t/audio-problems-from-external-locations/24958/3 "2009-02-01T20:02:06Z")

</div>

Thanks, Chris!

The issue seems to be a kind of a mystery. In fact I had both of “externip” and “localnet” specified along with “nat=yes”.

However, without any changes made to confs within 2 days it started working normally. Till the day 😄

---

<div class="post-metadata">

**Author:** ![ianplain](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/ianplain/32/1776_2.png) [@ianplain](https://community.asterisk.org/u/ianplain)\
**Post date:** [February 1, 2009, 8:21pm UTC](https://community.asterisk.org/t/audio-problems-from-external-locations/24958/4 "2009-02-01T20:21:55Z")

</div>

make sure you have canreinvite=no and a qualify=3000 or so set in the sip.conf

---

<div class="post-metadata">

**Author:** ![VMCreate](https://avatars.discourse-cdn.com/v4/letter/v/a87d85/32.png) [@VMCreate](https://community.asterisk.org/u/VMCreate)\
**Post date:** [February 4, 2009, 7:17pm UTC](https://community.asterisk.org/t/audio-problems-from-external-locations/24958/5 "2009-02-04T19:17:14Z")

</div>

Ian,

these were set from the very beginning as well.

---

<div class="post-metadata">

**Author:** ![ianplain](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/ianplain/32/1776_2.png) [@ianplain](https://community.asterisk.org/u/ianplain)\
**Post date:** [February 4, 2009, 7:40pm UTC](https://community.asterisk.org/t/audio-problems-from-external-locations/24958/6 "2009-02-04T19:40:59Z")

</div>

Hi

Are both locations behind NAT ? if they are then you see , [voip-info.org/wiki/view/Aste … +solutions](http://www.voip-info.org/wiki/view/Asterisk+SIP+NAT+solutions) , option 4

Ian

---

<div class="post-metadata">

**Author:** ![VMCreate](https://avatars.discourse-cdn.com/v4/letter/v/a87d85/32.png) [@VMCreate](https://community.asterisk.org/u/VMCreate)\
**Post date:** [February 5, 2009, 7:11pm UTC](https://community.asterisk.org/t/audio-problems-from-external-locations/24958/7 "2009-02-05T19:11:09Z")

</div>

Ian,

many thanks for the link and your assistance, indeed, both locations are behind NATs.

But the puzzle is that sip.conf was made only once! And after 2 days of audio problems it started working normally as it should from the beginning 😄

---

<div class="post-metadata">

**Author:** ![cerien.jean](https://avatars.discourse-cdn.com/v4/letter/c/e495f1/32.png) [@cerien.jean](https://community.asterisk.org/u/cerien.jean)\
**Post date:** [February 5, 2009, 8:03pm UTC](https://community.asterisk.org/t/audio-problems-from-external-locations/24958/8 "2009-02-05T20:03:26Z")

</div>

I had something similar - got a config working, and then stopped mysteriously…

my guess is that it was linked to the stun server, which was the only element not under my control !

I eventually solved the problem by disabling STUN (using ZOIPER) playing with the externip, localnet AND fromdomain parameters… testing one with the other, etc… it eventually worked with externip = public IP of the network of the A\* box, localnet = local network adress of the A\* box, and fromdomain=local network adress of the A\*

hope this helps,

j.
