<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Also, make sure your using the trunk of freeswitch.<div><br></div><div>Mike</div><div><br><div><div>On Jul 21, 2008, at 10:10 AM, Anthony Minessale wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">did you play around with the fxo types like kewlstart etc.<br><br>maybe if you would like to join irc and lab it up for us, we can have a look at it on your box in real time.<br><br><br><div class="gmail_quote"> On Mon, Jul 21, 2008 at 9:10 AM, Col Ferguson &lt;<a href="mailto:asterisk@coltect.no-ip.com">asterisk@coltect.no-ip.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> I'm using zaptel-1.4.9.2.xpp.r5566 (I had this downloaded already for an<br> asterisk install). I tried 1.4.11 svn trunk initially, but changed to<br> <a href="http://1.4.9.2" target="_blank">1.4.9.2</a> in case it was something to do with the svn trunk code. I have<br> another box with asterisk <a href="http://1.4.18.1" target="_blank">1.4.18.1</a> and zaptel 1.4.9.2.xpp.r5566 working<br> fine.<br> <br> I am using freeswitch svn trunk, as I read somewhere in the user list<br> archives that there were openzap fixes done recently.<br> <br> Any other info that may help ?<br> <br> Thanks,<br> <font color="#888888">Col<br> </font><div><div></div><div class="Wj3C7c"><br> <br> ----- Original Message -----<br> From: Anthony Minessale<br> To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br> Sent: Monday, July 21, 2008 11:31 PM<br> Subject: Re: [Freeswitch-users] OpenZap and tones.conf - FXO hangup problem<br> <br> <br> What driver are you using underneath for the FXO.<br> <br> <br> <br> <br> On Mon, Jul 21, 2008 at 7:44 AM, Col Ferguson &lt;<a href="mailto:asterisk@coltect.no-ip.com">asterisk@coltect.no-ip.com</a>><br> wrote:<br> <br> Hello all,<br> I have installed freeswitch and had a bit of a play over the last few days<br> and have a question about the format of the tones.conf file for OpenZap.<br> <br> I have a Xorcom Astribank to play with at the moment and have it working<br> mostly. I haven't done anything with the SIP part at all yet.<br> <br> My basic hurdle at the moment is detecting a hangup on an FXO port before<br> any bridged FXS extensions answer.<br> If I hangup the line I am ringing into, the FXS extension keeps on ringing,<br> then when the FXS extension is answered it is bridged to the FXO port and I<br> get a dialtone and access to the FXO PSTN line directly.<br> <br> I read a post that alluded to the possibility that having the wrong info in<br> tones.conf may result in strange behaviour as openzap doesn't recognise<br> tones correctly. I could be completely wrong, and often am, but thats always<br> been a good way to learn stuff.<br> <br> <br> I haven't been able to find any good info on the format of tones.conf, but<br> have managed to work out a few things so far.<br> <br> I have this is tones.conf for au, and its loading properly, but I don't know<br> what its doing exactly.<br> <br> [au]<br> generate-dial => v=-7;%(1000,0,413,438)<br> detect-dial => 413,438<br> generate-ring => v=-7;%(400,200,413,438);%(400,2000,413,438)<br> detect-ring => 413,438<br> generate-busy => v=-7;%(375,375,425)<br> detect-busy => 425<br> generate-attn => v=0;%(100,100,1400,2060,2450,2600)<br> detect-attn => 1400,2060,2450,2600<br> generate-callwaiting-sas => v=0;%(300,0,440)<br> detect-callwaiting-sas => 440<br> generate-callwaiting-cas => v=0;%(80,0,2750,2130)<br> detect-callwaiting-cas => 2750,2130<br> detect-fail1 => 913.8<br> detect-fail2 => 1370.6<br> detect-fail3 => 776.7<br> <br> Using the generate-ring line as an example<br> <br> generate-ring => v=-7;%(400,200,413,438);%(400,2000,413,438)<br> <br> I think that<br> generate-ring is for generating the ring tone used internally by ring_ready<br> (and probably other areas I haven't found/noticed yet)<br> ; is a separator<br> v=-7 probably sets a volume level ?<br> %(400,200,413,438) 400 is the time for the tone to be on, 200 is the time<br> for the tone to be off, 413 is the first tone played, 438 is the second tone<br> played ?<br> %(400,2000,413,438) 400 is the time for the tone to be on, 2000 is the time<br> for the tone to be off, 413 is the first tone played, 438 is the second tone<br> played ?<br> <br> (I found some code in switch.conf.xml that sets up ring tones that showed<br> using the two lots of settings, and this sounds right for me in Australia. I<br> got the freqs from a Sipura, asterisk source and a web site<br> <a href="http://www.3amsystems.com" target="_blank">www.3amsystems.com</a>)<br> <br> detect-ring is used to look for a specific tone ?<br> <br> So what then is the information in generate-attn =><br> v=0;%(100,100,1400,2060,2450,2600) doing ?<br> Also what are detect-fail1,2,3 for ?<br> <br> Is there anywhere to set a disconnect tone ?<br> As far as I can tell, Australia uses the busy tone to indicate a hangup,<br> which sometimes comes after a period of silence.<br> <br> <br> In case I am completely off track my dialplan is below. All Zap channels are<br> corresponding numbers, ie channel 1 is number 1 etc. Channel 1-8 are FXS,<br> 9-14 ate FXS but input/outputs, 15-22 are FXS and 23-30 are FXO.<br> <br> This is from /usr/local/freeswitch/conf/dialplan/extensions/home.xml<br> <br> Please point out anything silly in here.<br> <br> &lt;extension name="out-zap-channel-7"><br> &nbsp;&lt;condition field="destination_number" expression="^(7)$"><br> &nbsp; &lt;action application="ring_ready"/><br> &nbsp; &lt;action application="bridge" data="openzap/7/1"/><br> &nbsp;&lt;/condition><br> &lt;/extension><br> <br> &lt;extension name="out-zap-channel-8"><br> &nbsp;&lt;condition field="destination_number" expression="^(8)$"><br> &nbsp; &lt;action application="ring_ready"/><br> &nbsp; &lt;action application="bridge" data="openzap/8/1"/><br> &nbsp;&lt;/condition><br> &lt;/extension><br> <br> <br> &lt;extension name="in-zap-channel-27"><br> &nbsp;&lt;condition field="destination_number" expression="^(27)$"><br> &nbsp; &lt;!--&lt;action application="set" data="hangup_after_bridge=true"/>--><br> &lt;!--Couldn't see a difference--><br> &nbsp; &lt;!--&lt;action application="set" data="effective_caller_id_name=6055<br> Line"/>--> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;!--fiddling--><br> &nbsp; &lt;!--&lt;action application="set"<br> data="effective_caller_id_number=6055"/>--><br> &lt;!--fiddling--><br> &nbsp; &lt;!--&lt;action application="tone_detect" data="busy 425 r +5 hangup<br> normal_clearing"/>--> &nbsp; &lt;!--Really thought this might work--><br> &nbsp; &lt;!--&lt;action application="answer"/>--><br> &lt;!--Tried a simple ivr and symptoms same. ivr bridges call--><br> &nbsp; &lt;!--&lt;action application="sleep" data="2000"/>--><br> &lt;!--hangup incoming call before answering with FXS--><br> &nbsp; &lt;!--&lt;action application="ivr" data="coltect_ivr"/>--><br> &lt;!--and FXS still rings--><br> &nbsp; &lt;action application="bridge" data="openzap/8/1"/><br> &nbsp; &lt;!--&lt;action application="transfer" data="8"/><br> &nbsp;&lt;/condition><br> &lt;/extension><br> <br> Thanks,<br> Col<br> <br> <br> _______________________________________________<br> Freeswitch-users mailing list<br> <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br> <br> <br> <br> <br> --<br> Anthony Minessale II<br> <br> FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br> ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br> <br> AIM: anthm<br> <a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br> GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br> IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br> <br> FreeSWITCH Developer Conference<br> <a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br> <a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br> <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br> pstn:213-799-1400<br> <br> <br> <br> _______________________________________________<br> Freeswitch-users mailing list<br> <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br> <br> <br> _______________________________________________<br> Freeswitch-users mailing list<br> <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br> </div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br> <br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br> IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br> <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400 </div> _______________________________________________<br>Freeswitch-users mailing list<br><a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br></div></body></html>