Can't Dial Out

I have 1.4.20.1 with a tdm410 2-fxs and 2-fxo . I currently just have a land line coming into port 3 and two analog phones one 1 and 2. I am able to dial in ok and call also dial another extension ok but i am not able to dial out outside. The message I receive when I dial a local call is …

Starting simple switch on 'Zap/1-1’
 – Executing [5837117@employees:1] Dial(“Zap/1-1”, “Zap/3/”) in new stack
 – Called 3/
 – Hungup 'Zap/3-1’
 == Everyone is busy/congested at this time (1:0/0/1)
 – Executing [5837117@employees:2] Congestion(“Zap/1-1”, “”) in new stack

my zapata.conf is…

[channels]
usecallerid=yes
hidecallerid=no
callwaiting=yes
threewaycalling=yes
transfer=yes
echocancel=yes
echocancelwhenbridged=yes
immediate=no

;FXS Modules
Group=1
signalling=fxo_ks
context=employees
channel=1-2

;FXO Modules
Group=2
echocancel=yes
signalling=fxs_ks
context=incoming
channel=3-4

my extensions.conf is …

[globals]
meh=Zap/1
meh2=Zap/2
outboundtrunk=Zap/3

[general]
autofallthrough=yes

[incoming]
exten => s,1,Answer()
exten => s,n,Dial(Zap/1,10)
exten => s,n,Playback(vm-nobodyavail)
exten => s,n,Hangup()

[employees]
include => outbound-local
include => outbound-long-distance

exten => 101,1,Dial(${meh})
exten => meh,1,Dial(${meh})
exten => 102,1,Dial(${meh2})
exten => meh2,1,Dial(${meh2})

[outbound-local]
exten => _nxxxxxx,1,Dial(${outboundtrunk}/${exten:1})
exten => _nxxxxxx,n,Congestion()
exten => _nxxxxxx,n,Hangup()

[outbound-long-distance]
exten => _1nxxnxxxxxx,1,Dial(${outboundtrunk}/${exten:1})
exten => _1nxxnxxxxxx,n,Playtones(congestion)
exten => _1nxxnxxxxxx,n,Hangup()

I’ve tried several configs. no luck… any suggestions appreciated

Mark

Try

exten => _nxxxxxx,1,Dial(${outboundtrunk}/${EXTEN:1})

instead of

exten => _nxxxxxx,1,Dial(${outboundtrunk}/${exten:1}) 

Cheers.

Marco Bruni

Tried the caps,no difference. When trying a long distance call I get an immediate hangup … as shown…

Executing [15748633331@employees:3] Hangup(“Zap/1-1”, “”) in new stack
 == Spawn extension (employees, 12198633331, 3) exited non-zero on 'Zap/1-1’
 – Hungup ‘Zap/1-1’

The variable “extension” doesn’t exist, only EXTENSION can be used, I did a quick test before answer you.

 Executing [15748633331@employees:3] Hangup("Zap/1-1", "") in new stack

You show only the priority 3 of the extension 15748633331, can you show what happened before (priority 1 and 2)?

Cheers.

Marco Bruni

Marco

Thanks for hanging in there …here is full execution…

  • a couple questions
    1… Where is spawn extension picked up from?
  1. Looking below at “Called 3/5745837117” does the 1 not showing before 5745837117 mean a problem. I notice on my local call that is shows Executing 5837117 but next line shows “Called 3/837117”

thanks
Mark

Starting simple switch on 'Zap/1-1’
 – Executing [15745837117@employees:1] Dial(“Zap/1-1”, “Zap/3/5745837117”) in new stack
 – Called 3/5745837117
 – Hungup 'Zap/3-1’
 == Everyone is busy/congested at this time (1:0/0/1)
 – Executing [15745837117@employees:2] PlayTones(“Zap/1-1”, “congestion”) in new stack
 – Executing [15745837117@employees:3] Hangup(“Zap/1-1”, “”) in new stack
 == Spawn extension (employees, 15745837117, 3) exited non-zero on 'Zap/1-1’
 – Hungup ‘Zap/1-1’

  1. From EXTEN variable.
  2. Yes, I think it’s a problem.
    Try do not strip the first digit:
exten => _nxxxxxx,1,Dial(${outboundtrunk}/${EXTEN})

This should work.

Cheers.

Marco Bruni

Marco

Darn…Called shows okay but same results…it just seems to be an immediate offhook as soon as dialed.

thanks

LOCAL RESULTS

Starting simple switch on 'Zap/1-1’
 – Executing [5837117@employees:1] Dial(“Zap/1-1”, “Zap/3/5837117”) in new stack
 – Called 3/5837117
 – Hungup 'Zap/3-1’
 == Everyone is busy/congested at this time (1:0/0/1)
 – Executing [5837117@employees:2] Congestion(“Zap/1-1”, “”) in new stack
 == Spawn extension (employees, 5837117, 2) exited non-zero on 'Zap/1-1’
 – Hungup ‘Zap/1-1’

LONG DISTANCE RESULTS

Starting simple switch on 'Zap/1-1’
 – Executing [12198633331@employees:1] Dial(“Zap/1-1”, “Zap/3/12198633331”) in new stack
 – Called 3/12198633331
 – Hungup 'Zap/3-1’
 == Everyone is busy/congested at this time (1:0/0/1)
 – Executing [12198633331@employees:2] PlayTones(“Zap/1-1”, “congestion”) in new stack
 – Executing [12198633331@employees:3] Hangup(“Zap/1-1”, “”) in new stack
 == Spawn extension (employees, 12198633331, 3) exited non-zero on 'Zap/1-1’
 – Hungup ‘Zap/1-1’

Solved problem by updating Zaptel drivers 1.4.9.2 to 1.4.11

thanks for help