Cannot dial out from ZAP extention to ZAP pstn line

hi all,

i`m having an issue with call out from ZAP extention to ZAP-PTSN line.

i have few SIP phones. i can accept and dial with no problem.

from the extention . i can call to another SIP extention, but i cannot dial to PSTN line what so ever,

i want to mention that i have setup zap to did. and context=from-zaptel
ì have inbound route for zap line 1.

here is some information

[Jun 7 10:54:25] VERBOSE[25649] chan_dahdi.c: – Starting simple switch on ‘DAHDI/5-1’
[Jun 7 10:54:31] VERBOSE[25649] pbx.c: – Executing [0547977014@from-zaptel:1] Set(“DAHDI/5-1”, “DID=0547977014”) in new stack
[Jun 7 10:54:31] VERBOSE[25649] pbx.c: – Executing [0547977014@from-zaptel:2] Goto(“DAHDI/5-1”, “s,1”) in new stack
[Jun 7 10:54:31] VERBOSE[25649] pbx.c: – Goto (from-zaptel,s,1)
[Jun 7 10:54:31] VERBOSE[25649] pbx.c: – Executing [s@from-zaptel:1] NoOp(“DAHDI/5-1”, “Entering from-dahdi with DID == 0547977014”) in new$
[Jun 7 10:54:31] VERBOSE[25649] pbx.c: – Executing [s@from-zaptel:2] Ringing(“DAHDI/5-1”, “”) in new stack
[Jun 7 10:54:31] VERBOSE[25649] pbx.c: – Executing [s@from-zaptel:3] Set(“DAHDI/5-1”, “DID=0547977014”) in new stack
[Jun 7 10:54:31] VERBOSE[25649] pbx.c: – Executing [s@from-zaptel:4] NoOp(“DAHDI/5-1”, “DID is now 0547977014”) in new stack
[Jun 7 10:54:31] VERBOSE[25649] pbx.c: – Executing [s@from-zaptel:5] GotoIf(“DAHDI/5-1”, “1?dahdiok:checkzap”) in new stack
[Jun 7 10:54:31] VERBOSE[25649] pbx.c: – Goto (from-zaptel,s,9)
[Jun 7 10:54:31] VERBOSE[25649] pbx.c: – Executing [s@from-zaptel:9] NoOp(“DAHDI/5-1”, “Is a DAHDi Channel”) in new stack
[Jun 7 10:54:31] VERBOSE[25649] pbx.c: – Executing [s@from-zaptel:10] Set(“DAHDI/5-1”, “CHAN=5-1”) in new stack
[Jun 7 10:54:31] VERBOSE[25649] pbx.c: – Executing [s@from-zaptel:11] Set(“DAHDI/5-1”, “CHAN=5”) in new stack
[Jun 7 10:54:31] VERBOSE[25649] pbx.c: – Executing [s@from-zaptel:12] Macro(“DAHDI/5-1”, “from-dahdi-5,0547977014,1”) in new stack
[Jun 7 10:54:31] WARNING[25649] app_macro.c: No such context ‘macro-from-dahdi-5’ for macro ‘from-dahdi-5’
[Jun 7 10:54:31] VERBOSE[25649] pbx.c: – Executing [s@from-zaptel:13] NoOp(“DAHDI/5-1”, “Returned from Macro from-dahdi-5”) in new stack
[Jun 7 10:54:31] VERBOSE[25649] pbx.c: – Executing [s@from-zaptel:14] Goto(“DAHDI/5-1”, “from-pstn,0547977014,1”) in new stack
[Jun 7 10:54:31] VERBOSE[25649] pbx.c: – Goto (from-pstn,0547977014,1)
[Jun 7 10:54:31] VERBOSE[25649] pbx.c: – Executing [0547977014@from-pstn:1] Set(“DAHDI/5-1”, “__FROM_DID=0547977014”) in new stack
[Jun 7 10:54:31] VERBOSE[25649] pbx.c: – Executing [0547977014@from-pstn:2] NoOp(“DAHDI/5-1”, "Received an unknown call with DID set to 054$
[Jun 7 10:54:31] VERBOSE[25649] pbx.c: – Executing [0547977014@from-pstn:3] Goto(“DAHDI/5-1”, “s,a2”) in new stack
[Jun 7 10:54:31] VERBOSE[25649] pbx.c: – Goto (from-pstn,s,2)
[Jun 7 10:54:31] VERBOSE[25649] pbx.c: – Executing [s@from-pstn:2] Answer(“DAHDI/5-1”, “”) in new stack
[Jun 7 10:54:31] VERBOSE[25649] pbx.c: – Executing [s@from-pstn:3] Wait(“DAHDI/5-1”, “2”) in new stack
[Jun 7 10:54:34] VERBOSE[25649] pbx.c: – Executing [s@from-pstn:4] Playback(“DAHDI/5-1”, “ss-noservice”) in new stack
[Jun 7 10:54:34] VERBOSE[25649] file.c: – <DAHDI/5-1> Playing ‘ss-noservice.gsm’ (language ‘he’)
[Jun 7 10:54:36] VERBOSE[25649] pbx.c: == Spawn extension (from-pstn, s, 4) exited non-zero on ‘DAHDI/5-1’

How did you setup the Zap channels? Looks to me like they are defined in the from-zaptel context instead of from-internal.

you right, but the reason doing it is to able route in zap line to direct zap channel.

the zap did must have that command. if i remove it . it wont work. i have to change it.

any ideas?

That context is for the inbound FXO port not the FXS extension.

Oh… i see.
can you tel me what file should i change .

there are some files - dahdi_chan.conf and 2-3 more.

can you point that.

thanks for your kind assistance.

Hi im new to this forums but i have a server runing with 2fxo and 2fxs and i dont have problems to call so far, so this is the configuration i have, maybe it can help, in some moment i used the context from-zaptel and it didnt give me any problems.

chan_dahdi.conf

;
; DAHDI telephony
;
; Configuration file

[trunkgroups]

[channels]

language=en
context=from-zaptel
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes

usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
echotraining=800
rxgain=4.0
txgain=-2.0
group=0
callgroup=1
pickupgroup=1
immediate=no
;hanguponpolarityswitch=yes
busydetect=yes
busycount=4

;faxdetect=both
faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no

;Include setup-pstn configs
#include dahdi-channels.conf

group=1

;Include PBXconfig configs
#include chan_dahdi_additional.conf

Here is where the autoconfigurations setups the fxs channels

chan_dahdi_aditional.conf

;--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by trixbox. All modifications to ;
; this file must be done via the web gui. There are alternative files to make ;
; custom modifications. ;
;--------------------------------------------------------------------------------;
;

;;;;;;[410]
signalling=fxo_ks
pickupgroup=
mailbox=410@device
immediate=no
echotraining=800
echocancelwhenbridged=yes
echocancel=yes
context=from-internal
callprogress=no
callgroup=
callerid=device <410>
busydetect=no
busycount=7
accountcode=
channel=>3

;;;;;;[411]
signalling=fxo_ks
pickupgroup=
mailbox=411@device
immediate=no
echotraining=800
echocancelwhenbridged=yes
echocancel=yes
context=from-internal
callprogress=no
callgroup=
callerid=device <411>
busydetect=no
busycount=7
accountcode=
channel=>4

and here is where i think is the error of your config in the channel definition i think it must be from-internal for zap extensions

dahdi_channels.conf

; Autogenerated by /usr/sbin/dahdi_genconf on Thu Jun 9 13:08:38 2011
; If you edit this file and execute /usr/sbin/dahdi_genconf again,
; your manual changes will be LOST.
; Dahdi Channels Configurations (chan_dahdi.conf)
;
; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended
; to be #include-d by /etc/chan_dahdi.conf that will include the global settings
;

; Span 1: WCTDM/4 “Wildcard TDM400P REV I Board 5” (MASTER)
;;; line="1 WCTDM/4/0 FXSKS (SWEC: MG2)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-zaptel
channel => 1
callerid=
group=
context=default

;;; line="2 WCTDM/4/1 FXSKS (SWEC: MG2)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-zaptel
channel => 2
callerid=
group=
context=default

;;; line="3 WCTDM/4/2 FXOKS (SWEC: MG2)"
signalling=fxo_ks
callerid=“Channel 3” <4003>
mailbox=4003
group=5
context=from-internal
channel => 3
callerid=
mailbox=
group=
context=default

;;; line="4 WCTDM/4/3 FXOKS (SWEC: MG2)"
signalling=fxo_ks
callerid=“Channel 4” <4004>
mailbox=4004
group=5
context=from-internal
channel => 4
callerid=
mailbox=
group=
context=default

This configuration works for me i hope it can help you man

Jorge C