Hello again, and thx for the reply.
"from your previous post, what I was saying is in your zapata.conf change context=from-zaptel to context=from-pstn. " i have done this in my zapata.conf.
In this moment when i make a route to ‘80’ in incoming route:
did number=80
cid=blank
zapchannel=blank
I have to set one destination for me incoming call, and to do this i create one zap device, under Extensions in Freepbx, with this configurations:
zapata_addicional.conf
;;;;;;[700]
signalling=pri_cpe
record_out=Adhoc
record_in=Adhoc
mailbox=700@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
dial=ZAP/1-15
context=from-pstn
callprogress=no
callerid=device <700>
busydetect=no
busycount=7
accountcode=
channel=>1-15
My question is: i have to create this zap extension? because in incoming route in set destinations i have to put something there. To test under destination i selected the core with my zap extension 700, and the report from asterisk is:
– Accepting overlap call from ‘0933233223’ to ‘80’ on channel 0/1, span 1
– Starting simple switch on ‘Zap/1-1’
– Executing Set(“Zap/1-1”, “DID=80”) in new stack
– Executing Goto(“Zap/1-1”, “s|1”) in new stack
– Goto (from-zaptel,s,1)
– Executing NoOp(“Zap/1-1”, “Entering from-zaptel with DID == 80”) in new stack
– Executing Ringing(“Zap/1-1”, “”) in new stack
– Executing Set(“Zap/1-1”, “DID=80”) in new stack
– Executing NoOp(“Zap/1-1”, “DID is now 80”) in new stack
– Executing GotoIf(“Zap/1-1”, “1?zapok:notzap”) in new stack
– Goto (from-zaptel,s,8)
– Executing NoOp(“Zap/1-1”, “Is a Zaptel Channel”) in new stack
– Executing Set(“Zap/1-1”, “CHAN=1-1”) in new stack
– Executing Set(“Zap/1-1”, “CHAN=1”) in new stack
– Executing Macro(“Zap/1-1”, “from-zaptel-1|80|1”) in new stack
– Executing NoOp(“Zap/1-1”, “Returned from Macro from-zaptel-1”) in new stack
– Executing Goto(“Zap/1-1”, “from-pstn|80|1”) in new stack
– Goto (from-pstn,80,1)
– Executing Set(“Zap/1-1”, “FROM_DID=80”) in new stack
– Executing Gosub(“Zap/1-1”, “app-blacklist-check|s|1”) in new stack
– Executing LookupBlacklist(“Zap/1-1”, “”) in new stack
– Executing GotoIf(“Zap/1-1”, “0?blacklisted”) in new stack
– Executing Return(“Zap/1-1”, “”) in new stack
– Executing Goto(“Zap/1-1”, “ext-local|700|1”) in new stack
– Goto (ext-local,700,1)
– Executing Macro(“Zap/1-1”, “exten-vm|novm|700”) in new stack
– Executing Macro(“Zap/1-1”, “user-callerid”) in new stack
– Executing NoOp(“Zap/1-1”, “user-callerid: 0933233223”) in new stack
– Executing GotoIf(“Zap/1-1”, “0?report”) in new stack
– Executing GotoIf(“Zap/1-1”, “0?start”) in new stack
– Executing Set(“Zap/1-1”, “REALCALLERIDNUM=0933233223”) in new stack
– Executing NoOp(“Zap/1-1”, “REALCALLERIDNUM is 0933233223”) in new stack
– Executing Set(“Zap/1-1”, “AMPUSER=”) in new stack
– Executing Set(“Zap/1-1”, “AMPUSERCIDNAME=”) in new stack
– Executing GotoIf(“Zap/1-1”, “1?report”) in new stack
– Goto (macro-user-callerid,s,11)
– Executing NoOp(“Zap/1-1”, “TTL: ARG1: novm”) in new stack
– Executing GotoIf(“Zap/1-1”, “0?continue”) in new stack
– Executing Set(“Zap/1-1”, “_TTL=64”) in new stack
– Executing GotoIf(“Zap/1-1”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,21)
– Executing NoOp(“Zap/1-1”, “Using CallerID “” <0933233223>”) in new stack
– Executing Set(“Zap/1-1”, “FROMCONTEXT=exten-vm”) in new stack
– Executing Set(“Zap/1-1”, “VMBOX=novm”) in new stack
– Executing Set(“Zap/1-1”, “EXTTOCALL=700”) in new stack
– Executing Set(“Zap/1-1”, “CFUEXT=”) in new stack
– Executing Set(“Zap/1-1”, “CFBEXT=”) in new stack
– Executing Set(“Zap/1-1”, “RT=”) in new stack
– Executing Macro(“Zap/1-1”, “record-enable|700|IN”) in new stack
– Executing GotoIf(“Zap/1-1”, “0?2:4”) in new stack
– Goto (macro-record-enable,s,4)
– Executing DeadAGI(“Zap/1-1”, “recordingcheck|20070628-205011|1183060208.19”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20070628-205011|1183060208.19: Inbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing NoOp(“Zap/1-1”, “No recording needed”) in new stack
– Executing Macro(“Zap/1-1”, “dial||tr|700”) in new stack
– Executing DeadAGI(“Zap/1-1”, “dialparties.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
dialparties.agi: priority is 1
dialparties.agi: Caller ID name is ‘unknown’ number is '0933233223’
dialparties.agi: Methodology of ring is ‘none’
> dialparties.agi: USE_CONFIRMATION: ‘FALSE’
> dialparties.agi: RINGGROUP_INDEX: ‘’
– dialparties.agi: Added extension 700 to extension map
– dialparties.agi: Extension 700 cf is disabled
– dialparties.agi: Extension 700 do not disturb is disabled
> dialparties.agi: extnum: 700
> dialparties.agi: exthascw: 1
> dialparties.agi: exthascfb: 0
> dialparties.agi: extcfb:
> dialparties.agi: exthascfu: 0
> dialparties.agi: extcfu:
– dialparties.agi: dbset CALLTRACE/700 to 0933233223
– AGI Script dialparties.agi completed, returning 0
– Executing Dial(“Zap/1-1”, “ZAP/1-15||tr”) in new stack
== Everyone is busy/congested at this time (1:0/0/1)
– Executing GosubIf(“Zap/1-1”, “0?docfu|1”) in new stack
– Executing GosubIf(“Zap/1-1”, “0?docfb|1”) in new stack
– Executing NoOp(“Zap/1-1”, “Voicemail is novm”) in new stack
– Executing GotoIf(“Zap/1-1”, “1?s-CHANUNAVAIL|1”) in new stack
– Goto (macro-exten-vm,s-CHANUNAVAIL,1)
– Executing PlayTones(“Zap/1-1”, “congestion”) in new stack
– Executing Congestion(“Zap/1-1”, “10”) in new stack
– Channel 0/1, span 1 got hangup request
== Spawn extension (macro-exten-vm, s-CHANUNAVAIL, 2) exited non-zero on ‘Zap/1-1’ in macro ‘exten-vm’
== Spawn extension (macro-exten-vm, s-CHANUNAVAIL, 2) exited non-zero on ‘Zap/1-1’
– Hungup ‘Zap/1-1’
Thx for all the replies. And sorry for me English! i know is not the best 
Best regards.