Audio drops at 20 seconds exactly

csierra
Posts: 85
Member Since:
2008-02-22

I am almost sure this has to do with codecs & licencing; my question is how do I setup everything (Trunks, Inbound Roots SIP peers com, etc) to use onle alaw and ulaw? If somebody had the same, what was causing this? how to fix it?

Thanks

--

VOIP Newbie



ppetroff
Posts: 58
Member Since:
2007-05-03
General settings

Located in /etc/asterisk there is a file called sip_general_additional.conf

There you will see something like this

vmexten=*97
bindport=5060
bindaddr=0.0.0.0
disallow=all
allow=ulaw
allow=alaw
context=from-sip-external
callerid=Unknown
notifyringing=yes
notifyhold=yes
limitonpeers=yes
tos_sip=cs3
tos_audio=ef
tos_video=af41

In this config the only allowed voice codecs are the alaw and ulaw.

But to really help you out, there is not enough information to assist.

Are these calls failing from phone to phone?
What is the prefered codec order on the phone?
What is your upstream? are you using SIP, IAX2 or do you have a card for pstn?
Did you set in the asterisk cli core set verbose 9 and sip debug? to see if there is a cancel or bye in the sip messages?

I'm sure that after we can see what is happening, someone will be able to help, just as i hope that this helps.



joshpatten
Posts: 733
Member Since:
2007-01-20
For me, it was a SIP proxy

For me, it was a SIP proxy problem, though I doubt you are using one of those. What is happening is Asterisk is waiting to receive a certain acknowledgment packet and if it doesn't receive it after 20 seconds will tear down the call. Please post some CLI goodness ( asterisk -rvvvvvvvvvv ) so we can analyze further, it could be a network or NAT problem.



stechnique
Posts: 733
Member Since:
2008-02-21
I'm betting on NAT problems.

I'm betting on NAT problems.



csierra
Posts: 85
Member Since:
2008-02-22
CLI messages

First, Thank you both for your posts, here is what I can see when logged to Asterisk, CLI messages:
===============
Connected to Asterisk 1.4.20-1 RPM by vc-rpms@voipconsulting.nl currently running on holex (pid = 2432)
Verbosity is at least 12
-- Executing [s@from-sip-external:1] GotoIf("SIP/204.11.194.35-088df608", "1?from-trunk||1") in new stack
-- Goto (from-trunk,s,1)
-- Executing [s@from-trunk:1] Set("SIP/204.11.194.35-088df608", "__FROM_DID=s") in new stack
-- Executing [s@from-trunk:2] Gosub("SIP/204.11.194.35-088df608", "app-blacklist-check|s|1") in new stack
-- Executing [s@app-blacklist-check:1] LookupBlacklist("SIP/204.11.194.35-088df608", "") in new stack
-- Executing [s@app-blacklist-check:2] GotoIf("SIP/204.11.194.35-088df608", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:3] Return("SIP/204.11.194.35-088df608", "") in new stack
-- Executing [s@from-trunk:3] GotoIf("SIP/204.11.194.35-088df608", "1 ?cidok") in new stack
-- Goto (from-trunk,s,5)
-- Executing [s@from-trunk:5] NoOp("SIP/204.11.194.35-088df608", "CallerID is "2222488492" ") in new stack
-- Executing [s@from-trunk:6] Set("SIP/204.11.194.35-088df608", "_RGPREFIX=Holex") in new stack
-- Executing [s@from-trunk:7] Set("SIP/204.11.194.35-088df608", "CALLERID(name)=Holex2222488492") in new stack
-- Executing [s@from-trunk:8] Goto("SIP/204.11.194.35-088df608", "ivr-4|s|1") in new stack
-- Goto (ivr-4,s,1)
-- Executing [s@ivr-4:1] Set("SIP/204.11.194.35-088df608", "LOOPCOUNT=0") in new stack
-- Executing [s@ivr-4:2] Set("SIP/204.11.194.35-088df608", "__DIR-CONTEXT=default") in new stack
-- Executing [s@ivr-4:3] Set("SIP/204.11.194.35-088df608", "_IVR_CONTEXT_ivr-4=") in new stack
-- Executing [s@ivr-4:4] Set("SIP/204.11.194.35-088df608", "_IVR_CONTEXT=ivr-4") in new stack
-- Executing [s@ivr-4:5] GotoIf("SIP/204.11.194.35-088df608", "0?begin") in new stack
-- Executing [s@ivr-4:6] Answer("SIP/204.11.194.35-088df608", "") in new stack
-- Executing [s@ivr-4:7] Wait("SIP/204.11.194.35-088df608", "1") in new stack
-- Executing [s@ivr-4:8] Set("SIP/204.11.194.35-088df608", "TIMEOUT(digit)=3") in new stack
-- Digit timeout set to 3
-- Executing [s@ivr-4:9] Set("SIP/204.11.194.35-088df608", "TIMEOUT(response)=60") in new stack
-- Response timeout set to 60
-- Executing [s@ivr-4:10] BackGround("SIP/204.11.194.35-088df608", "custom/PCM_Fin_Raiz1") in new stack
-- Playing 'custom/PCM_Fin_Raiz1' (language 'en')
== Spawn extension (ivr-4, s, 10) exited non-zero on 'SIP/204.11.194.35-088df608'
-- Executing [h@ivr-4:1] Hangup("SIP/204.11.194.35-088df608", "") in new stack
== Spawn extension (ivr-4, h, 1) exited non-zero on 'SIP/204.11.194.35-088df608'
holex*CLI>
==============

VOIP Newbie

--

VOIP Newbie



csierra
Posts: 85
Member Since:
2008-02-22
Another, asterisk -rvvvvvvvvvv post

------
[holex.dyndns.org ~]# asterisk -rvvvvvvvvvv
Asterisk 1.4.20-1 RPM by vc-rpms@voipconsulting.nl, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core 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 'core show license' for details.
=========================================================================
== Parsing '/etc/asterisk/asterisk.conf':Found
Connected to Asterisk 1.4.20-1 RPM by vc-rpms@voipconsulting.nl currently running on holex (pid = 2432)
Verbosity is at least 12
-- Executing [s@from-sip-external:1] GotoIf("SIP/204.11.194.35-088d4d20", "1?from-trunk||1") in new stack
-- Goto (from-trunk,s,1)
-- Executing [s@from-trunk:1] Set("SIP/204.11.194.35-088d4d20", "__FROM_DID=s") in new stack
-- Executing [s@from-trunk:2] Gosub("SIP/204.11.194.35-088d4d20", "app-blacklist-check|s|1") in new stack
-- Executing [s@app-blacklist-check:1] LookupBlacklist("SIP/204.11.194.35-088d4d20", "") in new stack
-- Executing [s@app-blacklist-check:2] GotoIf("SIP/204.11.194.35-088d4d20", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:3] Return("SIP/204.11.194.35-088d4d20", "") in new stack
-- Executing [s@from-trunk:3] GotoIf("SIP/204.11.194.35-088d4d20", "1 ?cidok") in new stack
-- Goto (from-trunk,s,5)
-- Executing [s@from-trunk:5] NoOp("SIP/204.11.194.35-088d4d20", "CallerID is "2222488492" ") in new stack
-- Executing [s@from-trunk:6] Set("SIP/204.11.194.35-088d4d20", "_RGPREFIX=Holex") in new stack
-- Executing [s@from-trunk:7] Set("SIP/204.11.194.35-088d4d20", "CALLERID(name)=Holex2222488492") in new stack
-- Executing [s@from-trunk:8] Goto("SIP/204.11.194.35-088d4d20", "ivr-4|s|1") in new stack
-- Goto (ivr-4,s,1)
-- Executing [s@ivr-4:1] Set("SIP/204.11.194.35-088d4d20", "LOOPCOUNT=0") in new stack
-- Executing [s@ivr-4:2] Set("SIP/204.11.194.35-088d4d20", "__DIR-CONTEXT=default") in new stack
-- Executing [s@ivr-4:3] Set("SIP/204.11.194.35-088d4d20", "_IVR_CONTEXT_ivr-4=") in new stack
-- Executing [s@ivr-4:4] Set("SIP/204.11.194.35-088d4d20", "_IVR_CONTEXT=ivr-4") in new stack
-- Executing [s@ivr-4:5] GotoIf("SIP/204.11.194.35-088d4d20", "0?begin") in new stack
-- Executing [s@ivr-4:6] Answer("SIP/204.11.194.35-088d4d20", "") in new stack
-- Executing [s@ivr-4:7] Wait("SIP/204.11.194.35-088d4d20", "1") in new stack
-- Executing [s@ivr-4:8] Set("SIP/204.11.194.35-088d4d20", "TIMEOUT(digit)=3") in new stack
-- Digit timeout set to 3
-- Executing [s@ivr-4:9] Set("SIP/204.11.194.35-088d4d20", "TIMEOUT(response)=60") in new stack
-- Response timeout set to 60
-- Executing [s@ivr-4:10] BackGround("SIP/204.11.194.35-088d4d20", "custom/PCM_Fin_Raiz1") in new stack
-- Playing 'custom/PCM_Fin_Raiz1' (language 'en')
== Spawn extension (ivr-4, s, 10) exited non-zero on 'SIP/204.11.194.35-088d4d20'
-- Executing [h@ivr-4:1] Hangup("SIP/204.11.194.35-088d4d20", "") in new stack
== Spawn extension (ivr-4, h, 1) exited non-zero on 'SIP/204.11.194.35-088d4d20'
holex*CLI>
--------

To add something new; this extrange drops and no dial tones does NOT happen between sip peers, nor with the ZAP channels. It only happens with this DID demo.

VOIP Newbie

--

VOIP Newbie



stechnique
Posts: 733
Member Since:
2008-02-21
Do you have a sip_nat.conf

Do you have a sip_nat.conf file in /etc/asterisk?



csierra
Posts: 85
Member Since:
2008-02-22
Empty sip_nat.conf !!!!

At this point I am atonished! This file was not empty; weel now is completely blank! I am looking for a sip_nat.conf.bak but nothing!

I remember I modified days ago this file to setup the dyndns domain; another thing is in modules DHCP is not installed?

What could this be?

VOIP Newbie

--

VOIP Newbie



stechnique
Posts: 733
Member Since:
2008-02-21
DHCP module is a frontend to

DHCP module is a frontend to the DHCP server, your server might be running even with the module not installed.
"service --status-all | grep dhcpd" will tell you if it is.

Reapply externhost, localnet and externrefresh variables in sip_nat.conf and see if that does it.
Are your extensions set to nat=yes?



csierra
Posts: 85
Member Since:
2008-02-22
I have made a recap of the entire set of SIP files

Hello,

Now even inside the NAT (LAN) sip peers fail to get more than 20 secs audio, no callee audio at all; I don´t now how to put attachments here, so I´ve uploaded the entire SIP files in a recap, you can get it here http://holidayexpress.com.mx/sip.pdf

I am *very frustrated* because this was not happening; I am not sure what could had happened... We got installed a hell-zapmicro card, the card is working fine; we can now get and make calls tru the ZAP channels ok, but sip is no longer working... seems to me pretty odd ZAP install could mess SIP?

VOIP Newbie

--

VOIP Newbie



stechnique
Posts: 733
Member Since:
2008-02-21
I would remove nat=yes from

I would remove nat=yes from sip_nat.conf and check the internal extensions, set their nat=no in the extension details.
Are the ports properly forwarded into your trixbox from external?
5060 UDP
10000-20000 UDP (unless you changed this in rtp.conf)



csierra
Posts: 85
Member Since:
2008-02-22
RTP Conf, Box IP address, Router IP address setting...

Hi stechnique, thanks for your prompt response,

Here´s the RTP.conf:
-------------
;
; RTP Configuration
;
[general]
;
; RTP start and RTP end configure start and end addresses
;
rtpstart=10001
rtpend=20000
----------------
Please note the firewall settings on the router:
TCP 22
TCP 6600
TCP 10000
UDP 4569
UDP 5004-5082
UDP 10001-20000

Also, the trixbox network settings are

[holex.dyndns.org ~]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0E:2E:23:0D:A6
inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20e:2eff:fe23:da6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2328 errors:0 dropped:0 overruns:0 frame:0
TX packets:5873 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:430804 (420.7 KiB) TX bytes:1425388 (1.3 MiB)
Interrupt:10 Base address:0x8000
*Note I use an out of DHCP address, I set the Trixbox Network settings eth0 to fixed IP, then the router accordingly reflects Trixbox_Srv -> 192.168.1.10 as fixed.

VOIP Newbie

--

VOIP Newbie



csierra
Posts: 85
Member Since:
2008-02-22
No joy here... yet

As toldme, changed some SIP peers nat=no, then changed sip_nat.conf nat=no, still no joy.

What keeps me challenged is that at PBX Status, shows the SIP peers registered, their IP (even remote ones) and their response time (263 ms) for a peer 10 miles form here; that remote peer cannot even hear (it's mute) the IVR announcement; here inside the box LAN, I can here the IVR, but cuts out after 20 secs, no dial tone response...

VOIP Newbie

--

VOIP Newbie



percykwong
Posts: 758
Member Since:
2007-04-30
Just a wild guess here, but

Just a wild guess here, but it could be your isp. Time Warner in NYC tried this crap with me (of course they denied it though)

--

-----------------------------------------------
Percy Kwong
Trixbox Tech Support - 202.600.3884

Swimminginthought.com



csierra
Posts: 85
Member Since:
2008-02-22
No way Jose!

I have downloaded a windows utility to check UDP ports; they are up and running; (changed de fwall redirecting all the needed ports to a Win PC, they are, for sure, open)

Now, I´ve been playing a bit with the x-ten eyebeam I have and still no joy at all, now we can see the SIP registers 3 channels, but none has a format?

Peer User/ANR Call ID Seq (Tx/Rx) Format Hold Last Message
192.168.1.65 (None) MDUxNDliYmM 00101/00002 0x0 (nothing) No Rx: REGISTER
192.168.1.65 (None) ZDgzNmUyOTN 00101/00004 0x0 (nothing) No Rx: REGISTER
192.168.1.65 6050 Mjk5MWFkMTY 00103/00002 0x0 (nothing) No Tx: NOTIFY

I have read at some book it should say the uLaw, aLaw or something similar at that 'format' field, is it´n so?

Please tell me, what would YOU do If you had this problem? Start all over again? throw away my 2wire and change for something else? Perhaps I´ve been thinking in trying a linksys behind the 2wire (set it up as a pure dumb DSL modem) and let the linksys handle this? should I intermediate the modem and the linksys router with a pure firewall? I have read many posts regarding how rtp was not created for NATs and iv4 url´s but here in the real world are many users who actually make work an asterisk pbx behind a NAT; I don´t see why I cant..

Please advise

VOIP Newbie

--

VOIP Newbie



csierra
Posts: 85
Member Since:
2008-02-22
Added more info here...

We have a first more info file at http://holidayexpress.com.mx/sip.pdf regarding SIP config files
And now we have a firewall report, PBX status with odd behaviors here

http://holidayexpress.com.mx/mess.pdf And that mess name is just that, this is a mess; packets are going thru and no voice no nada amigos!

VOIP Newbie

--

VOIP Newbie



stechnique
Posts: 733
Member Since:
2008-02-21
Don't worry about the

Don't worry about the "packet pass, mystery port??" thing in your firewall, this is the source port which is often randomized. What you want to be looking at is the destination port, which is usually the one you will block/pass.
I'm not fluent in spanish but your firewall screen looks like it's unblocking the proper ports, but are you sure it's actually forwarding them to trixbox? You need NAT port forwarding.
Also when I said to remove nat=yes from sip_nat.conf, I didn't mean to replace with nat=no, just remove this line.
nat=no should appear in your extensions pages for the local extensions.



csierra
Posts: 85
Member Since:
2008-02-22
I´ve tryed that, too

As to where are those fwall ports you saw open, those are forwarded to the Trixbox, I just covered the router public IP, at left, you can see Trixbox_Srv, that is the PBX, It is set to receive traffic for those ports. As of the nat=no, I´ve removed that line and stated no in extentions config, and if you take a closer look at the firewall log, where I circled the phone IP, the Box IP and the fwall says the packets are going thru, but nada, nothing..
What else could it be?

VOIP Newbie

--

VOIP Newbie



csierra
Posts: 85
Member Since:
2008-02-22
Almost SOLVED...

Well in order to give some help to somebody in my situation in the future, I am providing the following tips & sollutions that might help solving their problem too.

1. Begin learning a bit more on the topic, a good start point would be this links:
http://www.fridu.org/index.php?option=com_content&task=category&s...
In this link, at step 1, do the STUN client & server test; download the STUN client and make the test provided in the article.

2. Check with this software packages (if running a couple of PC's within the LAN with Windows) and then with one PC outside the LAN and another inside your LAN, follow the article at http://www.codeproject.com/vb/net/UDP_Send_Receive.asp

3. First, get to a working config; this made a starting point to make things work for a first instance:
- Go and set your router to use open DNS servers, check they are working, more info at www.opendns.org
-Make your router firewall pinholes with the proper ports; also make it assing a DHCP assined IP for the box, DO NOT USE A FIXED DHCP IP
- Now go and set your Trixbox Network configuration as follow:
-set eth0 to use a Fixed IP within the DHCP range; normally between 192.168.1.0 and ..168.1.253; I´ve used ...1.69
-Reboot your trixbox and go back to Network settings, the use for the Host yourdomain.dyndns.org or whatever you are using (no-ip) for instance; and set the primary and secondary DNS addresses using opendns adresses accordingly.
-And last, go to sip_nat.conf and use EXTERNIP=yourwanip (do not use EXTERNTHOST=yourdomain.fynfns.org) yet..., post, reload and reset asterisk.

Now you should be able (at least until your ISP changes your wan ip) to make and receive calls between sip peers inside the NATed LAN where your Trixbox resides;

However; there still major challenges with 2 NATed connections; also, i cannot get DIDWW.com example t work yet; I get those 20 first seconds and no bidirectional yet.

Hope this gives some relief to those who pull out the lefts of their hair...

VOIP Newbie

--

VOIP Newbie



TDF
Posts: 483
Member Since:
2006-12-19
Did you get this resolved or

Did you get this resolved or have you stuck with using your externip instead of externhost ?

If its not solved try using NO-IP or similar instead of DYNDNS.

Ive spent all day looking at this 20 second drop problem which came on yesterday for no apparent reason. I just changed to a NO-IP address and it seems to have solved it. It makes no sense to me but I'm fairly sure that was the problem, I'll test further in the morning.



csierra
Posts: 85
Member Since:
2008-02-22
Still stuck, and confused...

Seems to me my ISP is blocking the 5060-5082 UDP port; however they still denying it; I´ll give a try to your solution however I think it has nothing to do at all; let´s see.

VOIP Newbie

--

VOIP Newbie



csierra
Posts: 85
Member Since:
2008-02-22
As predicted

No joy; for me, no-ip or dyndns makes no difference; the problem is not there both dns records point to my wan ip.

Again, to make clear the problem; if I do use externip=mywanip it does work (only inside the NATed LAN) outside SIP peers are able to register but not able to comunicate; sometimes I get unidirectional audio, sometimes I get nothing, nada!

Almost bold by now...

VOIP Newbie

--

VOIP Newbie



SkykingOH
Posts: 9541
Member Since:
2007-12-17
Quote: normally between
Quote:
normally between 192.168.1.0 and ..168.1.253; I´ve used ...1.69

No actually with a subnet mask of 255.255.255.0, 192.168.1.0 is the network address and can't be assigned to a host. The range of usable IP's would be 192.168.1.1 - 192.168.1.254

--

Scott

aka "Skyking"



kb9mwr
Posts: 166
Member Since:
2006-09-09
http://www.dyndns.com/support

http://www.dyndns.com/support/tools/openport.html

There should be no difference between a no-ip or dyndns. Use the command line tool dig to check if the entry is reporting the correct wan address, or if there are any duplicate answers being reported. But apparently thats working if you are registering.

Sounds like ports 5060 is open and working correctly as things are registering. Check /etc/asterisk/rtp.conf and look at your RTP (audio) port range. You can change these if for some reason they are being blocked.

Another thought is do you you have any other applications on your network that might be using upnp with conflicting ports in the RTP range? If no, and everything is open and forwarded properly, I'd say you have a possible router CPU load issue.

I looked at your X-Lite config, looked good to me, even thought I don't mess with the Authorization user name. Honestly I've never been very impressed with the 2-Wire DSL modems. If you can put that in a transparent bridging mode that would take the 2Wire's firewall and NAT translation out of the picture for troubleshooting.



csierra
Posts: 85
Member Since:
2008-02-22
Following up with this

Hi guys, thanks for your replying...

1 wrote:
Sounds like ports 5060 is open and working correctly as things are registering. Check /etc/asterisk/rtp.conf and look at your RTP (audio) port range. You can change these if for some reason they are being blocked.

There is nothing attached but a laptop and another PC, thru eth, cabled; have a question; If the SIP phones can register means 5060/5061 are open? I am still confused; actually, my ISP denies closed ports except for UDP 5073/5077 wich they use to control stuff, but I have ran so many different utilities to check and some state ports are actually closed, some others state they are ok; what I suspect is that ISP might be scrutinizing this ports so hard that mess something on em; another thing my ISP cust service said is that they recomend to use UDP's between 8000-8750 for rtp; changed that (rtp.conf) and nothing, the same thing.

Another question is, if I setup the modem router (wich is such a piece of crap) as a bridge, and do DMZ (this is, turn off routing and firewall) and then attach a, let's say a Linksys router to it, would not this be to double up the prob? (double NAT traversing?) Is there actually a specific Linksys DSL modem router model wich you could recommend to me to *replace* the 2wire junk?

Also I would not like to go ahead and purchase more hardware if I cant make sure is not hte ISP and not the router; in that case, I am considering changing my ISP for a simmetric DSL (Telmex provides ADSL) but this change is only available wireless (I´ve read so many delay issues with wireless DSL) and is so expensive that I am at a dead alley here.

There stills the Skyking recommendation to go VPN but, the same again, have read lots (many) posts regarding Telmex DSL routers resetting and or blowing or dropping connections because of overhead due to VPN usage for transporting voice in a rather non industrial setting such as ADSL.

Also, ´ve been reading about third parties offering services within ranges from 4 to 50 usd a month to do the job 8working around ISP blockages, port issues and so) but I am very unsure... I have less than no experience with Unix / Linux / Asterisk that everything is so new to me I dont know how to work around this.

Thanks for your comments

VOIP Newbie

--

VOIP Newbie



csierra
Posts: 85
Member Since:
2008-02-22
Following up with this

Hi guys, thanks for your replying...

kb9 wrote:
Sounds like ports 5060 is open and working correctly as things are registering. Check /etc/asterisk/rtp.conf and look at your RTP (audio) port range. You can change these if for some reason they are being blocked.

There is nothing attached but a laptop and another PC, thru eth, cabled; have a question; If the SIP phones can register means 5060/5061 are open? I am still confused; actually, my ISP denies closed ports except for UDP 5073/5077 wich they use to control stuff, but I have ran so many different utilities to check and some state ports are actually closed, some others state they are ok; what I suspect is that ISP might be scrutinizing this ports so hard that mess something on em; another thing my ISP cust service said is that they recomend to use UDP's between 8000-8750 for rtp; changed that (rtp.conf) and nothing, the same thing.

Another question is, if I setup the modem router (wich is such a piece of crap) as a bridge, and do DMZ (this is, turn off routing and firewall) and then attach a, let's say a Linksys router to it, would not this be to double up the prob? (double NAT traversing?) Is there actually a specific Linksys DSL modem router model wich you could recommend to me to *replace* the 2wire junk?

Also I would not like to go ahead and purchase more hardware if I cant make sure is not hte ISP and not the router; in that case, I am considering changing my ISP for a simmetric DSL (Telmex provides ADSL) but this change is only available wireless (I´ve read so many delay issues with wireless DSL) and is so expensive that I am at a dead alley here.

There stills the Skyking recommendation to go VPN but, the same again, have read lots (many) posts regarding Telmex DSL routers resetting and or blowing or dropping connections because of overhead due to VPN usage for transporting voice in a rather non industrial setting such as ADSL.

Also, ´ve been reading about third parties offering services within ranges from 4 to 50 usd a month to do the job 8working around ISP blockages, port issues and so) but I am very unsure... I have less than no experience with Unix / Linux / Asterisk that everything is so new to me I dont know how to work around this.

Thanks for your comments

VOIP Newbie

--

VOIP Newbie



csierra
Posts: 85
Member Since:
2008-02-22
SIP debug log & Router log

Hello All,

I am bringing in these tw logs, the SIP IP debug log, and the router's fwall log, perhaps you can catch something helpful to know what is going on.

I´ve noticed that when the client (SIP phone) first sends, the router consider the incoming public IP as unknown and actually, drops the packets, but immediatly follows an amazing (to me) second sent from the very same public IP (phone) to the NAT ip address of the trixbox srv! and more amazingly, the router allows those packets to go thru!! I am annoyed and confused how is this showing up there? Perhapsis just the router way to tell us that the sent is being NATed to the inner IP addrs? if is that, WHAYAYA! WHY IS THAT WE HAVE NO AUDIO YET?¿?

The links:
http://holidayexpress.com.mx/sip_log.pdf
http://holidayexpress.com.mx/router_log.pdf

Thanks again

VOIP Newbie

--

VOIP Newbie



SkykingOH
Posts: 9541
Member Since:
2007-12-17
As I had indicated the only

As I had indicated the only definitive way to know if a UDP port is open is to run Wireshark or Ethereal on your laptop and watch the datagrams come in from the Internet.

Second issue, if you bridge that is at layer 2 so you would not be double NAT'ing.

NAT is a Layer 3 function.

--

Scott

aka "Skyking"



percykwong
Posts: 758
Member Since:
2007-04-30
ok, i've been watching this

ok, i've been watching this thread for a while and you're obviously about at the point of pulling your hair out. So here's my .02.

1. Have you tried just putting the trixbox on the internet directly? (for testing purposes) without the firewall obviously.

2. Have you tried another firewall? Also, what kind of firewall do you have?

3. Your CPE endpoint device from your isp.. is it giving you a public ip or a private ip address in a nat range? If it's doing the latter (like some verizon dsl implementations), you need to get the isp to assign a direct public ip to your side of the modem.

4. Have you tried a sip to sip connection directly from the CPE to something across the internet?

I think this would be a good place to start.. and if you're still about ready to pull your hair out, drop me a line and i'll troubleshoot with you over the phone as long as you pick up the toll charges. *cheers*

--

-----------------------------------------------
Percy Kwong
Trixbox Tech Support - 202.600.3884

Swimminginthought.com



csierra
Posts: 85
Member Since:
2008-02-22
Thank you

Right now I am following Scott recommendation; I am following closely what wireshark shows up - by the way, It´s a wonderful tool. So far, I see everything ok BUT I see packages saying 401 auth denied for UTP´s within the range, so, so far, 5060 and 5061 works just fine, the issue is in the RTP UDP's. There is the flaw.

The action plan, is as follows:
1. Will do a DMZ direct to the Trixbox and if this fails, then
2. Will go for a different older 2wire modem-router-fwall that I´ve read is actually working with a setup like mine, and if this fails, then
3. I am going to look for purchase either a Netgear FVX538 or a Linksys RV082 Router, and if that fails, then
4. I am going to change ISP for another one more VoIP friendly and if that fails, then
5. I am going to put myself on fire and throw me from the 15th floor while burning.

Meanwhile, I am going to take your offer, I´ll contact you tomorrow.

Thanks again Percy

VOIP Newbie

--

VOIP Newbie



SkykingOH
Posts: 9541
Member Since:
2007-12-17
If you are getting auth

If you are getting auth denied you have a CODEC mismatch.

If you want to send me the PCAP file I can have a look tomorrow night. Just PM me the link to where you put it.

Send Percy the link too since he volunteered also!!!

--

Scott

aka "Skyking"



csierra
Posts: 85
Member Since:
2008-02-22
Auth denied, yeah..

Well Scott, yes you can see the wireshark packet 40 detail (showed many more just like that one) says as follows:
_________________________
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 189.130.133.143:8000;branch=z9hG4bK-d8754z-a6477a1b874b8012-1---d8754z-;received=189.130.133.143;From: "Carlos Sierra";tag=9a2b4879
To: "Carlos Sierra";tag=as706368c6
Call-ID: ZGIzMDkyMmQzNWFiZjM2N2Y2MTlkMzVjOThkOTg4NDQ.
CSeq: 1 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="5724333a"
Content-Length:0
_________________________

You can get the entire detail at http://holidayexpress.com.mx/p40.pdf

On the other hand, why is that I can have full bidirectional inside the LAN, but on remote SIP peer i still have no more than 20 secs audio and no DTMF's response... I guess I have both problems; a codec issue and a NAT issue.

And yes, Percy you are very wellcome to help me too!

Thank you very much for your help.

VOIP Newbie

--

VOIP Newbie



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.