Freepbx 2.2.1 can do this?

I confess that in this moment i dont know what to do more.

I have a problem with my trixbox is not detecting the other party (From the PSTN). When

someone calls to my extensions i have this report:

– Accepting overlap call from ‘0933265305’ to ‘80’ on channel 0/1, span 1
– Starting simple switch on ‘Zap/1-1’
== Parsing ‘/etc/asterisk/sip_notify.conf’: Found
– 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)
– Hungup ‘Zap/1-1’

my zapata-auto.conf:

;Sangoma A102 port 1 [slot:4 bus:3 span: 1]
switchtype=euroisdn
context=from-zaptel
group=0
signalling=pri_cpe
channel => 1-15,17-31

;Sangoma A102 port 2 [slot:4 bus:3 span: 2]
switchtype=euroisdn
context=from-internal
group=1
signalling=pri_net
channel => 32-46,48-62

I confess that in this moment i do everthing to see this working! i can put one inbound route in the freepbx making one catch all “no DID no CID” sending the calls to one sip extensions, and works well, but this is not my intention in this moment. Right now i just want to see my incoming calls working with zap channels. Can anybody point me to the direction that i have to follow, to do this in the freepbx 2.2.1?

thx

I have this in my logs of asterisk when i try to cal:

Jun 28 19:28:42 VERBOSE[8823] logger.c: – dialparties.agi: dbset CALLTRACE/80 to 0935552487
Jun 28 19:28:42 VERBOSE[8823] logger.c: > dialparties.agi: NODEST: 600 adding M(auto-blkvm) to dialopts: trM(auto-blkv
m)
Jun 28 19:28:42 VERBOSE[8823] logger.c: – AGI Script dialparties.agi completed, returning 0
Jun 28 19:28:42 DEBUG[8823] app_macro.c: Executed application: DeadAGI
Jun 28 19:28:42 VERBOSE[8823] logger.c: – Executing Dial(“Zap/1-1”, “ZAP/10|20|trM(auto-blkvm)”) in new stack
Jun 28 19:28:42 NOTICE[8823] app_dial.c: Unable to create channel of type ‘ZAP’ (cause 0 - Unknown)
Jun 28 19:28:42 VERBOSE[8823] logger.c: == Everyone is busy/congested at this time (1:0/0/1)
Jun 28 19:28:42 DEBUG[8823] app_dial.c: Exiting with DIALSTATUS=CHANUNAVAIL.

Is necessary to create one “custom app” in extensions_custom.conf and send my calls to this custom, and then in my inbound routes send the calls (destinations) to this custom app).

where am i wrong?

thanks

Hello

Right now i have everthing working. Thanks for the tips.

Thx for everthing

Best Regards,
Vítor Macedo

you appear to be getting a did from your isdn line? is this always the case? If so, use from-pstn and use did routing on that did, see if that works.

Thx for the quick answer.

“you appear to be getting a did from your isdn line? is this always the case?” yes…i always get that info…

If i understand well, you are saying that i have to change my zapata-auto.conf, and put the contexts=from-pstn? and in the freepbx make did routing:

did number= my extension from isdn line
cid =blank
zapchannel=blank
set destination: here i have to put my from-pstn?

I dont know if i have the right ideia from “did routing”, but i have almost everthing to work, with more or less work. This problem was the only one that i still have.

Best regards and thx again.

from your previous post, what I was saying is in your zapata.conf change context=from-zaptel to context=from-pstn.

then make a route for the ‘80’ did that is coming in.

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 :slight_smile:

Best regards.