[Asterisk-Users] broadvoice/asterisk incoming calls problem

Chris cshaw59 at comcast.net
Thu Jul 29 21:26:57 MST 2004


----- Original Message ----- 
From: "Bartosz Wegrzyn" <junk at lexon.ws>
To: <asterisk-users at lists.digium.com>
Sent: Thursday, July 29, 2004 6:54 PM
Subject: Re: [Asterisk-Users] broadvoice/asterisk incoming calls problem


> I took your advice and also created two entries for incoming calls to
> overcome the DNS problem.
>
> NOW I will track incoming call to my * box.
>
> I see first how asterisk registers:(before the call)
>
> 20:10:37.521845 ns.0.10.10.in-addr.arpa.5060 > 147.135.0.128.5060: udp 379
> (DF) [tos 0x18]
> 20:10:37.581972 147.135.0.128.5060 > ns.0.10.10.in-addr.arpa.5060: udp 352
>
> I am calling into my box.
> Asterisk picks up. My default messeage starts playing, but I cannot hear
it.
> I look at the tcpdump output to see the packets flow:
>
> 20:25:36.492039 147.135.0.128.5060 > ns.0.10.10.in-addr.arpa.5060: udp 352
> 20:25:39.538052 147.135.0.128.5060 > ns.0.10.10.in-addr.arpa.5060: udp 718
> 20:25:39.538544 ns.0.10.10.in-addr.arpa.5060 > 147.135.0.128.5060: udp 474
> (DF) [tos 0x18]
> 20:25:39.539005 ns.0.10.10.in-addr.arpa.5060 > 147.135.0.128.5060: udp 475
> (DF) [tos 0x18]
> 20:25:39.540286 ns.0.10.10.in-addr.arpa.5060 > 147.135.0.128.5060: udp 655
> (DF) [tos 0x18]
> 20:25:39.540799 ns.0.10.10.in-addr.arpa.18938 > 147.135.0.128.14384: udp
> 172 (DF) [tos 0x18]
> 20:25:39.560257 ns.0.10.10.in-addr.arpa.18938 > 147.135.0.128.14384: udp
> 172 (DF) [tos 0x18]
> 20:25:39.580238 ns.0.10.10.in-addr.arpa.18938 > 147.135.0.128.14384: udp
> 172 (DF) [tos 0x18]
> 20:25:39.600240 ns.0.10.10.in-addr.arpa.18938 > 147.135.0.128.14384: udp
> 172 (DF) [tos 0x18]
> 20:25:39.620242 ns.0.10.10.in-addr.arpa.18938 > 147.135.0.128.14384: udp
> 172 (DF) [tos 0x18]
> 20:25:39.640239 ns.0.10.10.in-addr.arpa.18938 > 147.135.0.128.14384: udp
> 172 (DF) [tos 0x18]
> 20:25:39.660103 147.135.0.128.5060 > ns.0.10.10.in-addr.arpa.5060: udp 454
> 20:25:39.660268 ns.0.10.10.in-addr.arpa.18938 > 147.135.0.128.14384: udp
> 172 (DF) [tos 0x18]
> 20:25:39.673145 147.135.0.128.14384 > ns.0.10.10.in-addr.arpa.18938: udp
172
> 20:25:39.680241 ns.0.10.10.in-addr.arpa.18938 > 147.135.0.128.14384: udp
> 172 (DF) [tos 0x18]
> 20:25:39.700238 ns.0.10.10.in-addr.arpa.18938 > 147.135.0.128.14384: udp
> 172 (DF) [tos 0x18]
> 20:25:39.704918 147.135.0.128.14384 > ns.0.10.10.in-addr.arpa.18938: udp
172
> 20:25:39.720239 ns.0.10.10.in-addr.arpa.18938 > 147.135.0.128.14384: udp
> 172 (DF) [tos 0x18]
> 20:25:39.724855 147.135.0.128.14384 > ns.0.10.10.in-addr.arpa.18938: udp
172
> 20:25:39.740239 ns.0.10.10.in-addr.arpa.18938 > 147.135.0.128.14384: udp
> 172 (DF) [tos 0x18]
> 20:25:39.744548 147.135.0.128.14384 > ns.0.10.10.in-addr.arpa.18938: udp
172
> 20:25:39.760238 ns.0.10.10.in-addr.arpa.18938 > 147.135.0.128.14384: udp
> 172 (DF) [tos 0x18]
> 20:25:39.780239 ns.0.10.10.in-addr.arpa.18938 > 147.135.0.128.14384: udp
> 172 (DF) [tos 0x18]
> 20:25:39.800239 ns.0.10.10.in-addr.arpa.18938 > 147.135.0.128.14384: udp
> 172 (DF) [tos 0x18]
> 20:25:39.813456 147.135.0.128.14384 > ns.0.10.10.in-addr.arpa.18938: udp
172
> 20:25:39.815961 147.135.0.128.14384 > ns.0.10.10.in-addr.arpa.18938: udp
172
> 20:25:39.817976 147.135.0.128.14384 > ns.0.10.10.in-addr.arpa.18938: udp
172
>
>
> Looks like that broadvoice and I talk to each other.
> But I still cannot hear anything.
> To test it deeper I setup an extension that will call one of my phones at
> home. I call again to my * box and press nine.
>
> On my asterisk it looks like this:
>
>     -- Executing Ringing("SIP/192.168.0.3-08d6b540", "") in new stack
>     -- Executing Goto("SIP/192.168.0.3-08d6b540", "menu|s|1") in new stack
>     -- Goto (menu,s,1)
>     -- Executing DigitTimeout("SIP/192.168.0.3-08d6b540", "5") in new
stack
>     -- Set Digit Timeout to 5
>     -- Executing ResponseTimeout("SIP/192.168.0.3-08d6b540", "10") in new
> stack
>     -- Set Response Timeout to 10
>     -- Executing BackGround("SIP/192.168.0.3-08d6b540", "3") in new stack
>     -- Playing '3' (language 'en')
>     -- Executing BackGround("SIP/192.168.0.3-08d6b540", "closed") in new
> stack
>     -- Playing 'closed' (language 'en')
>   == CDR updated on SIP/192.168.0.3-08d6b540
>     -- Executing Dial("SIP/192.168.0.3-08d6b540", "Zap/2|30|m") in new
stack
>     -- Called 2
>     -- Started music on hold, class 'default', on SIP/192.168.0.3-08d6b540
>     -- Zap/2-1 is ringing
>     -- Zap/2-1 is ringing
>     -- Zap/2-1 answered SIP/192.168.0.3-08d6b540
>     -- Stopped music on hold on SIP/192.168.0.3-08d6b540
>     -- Hungup 'Zap/2-1'
>   == Spawn extension (menu, 9, 1) exited non-zero on
> 'SIP/192.168.0.3-08d6b540'
> lexon*CLI>
>
>
> And here I find out that person at my home phone hears me, but I cannot.
> Even that that Media streams goes in both directions there is only sound
> coming to my * box, but not from the *.
>
> Also, it is worth to point out that asterisk does not always pickups the
> phone. Sometimes I have to try again.
>
> Any Ideas???
> Please help.
>
> Bartosz Wegrzyn
>
>
>

Bartosz, did you turn NAT to NAT=NO or NAT=NEVER? Try  putting nat=no in
[general] and nat=never in broadvoice-out/out2/incoming/incoming2 I'm almost
POSITIVE that NAT is the culprit... it is EVIL, I have dealt with NAT more
than I care to and I know all the nasty and wierd things it can do to a
network... if you can avoid it I wouldn't touch it with a 100 foot cattle
prod...

It looks like you're VERY close, * is receiving audio from you and it looks
like DTMF is working (people were having trouble with that a while ago) so
that's really good...

If you haven't turned NAT off in your sip.conf, I suggest you do that.. I
know you're behind a nat, but since you have all ports forwarded to the *
machine, you don't need the NAT functionality...

Other than that, a couple things to try...

Are you using the latest CVS? You probably are but some people don't like to
use it...

Also I noticed you're using ZAP channels, I'm assuming that's for your phone
at home? Are you sure you have your zaptel.conf and zapata.conf set up
correctly?

BroadVoice CAN work, I have been using it for about a month now and it's
awesome. If you combine asterisk with some good QoS nobody will know that
you're actually making calls over the internet and they will think you are
really cool for having an expensive PBX in your house. :)

    -Chris




More information about the asterisk-users mailing list