Autodial does not connect to agents due to Local channel

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?
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?