<div dir="ltr">What driver are you using underneath for the FXO.<br><br><br><br><div class="gmail_quote">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>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">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&#39;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&#39;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&#39;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&#39;t know<br>
what its doing exactly.<br>
<br>
[au]<br>
generate-dial =&gt; v=-7;%(1000,0,413,438)<br>
detect-dial =&gt; 413,438<br>
generate-ring =&gt; v=-7;%(400,200,413,438);%(400,2000,413,438)<br>
detect-ring =&gt; 413,438<br>
generate-busy =&gt; v=-7;%(375,375,425)<br>
detect-busy =&gt; 425<br>
generate-attn =&gt; v=0;%(100,100,1400,2060,2450,2600)<br>
detect-attn =&gt; 1400,2060,2450,2600<br>
generate-callwaiting-sas =&gt; v=0;%(300,0,440)<br>
detect-callwaiting-sas =&gt; 440<br>
generate-callwaiting-cas =&gt; v=0;%(80,0,2750,2130)<br>
detect-callwaiting-cas =&gt; 2750,2130<br>
detect-fail1 =&gt; 913.8<br>
detect-fail2 =&gt; 1370.6<br>
detect-fail3 =&gt; 776.7<br>
<br>
Using the generate-ring line as an example<br>
<br>
generate-ring =&gt; 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&#39;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 =&gt;<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=&quot;out-zap-channel-7&quot;&gt;<br>
 &nbsp;&lt;condition field=&quot;destination_number&quot; expression=&quot;^(7)$&quot;&gt;<br>
 &nbsp; &nbsp;&lt;action application=&quot;ring_ready&quot;/&gt;<br>
 &nbsp; &nbsp;&lt;action application=&quot;bridge&quot; data=&quot;openzap/7/1&quot;/&gt;<br>
 &nbsp;&lt;/condition&gt;<br>
&lt;/extension&gt;<br>
<br>
&lt;extension name=&quot;out-zap-channel-8&quot;&gt;<br>
 &nbsp;&lt;condition field=&quot;destination_number&quot; expression=&quot;^(8)$&quot;&gt;<br>
 &nbsp; &nbsp;&lt;action application=&quot;ring_ready&quot;/&gt;<br>
 &nbsp; &nbsp;&lt;action application=&quot;bridge&quot; data=&quot;openzap/8/1&quot;/&gt;<br>
 &nbsp;&lt;/condition&gt;<br>
&lt;/extension&gt;<br>
<br>
<br>
&lt;extension name=&quot;in-zap-channel-27&quot;&gt;<br>
 &nbsp;&lt;condition field=&quot;destination_number&quot; expression=&quot;^(27)$&quot;&gt;<br>
 &nbsp; &nbsp;&lt;!--&lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;--&gt;<br>
&lt;!--Couldn&#39;t see a difference--&gt;<br>
 &nbsp; &nbsp;&lt;!--&lt;action application=&quot;set&quot; data=&quot;effective_caller_id_name=6055<br>
Line&quot;/&gt;--&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;!--fiddling--&gt;<br>
 &nbsp; &nbsp;&lt;!--&lt;action application=&quot;set&quot;<br>
data=&quot;effective_caller_id_number=6055&quot;/&gt;--&gt;<br>
&lt;!--fiddling--&gt;<br>
 &nbsp; &nbsp;&lt;!--&lt;action application=&quot;tone_detect&quot; data=&quot;busy 425 r +5 hangup<br>
normal_clearing&quot;/&gt;--&gt; &nbsp; &lt;!--Really thought this might work--&gt;<br>
 &nbsp; &nbsp;&lt;!--&lt;action application=&quot;answer&quot;/&gt;--&gt;<br>
&lt;!--Tried a simple ivr and symptoms same. ivr bridges call--&gt;<br>
 &nbsp; &nbsp;&lt;!--&lt;action application=&quot;sleep&quot; data=&quot;2000&quot;/&gt;--&gt;<br>
&lt;!--hangup incoming call before answering with FXS--&gt;<br>
 &nbsp; &nbsp;&lt;!--&lt;action application=&quot;ivr&quot; data=&quot;coltect_ivr&quot;/&gt;--&gt;<br>
&lt;!--and FXS still rings--&gt;<br>
 &nbsp; &nbsp;&lt;action application=&quot;bridge&quot; data=&quot;openzap/8/1&quot;/&gt;<br>
 &nbsp; &nbsp;&lt;!--&lt;action application=&quot;transfer&quot; data=&quot;8&quot;/&gt;<br>
 &nbsp;&lt;/condition&gt;<br>
&lt;/extension&gt;<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>
</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>