SearchSearch  Log in to check your private messagesLog in to check your private messages  recent posts Recent Posts
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
paulregOffline



Joined: Aug 29, 2007
Posts: 4

Status: Offline
Posted: Aug 29, 2007 - 02:30 PM Reply with quote Back to top
I am using a Trixbox 2.2 setup with a Rhino R4FXO card.
I can receive calls OK but ...
I can dial out if I create a ZAP Trunk with a ZAP Identifier of 2 and select this in my Outbound Route.
I only have one pstn line connected to the card for testing and this is in port 2.
If I create a a ZAP Trunk with a ZAP Identifier of 1,3 or 4 and select this in my Outbound Route, the phone says it is connected but nothing happens.
Using my original ZAP trunk with a g0 ZAP Identifier still results in "All circuits are busy..." which is a pity because I need a way of using all four lines.
group 0 is specified in zapata.conf
Any thoughts anyone please ?
View user's profile Send private message
ianplainOffline
Site Admin


Joined: Jul 05, 2004
Posts: 2909
Location: Bath UK
Status: Offline
Posted: Aug 29, 2007 - 02:32 PM Reply with quote Back to top
Hi

Quote:
Any thoughts anyone please ?


without seeing any debug info and conf files. Its all guesswork.

Ian
View user's profile Send private message
paulregOffline



Joined: Aug 29, 2007
Posts: 4

Status: Offline
Posted: Aug 29, 2007 - 03:04 PM Reply with quote Back to top
Sorry -

THIS WORKED (zap2)

-- Executing Macro("SIP/8110-08d63388", "dialout-trunk|2|388110||") in new stack
-- Executing Set("SIP/8110-08d63388", "DIAL_TRUNK=2") in new stack
-- Executing Set("SIP/8110-08d63388", "_NODEST=") in new stack
-- Executing Set("SIP/8110-08d63388", "DIAL_NUMBER=388110") in new stack
-- Executing Set("SIP/8110-08d63388", "ROUTE_PASSWD=") in new stack
-- Executing Set("SIP/8110-08d63388", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing GotoIf("SIP/8110-08d63388", "1?noauth") in new stack
-- Goto (macro-dialout-trunk,s,Cool
-- Executing Set("SIP/8110-08d63388", "GROUP()=OUT_2") in new stack
-- Executing Macro("SIP/8110-08d63388", "user-callerid|SKIPTTL") in new stack
-- Executing NoOp("SIP/8110-08d63388", "user-callerid: device 8110") in new stack
-- Executing GotoIf("SIP/8110-08d63388", "0?report") in new stack
-- Executing GotoIf("SIP/8110-08d63388", "0?start") in new stack
-- Executing Set("SIP/8110-08d63388", "REALCALLERIDNUM=8110") in new stack
-- Executing NoOp("SIP/8110-08d63388", "REALCALLERIDNUM is 8110") in new stack
-- Executing Set("SIP/8110-08d63388", "AMPUSER=8110") in new stack
-- Executing Set("SIP/8110-08d63388", "AMPUSERCIDNAME=Paul Francis") in new stack
-- Executing GotoIf("SIP/8110-08d63388", "0?report") in new stack
-- Executing Set("SIP/8110-08d63388", "CALLERID(all)=Paul Francis <8110>") in new stack
-- Executing Set("SIP/8110-08d63388", "REALCALLERIDNUM=8110") in new stack
-- Executing NoOp("SIP/8110-08d63388", "TTL: ARG1: SKIPTTL") in new stack
-- Executing GotoIf("SIP/8110-08d63388", "1?continue") in new stack
-- Goto (macro-user-callerid,s,21)
-- Executing NoOp("SIP/8110-08d63388", "Using CallerID "Paul Francis" <8110>") in new stack
-- Executing Macro("SIP/8110-08d63388", "record-enable|8110|OUT") in new stack
-- Executing GotoIf("SIP/8110-08d63388", "0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing DeadAGI("SIP/8110-08d63388", "recordingcheck|20070829-145945|1188395985.42") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20070829-145945|1188395985.42: Outbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing NoOp("SIP/8110-08d63388", "No recording needed") in new stack
-- Executing GotoIf("SIP/8110-08d63388", "0?skipoutcid") in new stack
-- Executing Set("SIP/8110-08d63388", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing Macro("SIP/8110-08d63388", "outbound-callerid|2") in new stack
-- Executing GotoIf("SIP/8110-08d63388", "1?start") in new stack
-- Goto (macro-outbound-callerid,s,3)
-- Executing NoOp("SIP/8110-08d63388", "REALCALLERIDNUM is 8110") in new stack
-- Executing GotoIf("SIP/8110-08d63388", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,9)
-- Executing Set("SIP/8110-08d63388", "USEROUTCID=") in new stack
-- Executing Set("SIP/8110-08d63388", "EMERGENCYCID=") in new stack
-- Executing Set("SIP/8110-08d63388", "TRUNKOUTCID=") in new stack
-- Executing GotoIf("SIP/8110-08d63388", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,16)
-- Executing GotoIf("SIP/8110-08d63388", "1?usercid") in new stack
-- Goto (macro-outbound-callerid,s,1Cool
-- Executing GotoIf("SIP/8110-08d63388", "1?report") in new stack
-- Goto (macro-outbound-callerid,s,22)
-- Executing NoOp("SIP/8110-08d63388", "CallerID set to "Paul Francis" <8110>") in new stack
-- Executing GotoIf("SIP/8110-08d63388", "0?nomax") in new stack
-- Executing GotoIf("SIP/8110-08d63388", "0?chanfull") in new stack
-- Executing DeadAGI("SIP/8110-08d63388", "fixlocalprefix") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
-- AGI Script fixlocalprefix completed, returning 0
-- Executing Set("SIP/8110-08d63388", "OUTNUM=388110") in new stack
-- Executing Set("SIP/8110-08d63388", "custom=ZAP/2") in new stack
-- Executing GotoIf("SIP/8110-08d63388", "0?customtrunk") in new stack
-- Executing Dial("SIP/8110-08d63388", "ZAP/2/388110|300|") in new stack
-- Called 2/388110
-- Zap/2-1 answered SIP/8110-08d63388
-- Started music on hold, class 'default', on Zap/2-1
-- Stopped music on hold on Zap/2-1
-- Hungup 'Zap/2-1'
== Spawn extension (macro-dialout-trunk, s, 20) exited non-zero on 'SIP/8110-08d63388' in macro 'dialout-trunk'
== Spawn extension (macro-dialout-trunk, s, 20) exited non-zero on 'SIP/8110-08d63388'
-- Executing Macro("SIP/8110-08d63388", "hangupcall") in new stack
-- Executing ResetCDR("SIP/8110-08d63388", "w") in new stack
-- Executing NoCDR("SIP/8110-08d63388", "") in new stack
-- Executing GotoIf("SIP/8110-08d63388", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing GotoIf("SIP/8110-08d63388", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing Wait("SIP/8110-08d63388", "5") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/8110-08d63388' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/8110-08d63388'
asterisk1*CLI>


THIS DID NOT WORK (group 0)

-- Executing Macro("SIP/8110-08cf6eb0", "dialout-trunk|1|388110||") in new stack
-- Executing Set("SIP/8110-08cf6eb0", "DIAL_TRUNK=1") in new stack
-- Executing Set("SIP/8110-08cf6eb0", "_NODEST=") in new stack
-- Executing Set("SIP/8110-08cf6eb0", "DIAL_NUMBER=388110") in new stack
-- Executing Set("SIP/8110-08cf6eb0", "ROUTE_PASSWD=") in new stack
-- Executing Set("SIP/8110-08cf6eb0", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing GotoIf("SIP/8110-08cf6eb0", "1?noauth") in new stack
-- Goto (macro-dialout-trunk,s,Cool
-- Executing Set("SIP/8110-08cf6eb0", "GROUP()=OUT_1") in new stack
-- Executing Macro("SIP/8110-08cf6eb0", "user-callerid|SKIPTTL") in new stack
-- Executing NoOp("SIP/8110-08cf6eb0", "user-callerid: device 8110") in new stack
-- Executing GotoIf("SIP/8110-08cf6eb0", "0?report") in new stack
-- Executing GotoIf("SIP/8110-08cf6eb0", "0?start") in new stack
-- Executing Set("SIP/8110-08cf6eb0", "REALCALLERIDNUM=8110") in new stack
-- Executing NoOp("SIP/8110-08cf6eb0", "REALCALLERIDNUM is 8110") in new stack
-- Executing Set("SIP/8110-08cf6eb0", "AMPUSER=8110") in new stack
-- Executing Set("SIP/8110-08cf6eb0", "AMPUSERCIDNAME=Paul Francis") in new stack
-- Executing GotoIf("SIP/8110-08cf6eb0", "0?report") in new stack
-- Executing Set("SIP/8110-08cf6eb0", "CALLERID(all)=Paul Francis <8110>") in new stack
-- Executing Set("SIP/8110-08cf6eb0", "REALCALLERIDNUM=8110") in new stack
-- Executing NoOp("SIP/8110-08cf6eb0", "TTL: ARG1: SKIPTTL") in new stack
-- Executing GotoIf("SIP/8110-08cf6eb0", "1?continue") in new stack
-- Goto (macro-user-callerid,s,21)
-- Executing NoOp("SIP/8110-08cf6eb0", "Using CallerID "Paul Francis" <8110>") in new stack
-- Executing Macro("SIP/8110-08cf6eb0", "record-enable|8110|OUT") in new stack
-- Executing GotoIf("SIP/8110-08cf6eb0", "0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing DeadAGI("SIP/8110-08cf6eb0", "recordingcheck|20070829-145347|1188395627.39") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20070829-145347|1188395627.39: Outbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing NoOp("SIP/8110-08cf6eb0", "No recording needed") in new stack
-- Executing GotoIf("SIP/8110-08cf6eb0", "0?skipoutcid") in new stack
-- Executing Set("SIP/8110-08cf6eb0", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing Macro("SIP/8110-08cf6eb0", "outbound-callerid|1") in new stack
-- Executing GotoIf("SIP/8110-08cf6eb0", "1?start") in new stack
-- Goto (macro-outbound-callerid,s,3)
-- Executing NoOp("SIP/8110-08cf6eb0", "REALCALLERIDNUM is 8110") in new stack
-- Executing GotoIf("SIP/8110-08cf6eb0", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,9)
-- Executing Set("SIP/8110-08cf6eb0", "USEROUTCID=") in new stack
-- Executing Set("SIP/8110-08cf6eb0", "EMERGENCYCID=") in new stack
-- Executing Set("SIP/8110-08cf6eb0", "TRUNKOUTCID=") in new stack
-- Executing GotoIf("SIP/8110-08cf6eb0", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,16)
-- Executing GotoIf("SIP/8110-08cf6eb0", "1?usercid") in new stack
-- Goto (macro-outbound-callerid,s,1Cool
-- Executing GotoIf("SIP/8110-08cf6eb0", "1?report") in new stack
-- Goto (macro-outbound-callerid,s,22)
-- Executing NoOp("SIP/8110-08cf6eb0", "CallerID set to "Paul Francis" <8110>") in new stack
-- Executing GotoIf("SIP/8110-08cf6eb0", "0?nomax") in new stack
-- Executing GotoIf("SIP/8110-08cf6eb0", "0?chanfull") in new stack
-- Executing DeadAGI("SIP/8110-08cf6eb0", "fixlocalprefix") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
-- AGI Script fixlocalprefix completed, returning 0
-- Executing Set("SIP/8110-08cf6eb0", "OUTNUM=388110") in new stack
-- Executing Set("SIP/8110-08cf6eb0", "custom=ZAP/g0") in new stack
-- Executing GotoIf("SIP/8110-08cf6eb0", "0?customtrunk") in new stack
-- Executing Dial("SIP/8110-08cf6eb0", "ZAP/g0/388110|300|") in new stack
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing Goto("SIP/8110-08cf6eb0", "s-CHANUNAVAIL|1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing NoOp("SIP/8110-08cf6eb0", "Dial failed due to CHANUNAVAIL - failing through to other trunks") in new stack
-- Executing Macro("SIP/8110-08cf6eb0", "outisbusy|") in new stack
-- Executing Playback("SIP/8110-08cf6eb0", "all-circuits-busy-now|noanswer") in new stack
-- Playing 'all-circuits-busy-now' (language 'en')
-- Executing Playback("SIP/8110-08cf6eb0", "pls-try-call-later|noanswer") in new stack
-- Playing 'pls-try-call-later' (language 'en')
== Parsing '/etc/asterisk/manager.conf': Found!
== Parsing '/etc/asterisk/manager_custom.conf': Found
== Manager 'admin' logged on from 127.0.0.1
-- Executing Macro("SIP/8110-08cf6eb0", "hangupcall") in new stack
-- Executing ResetCDR("SIP/8110-08cf6eb0", "w") in new stack
-- Executing NoCDR("SIP/8110-08cf6eb0", "") in new stack
-- Executing GotoIf("SIP/8110-08cf6eb0", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing GotoIf("SIP/8110-08cf6eb0", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing Wait("SIP/8110-08cf6eb0", "5") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/8110-08cf6eb0' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/8110-08cf6eb0' in macro 'outisbusy'
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/8110-08cf6eb0'
-- Got SIP response 400 "Bad Request" back from 172.25.1.57



root@asterisk1 asterisk]# cat zapata.conf
;
; Zapata telephony interface
;
; Configuration file

[trunkgroups]

[channels]
context=from-pstn
signalling=fxs_ks
channel => 1-4
group=0
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=no
echotraining=800
rxgain=0.0
txgain=0.0
callgroup=1
pickupgroup=1
immediate=no

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

;Include genzaptelconf configs
#include zapata-auto.conf



;Include AMP configs
#include zapata_additional.conf


Please let me know if I should post anything else.
Thanks.
View user's profile Send private message
ianplainOffline
Site Admin


Joined: Jul 05, 2004
Posts: 2909
Location: Bath UK
Status: Offline
Posted: Aug 29, 2007 - 03:35 PM Reply with quote Back to top
Hi
basicly noe of your settings are asigned to the channels 1-4
change
Quote:
[channels]
context=from-pstn
signalling=fxs_ks
channel => 1-4
group=0
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=no
echotraining=800
rxgain=0.0
txgain=0.0
callgroup=1
pickupgroup=1
immediate=no

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


to

Quote:
[channels]
context=from-pstn
signalling=fxs_ks
group=0
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=no
echotraining=800
rxgain=0.0
txgain=0.0
callgroup=1
pickupgroup=1
immediate=no

;faxdetect=both
faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no
channel => 1-4
View user's profile Send private message
paulregOffline



Joined: Aug 29, 2007
Posts: 4

Status: Offline
Posted: Aug 29, 2007 - 04:12 PM Reply with quote Back to top
So I have to put the channel entry after the others in zapata.conf.
I have now done this and it seems that it goes to port 1 on the card and port 1 answers because it is not busy despite the fact that it has no line connected.
I then plugged the line into port 1 and everything worked OK.
A second call made at the same time went to port 2 on the card as port 1 was busy so everything looks OK now.
Many thanks
Paulreg
View user's profile Send private message


View previous topic Printable version Log in to check your private messages View next topic

Post new topic   Reply to topic
Forum Rules and Guidelines | About VoIP User | Privacy Policy


All logos and trademarks in this site are property of their respective owner.
Comments and posts are property of the poster, all the rest (c) 2003-2008 VoIP User Limited.

VoIP User Limited is incorporated in England and Wales under Company Number 6694577.

No part of this site may be reproduced without our prior consent.