Autodial does not connect to agents due to Local channel

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Autodial does not connect to agents due to Local channel

Postby scottgutman » Wed Aug 05, 2009 12:11 am

I am having the problem resolving the local channel pointer. The agi-VDAD_ALL_outbound.agi kills any call that is local and will not process it. Therefore, it does not transfer the call to the agent.

I did several fresh installs, following the scratch install docs on CentOS 5.3. and the ubuntu install on ubuntu 8.04 server.

Manual dials work fine as well as call recording. If I did not autodial, I would not know there was a problem.

setup:
2+g quad core AMD 64bit, 8gig ram, 300 gig sata drive
tried both ztdummy and x100p card
CentOS 5.3 and ubuntu 8.04 server
Kernel 2.6.18-128.2.1.el5 x86_64
tried both asterisk 1.2.30.2 and 1.4.21.2
Astguiclient 2.0.5 and 2.0.5 Trunk
flags = tTo
codec = ulaw

sip.conf
[general]
externip =XXX.XX.XX.XX

Settings in both general and individual accounts.
nat = yes
canreinvite=no

I tried to leave as much of the default conf's untouched so i would not breakanything. I only made the minimum changes to get it to work.

1. I tried installing most components with yum and compiling the remaining dependencies.
2. I tried installing the base only then compiling everything from scratch.
3. I tried the ubuntu install script (Very well done, server was running within 1.5 hours.)
3. I tried adding multiple sipsilence entries and multiple agi-VDAD_ALL_outbound entries. sip-silence is supposed to force Asterisk to resolve the local channel, but it does not in my case.
4. I changed the playback file to a longer gsm recording in exten 8365.
5. I changed the playback file to a wav file. (a standard file in the sounds dir)
6. I created a t.call file to call my cell and playback a file. I put it in /var/spool/asterisk/outgoing. Asterisk got it and called my cell. I answered the call and the CLI showed that the file was being played. I heard only silence, but the length of time of the silence was about the length of the recording.
7. I tried the exact same procedure, but I called my internal softphone. It worked perfectly.

Can this be a nat issue? if yes, then why does the softphone to asterisk to gafachi work?

It seems that asterisk has no problem passing the sip packets between the xlite softphone and sip.gafachi.com. But it can't initiate packets that originate from itself.

<t.call>
Channel: SIP/19545799999@gafachi
Callerid: 9542000000
MaxRetries: 2
RetryTime: 60
WaitTime: 30
Context: scott
Extension: 10

<extentions.conf>
[scott]
exten => 10,1,Answer()
exten => 10,n,Wait(1)
exten => 10,n,Playback(vtiger-fax)
exten => 10,n,Playback(agent-loggedoff)
exten => 10,n,Wait(1)
exten => 10,n,Hangup()

I don't want to use the quick fix, cuz i will forget about it and some how it will come to bite me in the @#$.

Does anyone have any ideas?
scottgutman
 
Posts: 75
Joined: Mon Mar 23, 2009 4:17 pm

Postby lerroux » Wed Aug 05, 2009 12:49 pm

what the dialplan context you use for dialing? dont forget to use: oTt...
---------------------------------------------------
warning: excessive coding is dangerous to your health. if symptoms persist, insult your doctor.

System: VICIBOX - VICIDIAL 2.0.5
Asterisk version - 1.2.26.2
lerroux
 
Posts: 61
Joined: Thu Apr 23, 2009 11:36 am

Postby scottgutman » Wed Aug 05, 2009 3:00 pm

I am using the default context.

<from entensions-vicidial>
; VICIDIAL Carrier: gafachi - gafachi
exten => _91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXX,2,Dial(SIP/gafachi/${EXTEN:1},,tTo)
exten => _91NXXNXXXXXX,3,Hangup

I am in process of getting a few static ip's and will try putting the asterisk box directly on the net to take NAT out of the picture. How do you recommend securing the box? iptables?
scottgutman
 
Posts: 75
Joined: Mon Mar 23, 2009 4:17 pm

Postby lerroux » Wed Aug 05, 2009 3:15 pm

iptables would be fine. try looking at the logs, see if you can come up with anything that's weird and post it here.
---------------------------------------------------
warning: excessive coding is dangerous to your health. if symptoms persist, insult your doctor.

System: VICIBOX - VICIDIAL 2.0.5
Asterisk version - 1.2.26.2
lerroux
 
Posts: 61
Joined: Thu Apr 23, 2009 11:36 am

Postby mflorell » Thu Aug 06, 2009 5:12 pm

Have you tried another carrier?
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby scottgutman » Thu Aug 06, 2009 8:17 pm

Yes, I tried both proximiti and gafachi. They both had the same response.

actually, i did a few tests with the dynamic ip assigned by the isp.

It works, I am waiting to report it when i am 100% sure. I get my static ip's tomorrow, but won't be able to run a full scale test until tuesday.

Thank you for checking up. I appreciate it.

I still don't understand why asterisk is having a problem resolving the channel while nat is happening, if it could route the sip packets between Voip provider and softphone.
Actually, it was double natting, as the modem was doing it's own natting, plus the router. I guess it truely got mangled.

Any way public ip's will fix that. no nat. Chaulk up anther reason why the local channel won't resolve.

I am worried about securing the box against intruders.

I will report back in a few days.
scottgutman
 
Posts: 75
Joined: Mon Mar 23, 2009 4:17 pm

Postby scottgutman » Tue Aug 18, 2009 3:26 pm

Well, we have been dialing for 2 days with public IP's so it seems the local channel resolution problem has been fixed.
Dialer-Vicidial 2.2.0-250_100116-0709, Asterisk 1.4.21.2, Intel Quad Q6600 2.4G x64/8G Ram
Web-Apache/2.2.3, PHP 5.2.10, eAccelerator v0.9.5.2, AMD 9950 Quad 2.6G x64/4G Ram
DB-MySQL 5.0.45, 2xAMD 2.6G i386/4G Ram
OS-CentOS 5.3-2.6.18-128.1.16.el5
scottgutman
 
Posts: 75
Joined: Mon Mar 23, 2009 4:17 pm

Postby spinto » Wed Aug 26, 2009 5:10 pm

I'm having the same problem. Are you saying you resolved it by connecting directly to the internet (bypassing the router/firewall)? What type of firewall do you have?
spinto
 
Posts: 96
Joined: Mon Jan 29, 2007 3:06 pm

Postby scottgutman » Wed Aug 26, 2009 6:34 pm

Exactly!!

As an added benefit, all the agents said that the calls sounded "crisper and clearer."

I am using iptables that I configured with firewall builder. I put in a second nic in the dialer to connect to the internet. When I created my firewall rules, the only inbound traffic allowed is SIP and RTP. Everything else is denied on that interface. Then I allowed all internal traffic full access to the internal nic and denied it to the external nic to prevent spoofing.

I bypassed 2 routers/firewalls doing NAT with this procedure. The first was the Comcast SMC Router. It did NAT to the DMZ network and forwarded all ports to the internal router.

Then the second router was a CentOS5.3 box running iptables and dhcpd. This box did NAT from the DMZ to the internal network.

I assume that somewhere in that path, the sip or rtp packets got slightly corrupted. I say slightly, because phone communication worked fine. Asterisk's inability to resolve the local pointer was the only problem.

If someone could point out any flaws in my logic, I would like to know. How does Asterisk decide if a call is local or sip??? Does it lookup the remote ip address and see if it is local?
Dialer-Vicidial 2.2.0-250_100116-0709, Asterisk 1.4.21.2, Intel Quad Q6600 2.4G x64/8G Ram
Web-Apache/2.2.3, PHP 5.2.10, eAccelerator v0.9.5.2, AMD 9950 Quad 2.6G x64/4G Ram
DB-MySQL 5.0.45, 2xAMD 2.6G i386/4G Ram
OS-CentOS 5.3-2.6.18-128.1.16.el5
scottgutman
 
Posts: 75
Joined: Mon Mar 23, 2009 4:17 pm


Return to Support

Who is online

Users browsing this forum: Bing [Bot] and 273 guests