I am from India. The Indian dial tone is a combination of 350 Hz tone and a 440 Hz tone. Anyways here is the snippet of my tones.conf @ /etc/openzap/<br><br>[us]<br>generate-dial =&gt; v=-7;%(1000,0,350,440)<br>detect-dial =&gt; 350,440
<br><br>generate-ring =&gt; v=-7;%(2000,4000,440,480)<br>detect-ring =&gt; 440,480<br><br>generate-busy =&gt; v=-7;%(500,500,480,620)<br>detect-busy =&gt; 480,620<br><br>generate-attn =&gt; v=0;%(100,100,1400,2060,2450,2600)
<br>detect-attn =&gt; 1400,2060,2450,2600<br><br>generate-callwaiting-sas =&gt; v=0;%(300,0,440)<br>detect-callwaiting-sas =&gt; 440<br><br>generate-callwaiting-cas =&gt; v=0;%(80,0,2750,2130)<br>detect-callwaiting-cas =&gt; 2750,2130
<br><br>detect-fail1 =&gt; 913.8<br>detect-fail2 =&gt; 1370.6<br>detect-fail3 =&gt; 776.7<br><span style="color: black;"></span><br>BR,<br>Irshad.<br><br><div class="gmail_quote">On Jan 10, 2008 6:57 AM, Michael Jerris &lt;
<a href="mailto:mike@jerris.com">mike@jerris.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;"><div style="">Yes, these are set in 
tones.conf. &nbsp;You will need to add the correct values for your area (we can add them to the default config if you can provide those). &nbsp;Also, please update to the current code, tony just added quite a few features to mod_openzap including support for hold music, transfer (blind and attended), and 3-way.
<div><br></div><div>Mike</div><div><br></div><div><br><div><div><div></div><div class="Wj3C7c"><div>On Jan 9, 2008, at 7:57 AM, Irshad Ahamed wrote:</div><br></div></div><blockquote type="cite"><div><div></div><div class="Wj3C7c">
With the same set-up, Outgoing calls are working fine with Asterisk. <br><br>Are there any tools to detect the presence of dial tone??? If it&#39;s any parameter issue, can we adjust those parameters???<br><br>NOTE: I copied 
tones.conf available from the source code to /etc/openzap/<br><br>&nbsp;BR,<br>Irshad.<br><br><br><div class="gmail_quote">On Jan 5, 2008 12:00 AM, Anthony Minessale &lt;<a href="mailto:anthmct@yahoo.com" target="_blank">anthmct@yahoo.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;"><div><div style="font-family: courier,monaco,monospace,sans-serif; font-size: 12pt;">
 I think it&#39;s waiting for a dialtone before it sends the digits<br>and then giving up because it can&#39;t fine one.<div><br><br><div>&nbsp;</div><div>Anthony Minessale II<br><br><span>FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">
 http://www.freeswitch.org/</a></span><br><span>ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a></span><br><br>AIM: anthm<br><a href="mailto:MSN:anthony_minessale@hotmail.com" target="_blank">
 MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/PAYPAL:<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a><br>IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net 
</a> #freeswitch</div><div><br>FreeSWITCH Developer Conference<br><a href="mailto:sip:888@conference.freeswitch.org" target="_blank">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:conf+888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400</div></div><div style="font-family: courier,monaco,monospace,sans-serif; font-size: 12pt;">
 <br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>----- Original Message ----<br>From: Irshad Ahamed &lt;<a href="mailto:irshad.fswitch@gmail.com" target="_blank"> irshad.fswitch@gmail.com
</a>&gt;<br></div><div><div></div><div>To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>; <a href="mailto:freeswitch-dev@lists.freeswitch.org" target="_blank">
 freeswitch-dev@lists.freeswitch.org</a><br>Sent: Friday, January 4, 2008 4:24:07 AM<br>Subject: Re: [Freeswitch-users] Not able to make an outgoing Call through FXO....<br><br> Hi Anthony,<br><br>Thanks for the info. By adding the span-ID = 2 , I was able to receive an incoming call successfully.
<br>The dialplan/default.xml is as below:<br>&nbsp; &lt;extension name=&quot;incoming&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &lt;condition field=&quot;destination_number&quot; expression=&quot;^(1)$&quot;&gt; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;bridge&quot; data=&quot;openzap/1/1&quot;/&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--action application=&quot;bridge&quot; data=&quot;openzap/1/1&quot;/&gt;--&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>&nbsp; &lt;/extension&gt; <br><br>&nbsp; &lt;extension name=&quot;outgoing-fxo&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &lt;condition field=&quot;destination_number&quot; expression=&quot;^(43)$&quot;&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;bridge&quot; data=&quot;openzap/2/1/43&quot;/&gt; <br>&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>&nbsp; &lt;/extension&gt;<br>&nbsp;<br>The Openzap.conf.xml looks like below:<br><br>&lt;configuration name=&quot;
openzap.conf&quot; description=&quot;OpenZAP Configuration&quot;&gt;<br>&nbsp; &lt;settings&gt; <br>&nbsp;&nbsp;&nbsp; &lt;param name=&quot;debug&quot; value=&quot;9&quot;/&gt;<br>&nbsp; &lt;/settings&gt;<br>&nbsp; &lt;analog_spans&gt;<br>&nbsp;&nbsp;&nbsp; &lt;span id=&quot;1&quot;&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;tonegroup&quot; value=&quot;us&quot;/&gt; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;digit-timeout&quot; value=&quot;2000&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;max-digits&quot; value=&quot;11&quot;/&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;dialplan&quot; value=&quot;XML&quot;/&gt; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;context&quot; value=&quot;default&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- regex to stop dialing when it matches --&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--&lt;param name=&quot;dial-regex&quot; value=&quot;5555&quot;/&gt;--&gt; 
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- regex to stop dialing when it does not match --&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--&lt;param name=&quot;fail-dial-regex&quot; value=&quot;^5&quot;/&gt;--&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/span&gt;<br>&nbsp;&nbsp;&nbsp; &lt;span id=&quot;2&quot;&gt;<br>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;tonegroup&quot; value=&quot;us&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;digit-timeout&quot; value=&quot;2000&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;max-digits&quot; value=&quot;1&quot;/&gt;<br>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;dialplan&quot; value=&quot;XML&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;context&quot; value=&quot;default&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- regex to stop dialing when it matches --&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--&lt;param name=&quot;dial-regex&quot; value=&quot;5555&quot;/&gt;--&gt; 
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- regex to stop dialing when it does not match --&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--&lt;param name=&quot;fail-dial-regex&quot; value=&quot;^5&quot;/&gt;--&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/span&gt;<br>&nbsp; &lt;/analog_spans&gt;<br>&lt;/configuration&gt; 
<br><br>But still I am unable to make an Outgoing Call. Please have a look at the Freeswitch Log below:<br><br>2008-01-04 15:45:03 [DEBUG] zap_analog.c:664 process_event() EVENT [OFFHOOK][1:1] STATE [DOWN]<br>2008-01-04 15:45:03 [DEBUG] zap_analog.c:726 process_event() Changing state on 1:1 from DOWN to DIALTONE 
<br>2008-01-04 15:45:03 [DEBUG] zap_analog.c:184 zap_analog_channel_run() ANALOG CHANNEL thread starting.<br>2008-01-04 15:45:03 [DEBUG] zap_analog.c:351 zap_analog_channel_run() Executing state handler on 1:1 for DIALTONE 
<br>2008-01-04 15:45:07 [DEBUG] zap_analog.c:490 zap_analog_channel_run() DTMF 4<br>2008-01-04 15:45:07 [DEBUG] zap_analog.c:492 zap_analog_channel_run() Changing state on 1:1 from DIALTONE to COLLECT<br>2008-01-04 15:45:07 [DEBUG] mod_openzap.c:968 on_fxs_signal() got FXS sig [COLLECTED_DIGIT] 
<br>2008-01-04 15:45:07 [DEBUG] zap_analog.c:351 zap_analog_channel_run() Executing state handler on 1:1 for COLLECT<br>2008-01-04 15:45:07 [DEBUG] zap_analog.c:490 zap_analog_channel_run() DTMF 2<br>2008-01-04 15:45:07 [DEBUG] mod_openzap.c:968 on_fxs_signal() got FXS sig [COLLECTED_DIGIT] 
<br>2008-01-04 15:45:09 [DEBUG] zap_analog.c:507 zap_analog_channel_run() Number obtained [42]<br>2008-01-04 15:45:09 [DEBUG] zap_analog.c:508 zap_analog_channel_run() Changing state on 1:1 from COLLECT to IDLE<br>2008-01-04 15:45:09 [DEBUG] zap_analog.c:351 zap_analog_channel_run() Executing state handler on 1:1 for IDLE 
<br>2008-01-04 15:45:09 [DEBUG] mod_openzap.c:968 on_fxs_signal() got FXS sig [START]<br>2008-01-04 15:45:09 [DEBUG] mod_openzap.c:231 tech_init() Set codec PCMU 20ms<br>2008-01-04 15:45:09 [NOTICE] switch_channel.c:392 switch_channel_set_name() New Chan OpenZAP/42 [8d46eb7f-4305-49e8-a4a5-eb97af3b696b] 
<br>2008-01-04 15:45:09 [DEBUG] mod_openzap.c:892 zap_channel_from_event() OpenZAP/42 State Change CS_NEW -&gt; CS_INIT<br>2008-01-04 15:45:09 [DEBUG] switch_core_session.c:625 switch_core_session_signal_state_change() Kill OpenZAP/42 [BREAK] 
<br>2008-01-04 15:45:09 [DEBUG] switch_core_state_machine.c:397 switch_core_session_run() (OpenZAP/42) State INIT<br>2008-01-04 15:45:09 [DEBUG] mod_openzap.c:256 channel_on_init() OpenZAP/42 State Change CS_INIT -&gt; CS_RING 
<br>2008-01-04 15:45:09 [DEBUG] switch_core_session.c:625 switch_core_session_signal_state_change() Kill OpenZAP/42 [BREAK]<br>2008-01-04 15:45:09 [DEBUG] switch_core_state_machine.c:400 switch_core_session_run() (OpenZAP/42) State RING 
<br>2008-01-04 15:45:09 [DEBUG] mod_openzap.c:276 channel_on_ring() OpenZAP/42 CHANNEL RING<br>2008-01-04 15:45:09 [DEBUG] switch_core_state_machine.c:64 switch_core_standard_on_ring() Standard RING OpenZAP/42<br>2008-01-04 15:45:09 [INFO] mod_dialplan_xml.c:217 dialplan_hunt() Processing OpenZAP-&gt;42! 
<br>2008-01-04 15:45:09 [DEBUG] mod_dialplan_xml.c:106 parse_exten() test conditions ${numbering_plan}() =~ //<br>2008-01-04 15:45:09 [DEBUG] mod_dialplan_xml.c:106 parse_exten() test conditions destination_number(42) =~ /^(1)$/ 
<br>2008-01-04 15:45:09 [DEBUG] mod_dialplan_xml.c:108 parse_exten() Regex mismatch<br>2008-01-04 15:45:09 [DEBUG] mod_dialplan_xml.c:106 parse_exten() test conditions destination_number(42) =~ /^(43)$/<br>2008-01-04 15:45:09 [DEBUG] mod_dialplan_xml.c:108 parse_exten() Regex mismatch 
<br>2008-01-04 15:45:09 [DEBUG] mod_dialplan_xml.c:106 parse_exten() test conditions destination_number(42) =~ /^(42)$/<br>2008-01-04 15:45:09 [DEBUG] mod_dialplan_xml.c:273 dialplan_hunt() OpenZAP/42 State Change CS_RING -&gt; CS_EXECUTE 
<br>2008-01-04 15:45:09 [DEBUG] switch_core_session.c:625 switch_core_session_signal_state_change() Kill OpenZAP/42 [BREAK]<br>2008-01-04 15:45:09 [DEBUG] switch_core_state_machine.c:406 switch_core_session_run() (OpenZAP/42) State EXECUTE 
<br>2008-01-04 15:45:09 [DEBUG] mod_openzap.c:294 channel_on_execute() OpenZAP/42 CHANNEL EXECUTE<br>2008-01-04 15:45:09 [DEBUG] switch_core_state_machine.c:121 switch_core_standard_on_execute() Standard EXECUTE<br>2008-01-04 15:45:09 [NOTICE] switch_core_state_machine.c:134 switch_core_standard_on_execute() Execute set(use_profile=${cond(${is_lan_addr(${network_addr})} == yes ? nat : default)}) 
<br>2008-01-04 15:45:09 [DEBUG] switch_core_state_machine.c:158 switch_core_standard_on_execute() Expanded String set(use_profile=default)<br>2008-01-04 15:45:09 [DEBUG] mod_dptools.c:419 set_function() SET [use_profile]=[default] 
<br>2008-01-04 15:45:09 [NOTICE] switch_core_state_machine.c:134 switch_core_standard_on_execute() Execute set_user(default@${domain})<br>2008-01-04 15:45:09 [DEBUG] switch_core_state_machine.c:158 switch_core_standard_on_execute() Expanded String set_user( 
<a rel="nofollow" href="mailto:default@192.168.2.51" target="_blank">default@192.168.2.51</a>)<br>2008-01-04 15:45:09 [NOTICE] switch_core_state_machine.c:134 switch_core_standard_on_execute() Execute info()<br>2008-01-04 15:45:09 [CRIT] mod_dptools.c:630 info_function() CHANNEL_DATA: 
<br>Channel-State: CS_EXECUTE<br>Channel-State-Number: 4<br>Channel-Name: OpenZAP/42<br>Unique-ID: 8d46eb7f-4305-49e8-a4a5-eb97af3b696b<br>Channel-Read-Codec-Name: PCMU<br>Channel-Read-Codec-Rate: 8000<br>Channel-Write-Codec-Name: PCMU 
<br>Channel-Write-Codec-Rate: 8000<br>Caller-Username: OpenZAP<br>Caller-Dialplan: XML<br>Caller-Caller-ID-Name: OpenZAP<br>Caller-Caller-ID-Number: 1<br>Caller-Destination-Number: 42<br>Caller-Unique-ID: 8d46eb7f-4305-49e8-a4a5-eb97af3b696b 
<br>Caller-Source: mod_openzap<br>Caller-Context: default<br>Caller-Channel-Name: OpenZAP/42<br>Caller-Channel-Created-Time: 1199441709953187<br>Caller-Channel-Answered-Time: 0<br>Caller-Channel-Hangup-Time: 0<br>Caller-Channel-Transfer-Time: 0 
<br>Caller-Screen-Bit: yes<br>Caller-Privacy-Hide-Name: no<br>Caller-Privacy-Hide-Number: no<br>variable_use_profile: default<br>variable_numbering_plan: US<br>variable_user_name: default<br>variable_domain_name: <a rel="nofollow" href="http://192.168.2.51" target="_blank">
 192.168.2.51</a><br><br><br>2008-01-04 15:45:09 [NOTICE] switch_core_state_machine.c:134 switch_core_standard_on_execute() Execute answer()<br>2008-01-04 15:45:09 [DEBUG] mod_openzap.c:663 channel_receive_message_fxs() Changing state on 1:1 from IDLE to UP 
<br>2008-01-04 15:45:09 [DEBUG] switch_core_session.c:339 switch_core_session_receive_message() Kill OpenZAP/42 [BREAK]<br>2008-01-04 15:45:09 [NOTICE] mod_dptools.c:361 answer_function() Channel [OpenZAP/42] has been answered 
<br>2008-01-04 15:45:09 [NOTICE] switch_core_state_machine.c:134 switch_core_standard_on_execute() Execute bridge(openzap/2/1/42)2008-01-04 15:45:09 [DEBUG] mod_openzap.c:231 tech_init() Set codec PCMU 20ms<br>2008-01-04 15:45:09 [NOTICE] switch_channel.c:392 switch_channel_set_name() New Chan OPENZAP/42 [bef803ed-e932-4a22-84e7-9131070fe771] 
<br>2008-01-04 15:45:09 [DEBUG] mod_openzap.c:802 channel_outgoing_channel() OPENZAP/42 State Change CS_NEW -&gt; CS_INIT<br>2008-01-04 15:45:09 [DEBUG] switch_core_session.c:625 switch_core_session_signal_state_change() Kill OPENZAP/42 [BREAK] 
<br>2008-01-04 15:45:09 [DEBUG] zap_analog.c:351 zap_analog_channel_run() Executing state handler on 1:1 for UP<br>2008-01-04 15:45:09 [DEBUG] mod_openzap.c:968 on_fxs_signal() got FXS sig [UP]<br>2008-01-04 15:45:09 [DEBUG] zap_analog.c:55 analog_fxo_outgoing_call() Changing state on 2:1 from DOWN to DIALING 
<br>2008-01-04 15:45:09 [DEBUG] zap_analog.c:184 zap_analog_channel_run() ANALOG CHANNEL thread starting.<br>2008-01-04 15:45:09 [DEBUG] zap_analog.c:351 zap_analog_channel_run() Executing state handler on 2:1 for DIALING 
<br>2008-01-04 15:45:09 [DEBUG] switch_core_state_machine.c:397 switch_core_session_run() (OPENZAP/42) State INIT<br>2008-01-04 15:45:09 [DEBUG] mod_openzap.c:256 channel_on_init() OPENZAP/42 State Change CS_INIT -&gt; CS_RING 
<br>2008-01-04 15:45:09 [DEBUG] switch_core_session.c:625 switch_core_session_signal_state_change() Kill OPENZAP/42 [BREAK]<br>2008-01-04 15:45:09 [DEBUG] switch_ivr_originate.c:625 switch_ivr_originate() Raw Codec Activation Success 
L16@8000hz 1 channel 20ms<br>2008-01-04 15:45:09 [DEBUG] switch_core_state_machine.c:400 switch_core_session_run() (OPENZAP/42) State RING<br>2008-01-04 15:45:09 [DEBUG] mod_openzap.c:276 channel_on_ring() OPENZAP/42 CHANNEL RING 
<br>2008-01-04 15:45:09 [DEBUG] switch_ivr_originate.c:48 originate_on_ring() OPENZAP/42 State Change CS_RING -&gt; CS_HOLD<br>2008-01-04 15:45:09 [DEBUG] switch_core_session.c:625 switch_core_session_signal_state_change() Kill OPENZAP/42 [BREAK] 
<br>2008-01-04 15:45:09 [DEBUG] switch_core_state_machine.c:415 switch_core_session_run() (OPENZAP/42) State HOLD<br>2008-01-04 15:45:09 [DEBUG] switch_core_state_machine.c:204 switch_core_standard_on_hold() Standard HOLD 
<br><br><br><a rel="nofollow" href="mailto:freeswitch@sipxpbx.oneconv.com" target="_blank">freeswitch@sipxpbx.oneconv.com</a>&gt;<br><br><a rel="nofollow" href="mailto:freeswitch@sipxpbx.oneconv.com" target="_blank">freeswitch@sipxpbx.oneconv.com 
</a>&gt;<br><br><a rel="nofollow" href="mailto:freeswitch@sipxpbx.oneconv.com" target="_blank"> freeswitch@sipxpbx.oneconv.com</a>&gt; 2008-01-04 15:45:39 [DEBUG] zap_analog.c:244 zap_analog_channel_run() Changing state on 2:1 from DIALING to BUSY
<br>2008-01-04 15:45:40 [DEBUG] zap_analog.c:351 zap_analog_channel_run() Executing state handler on 2:1 for BUSY <br>2008-01-04 15:45:40 [DEBUG] zap_analog.c:467 zap_analog_channel_run() Changing state on 2:1 from BUSY to DOWN
<br>2008-01-04 15:45:40 [DEBUG] zap_analog.c:351 zap_analog_channel_run() Executing state handler on 2:1 for DOWN <br>2008-01-04 15:45:40 [DEBUG] mod_openzap.c:916 on_fxo_signal() got FXO sig 2:1 [STOP]<br>2008-01-04 15:45:40 [NOTICE] mod_openzap.c:934 on_fxo_signal() Hangup OPENZAP/42 [CS_HOLD] [NORMAL_CIRCUIT_CONGESTION]
<br>2008-01-04 15:45:40 [DEBUG] switch_channel.c:1071 switch_channel_perform_hangup() Kill OPENZAP/42 [KILL] <br>2008-01-04 15:45:40 [DEBUG] switch_core_session.c:625 switch_core_session_signal_state_change() Kill OPENZAP/42 [BREAK]
<br>2008-01-04 15:45:40 [DEBUG] zap_analog.c:648 zap_analog_channel_run() ANALOG CHANNEL thread ended. <br>2008-01-04 15:45:40 [DEBUG] switch_core_state_machine.c:394 switch_core_session_run() (OPENZAP/42) State HANGUP<br>
2008-01-04 15:45:40 [WARNING] mod_openzap.c:319 channel_on_hangup() VETO Changing state on 2:1 from DOWN to HANGUP <br>2008-01-04 15:45:40 [DEBUG] mod_openzap.c:359 channel_on_hangup() OPENZAP/42 CHANNEL HANGUP<br>2008-01-04 15:45:40 [DEBUG] switch_core_state_machine.c:45 switch_core_standard_on_hangup() Standard HANGUP OPENZAP/42, cause: NORMAL_CIRCUIT_CONGESTION 
<br>2008-01-04 15:45:40 [DEBUG] switch_core_session.c:683 switch_core_session_thread() Session 4 (OPENZAP/42) Locked, Waiting on external entities<br>2008-01-04 15:45:40 [DEBUG] switch_ivr_originate.c:873 switch_ivr_originate() Originate Resulted in Error Cause: 34 [NORMAL_CIRCUIT_CONGESTION] 
<br>2008-01-04 15:45:40 [INFO] mod_dptools.c:1331 audio_bridge_function() Originate Failed.&nbsp; Cause: NORMAL_CIRCUIT_CONGESTION<br>2008-01-04 15:45:40 [NOTICE] mod_dptools.c:1358 audio_bridge_function() Hangup OpenZAP/42 [CS_EXECUTE] [NORMAL_CIRCUIT_CONGESTION] 
<br>2008-01-04 15:45:40 [DEBUG] switch_channel.c:1071 switch_channel_perform_hangup() Kill OpenZAP/42 [KILL]<br>2008-01-04 15:45:40 [DEBUG] switch_core_session.c:625 switch_core_session_signal_state_change() Kill OpenZAP/42 [BREAK] 
<br>2008-01-04 15:45:40 [DEBUG] switch_core_state_machine.c:394 switch_core_session_run() (OpenZAP/42) State HANGUP<br>2008-01-04 15:45:40 [DEBUG] mod_openzap.c:329 channel_on_hangup() Changing state on 1:1 from UP to HANGUP 
<br>2008-01-04 15:45:40 [DEBUG] mod_openzap.c:359 channel_on_hangup() OpenZAP/42 CHANNEL HANGUP<br>2008-01-04 15:45:40 [DEBUG] switch_core_state_machine.c:45 switch_core_standard_on_hangup() Standard HANGUP OpenZAP/42, cause: NORMAL_CIRCUIT_CONGESTION 
<br>2008-01-04 15:45:40 [DEBUG] switch_core_session.c:683 switch_core_session_thread() Session 3 (OpenZAP/42) Locked, Waiting on external entities<br>2008-01-04 15:45:40 [INFO] switch_core_session.c:689 switch_core_session_thread() Session 3 (OpenZAP/42) Ended 
<br>2008-01-04 15:45:40 [NOTICE] switch_core_session.c:691 switch_core_session_thread() Close Channel OpenZAP/42 [CS_HANGUP]<br>2008-01-04 15:45:40 [INFO] switch_core_session.c:689 switch_core_session_thread() Session 4 (OPENZAP/42) Ended 
<br>2008-01-04 15:45:40 [NOTICE] switch_core_session.c:691 switch_core_session_thread() Close Channel OPENZAP/42 [CS_HANGUP]<br>2008-01-04 15:45:40 [DEBUG] zap_analog.c:351 zap_analog_channel_run() Executing state handler on 1:1 for HANGUP 
<br>2008-01-04 15:45:40 [DEBUG] zap_analog.c:290 zap_analog_channel_run() Changing state on 1:1 from HANGUP to BUSY<br>2008-01-04 15:45:40 [DEBUG] zap_analog.c:351 zap_analog_channel_run() Executing state handler on 1:1 for BUSY 
<br>2008-01-04 15:45:53 [DEBUG] zap_analog.c:664 process_event() EVENT [ONHOOK][1:1] STATE [BUSY]<br>2008-01-04 15:45:53 [DEBUG] zap_analog.c:690 process_event() Changing state on 1:1 from BUSY to DOWN<br>2008-01-04 15:45:53 [DEBUG] zap_analog.c:351 zap_analog_channel_run() Executing state handler on 1:1 for DOWN 
<br>2008-01-04 15:45:53 [DEBUG] mod_openzap.c:968 on_fxs_signal() got FXS sig [STOP]<br>2008-01-04 15:45:53 [DEBUG] zap_analog.c:648 zap_analog_channel_run() ANALOG CHANNEL thread ended.<br><br>Thanks,<br>Irshad.<br><br> 
<br> <br><br><br><div class="gmail_quote">On Jan 3, 2008 7:43 PM, Anthony Minessale &lt;<a rel="nofollow" href="mailto:anthmct@yahoo.com" target="_blank"> anthmct@yahoo.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;">
<div><div style="font-family: courier,monaco,monospace,sans-serif; font-size: 12pt;"> What does openzap.conf.xml look like?<br>Perhaps you are using the default which only has 1 span defined.<br>Try cloning the whole &lt;span id=&quot;1&quot;&gt; block so there
<br>is a span 1 and 2 like this:<br><br>&lt;configuration name=&quot; openzap.conf&quot; description=&quot;OpenZAP Configuration&quot;&gt;<br>&nbsp; &lt;settings&gt;<br>&nbsp;&nbsp;&nbsp; &lt;param name=&quot;debug&quot; value=&quot;0&quot;/&gt;
<br>&nbsp; &lt;/settings&gt;<br>&nbsp; &lt;analog_spans&gt;<br>&nbsp;&nbsp;&nbsp; &lt;span id=&quot;1&quot;&gt; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;tonegroup&quot; value=&quot;us&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;digit-timeout&quot; value=&quot;2000&quot;/&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;max-digits&quot; value=&quot;11&quot;/&gt; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;dialplan&quot; value=&quot;XML&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;context&quot; value=&quot;default&quot;/&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- regex to stop dialing when it matches --&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--&lt;param name=&quot;dial-regex&quot; value=&quot;5555&quot;/&gt;--&gt; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- regex to stop dialing when it does not match --&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--&lt;param name=&quot;fail-dial-regex&quot; value=&quot;^5&quot;/&gt;--&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/span&gt;<br><br>&nbsp;&nbsp;&nbsp; &lt;span id=&quot;2&quot;&gt; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;tonegroup&quot; value=&quot;us&quot;/&gt;
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;digit-timeout&quot; value=&quot;2000&quot;/&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;max-digits&quot; value=&quot;11&quot;/&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;dialplan&quot; value=&quot;XML&quot;/&gt;
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;context&quot; value=&quot;default&quot;/&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- regex to stop dialing when it matches --&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--&lt;param name=&quot;dial-regex&quot; value=&quot;5555&quot;/&gt;--&gt;
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- regex to stop dialing when it does not match --&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--&lt;param name=&quot;fail-dial-regex&quot; value=&quot;^5&quot;/&gt;--&gt;<br> &nbsp;&nbsp;&nbsp; &lt;/span&gt;<br> <br><br>&nbsp; &lt;/analog_spans&gt;<br>
&lt;/configuration&gt;<br><br><br><br><div>&nbsp;</div><div>Anthony Minessale II<br><br><span>FreeSWITCH <a rel="nofollow" href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/ </a></span> <br><span>ClueCon 
<a rel="nofollow" href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a></span><br><br>AIM: anthm<br><a rel="nofollow" href="mailto:MSN:anthony_minessale@hotmail.com" target="_blank"> MSN:anthony_minessale@hotmail.com 
</a><br>GTALK/JABBER/PAYPAL:<a rel="nofollow" href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a><br>IRC: <a rel="nofollow" href="http://irc.freenode.net" target="_blank">irc.freenode.net 
</a> #freeswitch</div><div> <br>FreeSWITCH Developer Conference<br><a rel="nofollow" href="mailto:sip:888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br><a rel="nofollow" href="http://iax:guest@conference.freeswitch.org/888" target="_blank">
 iax:guest@conference.freeswitch.org/888 </a><br><a rel="nofollow" href="mailto:googletalk:conf+888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400</div><div>
<div></div><div><div style="font-family: courier,monaco,monospace,sans-serif; font-size: 12pt;"> <br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Irshad Ahamed &lt;
<a rel="nofollow" href="mailto:irshad.fswitch@gmail.com" target="_blank">irshad.fswitch@gmail.com </a>&gt;<br>To: <a rel="nofollow" href="mailto:freeswitch-dev@lists.freeswitch.org" target="_blank">freeswitch-dev@lists.freeswitch.org
</a>; <a rel="nofollow" href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org </a> <br>Sent: Wednesday, January 2, 2008 12:40:14 AM<br>Subject: [Freeswitch-users] Not able to make an outgoing Call through FXO....
<br><br> Hi,<br><br>Wishing U all a very Happy n Prosperous New Year!!!!<br><br>I am trying to make an outgoing call using FXO connected to an external telephone line.<br><br>Here is the set-up:<br><br>1. FXO connected to external telephone line 
<br>2. FXS connected to analog phone.<br><br><br>The Openzap.conf @ /etc/openzap is as follows:<br>[span zt]<br>name =&gt; OpenZAP<br>number =&gt; 1<br>fxs-channel =&gt; 1<br><br>[span zt]<br>name =&gt; OpenZAP<br>number =&gt; 1 
<br>fxo-channel =&gt; 4<br><br>The default.xml @&nbsp; /usr/local/freeswitch/conf/dialplan is configured for inward and outgoing calls on FXO as follows:<br><br>&nbsp; &lt;extension name=&quot;outgoing-fxo&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &lt;condition field=&quot;destination_number&quot; expression=&quot;^(43)$&quot;&gt; 
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;bridge&quot; data=&quot;openzap/2/1/43&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>&nbsp; &lt;/extension&gt;<br><br>&nbsp; &lt;extension name=&quot;incoming-fxo&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &lt;condition field=&quot;destination_number&quot; expression=&quot;^(35)$&quot;&gt; 
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;bridge&quot; data=&quot;openzap/1/1&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>&nbsp; &lt;/extension&gt;<br><br>While Start-up Freeswitch following logs were seen:<br><br>2008-01-02 11:51:22 [DEBUG] zap_io.c:1770 load_config() found config for span 
<br>2008-01-02 11:51:22 [DEBUG] zap_io.c:1797 load_config() created span 1 of type zt<br>2008-01-02 11:51:22 [DEBUG] zap_io.c:1810 load_config() span 1 [name]=[OpenZAP]<br>2008-01-02 11:51:22 [DEBUG] zap_io.c:1810 load_config() span 1 [number]=[1] 
<br>2008-01-02 11:51:22 [DEBUG] zap_io.c:1810 load_config() span 1 [fxs-channel]=[1]<br>2008-01-02 11:51:22 [DEBUG] zap_io.c:1850 load_config() setting trunk type to &#39;FXS&#39; start(KEWL)<br>2008-01-02 11:51:22 [INFO] zap_zt.c:168 zt_open_range() configuring device /dev/zap/channel channel 1 as OpenZAP device 1:1 fd:31 
<br>2008-01-02 11:51:22 [DEBUG] zap_io.c:1770 load_config() found config for span<br>2008-01-02 11:51:22 [DEBUG] zap_io.c:1797 load_config() created span 2 of type zt<br>2008-01-02 11:51:22 [DEBUG] zap_io.c:1810 load_config() span 2 [name]=[OpenZAP] 
<br>2008-01-02 11:51:22 [DEBUG] zap_io.c:1810 load_config() span 2 [number]=[1]<br>2008-01-02 11:51:22 [DEBUG] zap_io.c:1810 load_config() span 2 [fxo-channel]=[4]<br>2008-01-02 11:51:22 [DEBUG] zap_io.c:1839 load_config() setting trunk type to &#39;FXO&#39; start(KEWL) 
<br>2008-01-02 11:51:22 [INFO] zap_zt.c:168 zt_open_range() configuring device /dev/zap/channel channel 4 as OpenZAP device 2:1 fd:32<br>2008-01-02 11:51:22 [INFO] zap_io.c:1881 load_config() Configured 2 channel(s)<br>2008-01-02 11:51:22 [CONSOLE] switch_loadable_module.c:748 switch_loadable_module_load_file() Successfully Loaded [mod_openzap] 
<br><br>and while I made a call following logs were seen:<br><br>2008-01-02 12:04:16 [NOTICE] switch_core_state_machine.c:134 switch_core_standard_on_execute() Execute bridge(openzap/2/1/43)2008-01-02 12:04:16 [DEBUG] mod_openzap.c:231 tech_init() Set codec PCMU 20ms 
<br>2008-01-02 12:04:16 [NOTICE] switch_channel.c:392 switch_channel_set_name() New Chan OPENZAP/43 [e3630387-25d6-4031-bf81-239c3e64e3fa]<br>2008-01-02 12:04:16 [DEBUG] mod_openzap.c:802 channel_outgoing_channel() OPENZAP/43 State Change CS_NEW -&gt; CS_INIT 
<br>2008-01-02 12:04:16 [DEBUG] switch_core_session.c:625 switch_core_session_signal_state_change() Kill OPENZAP/43 [BREAK]<br>2008-01-02 12:04:16 [ERR] zap_io.c:884 zap_channel_outgoing_call() outgoing_call method not implemented! 
<br>2008-01-02 12:04:16 [NOTICE] mod_openzap.c:818 channel_outgoing_channel() Close Channel OPENZAP/43 [CS_INIT]<br>2008-01-02 12:04:16 [ERR] switch_ivr_originate.c:525 switch_ivr_originate() Cannot Create Outgoing Channel! cause: DESTINATION_OUT_OF_ORDER 
<br>2008-01-02 12:04:16 [DEBUG] switch_ivr_originate.c:873 switch_ivr_originate() Originate Resulted in Error Cause: 27 [DESTINATION_OUT_OF_ORDER]<br>2008-01-02 12:04:16 [INFO] mod_dptools.c:1331 audio_bridge_function() Originate Failed.&nbsp; Cause: DESTINATION_OUT_OF_ORDER 
<br>2008-01-02 12:04:16 [NOTICE] mod_dptools.c:1358 audio_bridge_function() Hangup OpenZAP/43 [CS_EXECUTE] [DESTINATION_OUT_OF_ORDER]<br>2008-01-02 12:04:16 [DEBUG] switch_channel.c:1071 switch_channel_perform_hangup() Kill OpenZAP/43 [KILL] 
<br>2008-01-02 12:04:16 [DEBUG] switch_core_session.c:625 switch_core_session_signal_state_change() Kill OpenZAP/43 [BREAK]<br>2008-01-02 12:04:16 [DEBUG] switch_core_state_machine.c:394 switch_core_session_run() (OpenZAP/43) State HANGUP 
<br>2008-01-02 12:04:16 [DEBUG] mod_openzap.c:329 channel_on_hangup() Changing state on 1:1 from IDLE to HANGUP<br>2008-01-02 12:04:16 [DEBUG] mod_openzap.c:359 channel_on_hangup() OpenZAP/43 CHANNEL HANGUP<br>2008-01-02 12:04:16 [DEBUG] switch_core_state_machine.c:45 switch_core_standard_on_hangup() Standard HANGUP OpenZAP/43, cause: DESTINATION_OUT_OF_ORDER 
<br>2008-01-02 12:04:16 [DEBUG] switch_core_session.c:683 switch_core_session_thread() Session 1 (OpenZAP/43) Locked, Waiting on external entities<br>2008-01-02 12:04:16 [INFO] switch_core_session.c:689 switch_core_session_thread() Session 1 (OpenZAP/43) Ended 
<br>2008-01-02 12:04:16 [NOTICE] switch_core_session.c:691 switch_core_session_thread() Close Channel OpenZAP/43 [CS_HANGUP]<br>2008-01-02 12:04:16 [DEBUG] zap_analog.c:351 zap_analog_channel_run() Executing state handler on 1:1 for HANGUP 
<br>2008-01-02 12:04:17 [DEBUG] zap_analog.c:290 zap_analog_channel_run() Changing state on 1:1 from HANGUP to BUSY<br>2008-01-02 12:04:17 [DEBUG] zap_analog.c:351 zap_analog_channel_run() Executing state handler on 1:1 for BUSY 
<br>2008-01-02 12:04:20 [DEBUG] zap_analog.c:664 process_event() EVENT [ONHOOK][1:1] STATE [BUSY]<br>2008-01-02 12:04:20 [DEBUG] zap_analog.c:690 process_event() Changing state on 1:1 from BUSY to DOWN<br>2008-01-02 12:04:20 [DEBUG] zap_analog.c:351 zap_analog_channel_run() Executing state handler on 1:1 for DOWN 
<br>2008-01-02 12:04:20 [DEBUG] mod_openzap.c:968 on_fxs_signal() got FXS sig [STOP]<br>2008-01-02 12:04:20 [DEBUG] zap_analog.c:648 zap_analog_channel_run() ANALOG CHANNEL thread ended.<br><br>Could anyone help me out in getting FXO working ??? 
<br><br>Thanks in advance...<br><br>BR,<br>Irshad.<br><br> </div><br></div></div></div></div><div><br>      <hr size="1">Be a better friend, newshound, and know-it-all with Yahoo! Mobile. <a rel="nofollow" href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ+" target="_blank">
 Try it now.</a></div></div><br>_______________________________________________ <br>Freeswitch-users mailing list<br><a rel="nofollow" href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org
</a><br><a rel="nofollow" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank"> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a rel="nofollow" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">
http://lists.freeswitch.org/mailman/options/freeswitch-users </a><br><a rel="nofollow" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><br></blockquote></div><br> </div></div></div><div><br>
</div></div></div><div><br>      <hr size="1">Looking for last minute shopping deals? <a href="http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping" target="_blank"> Find them fast with Yahoo! Search.
</a></div></div><br>_______________________________________________<br>Freeswitch-users mailing list<br><a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">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></blockquote></div><br></div></div> _______________________________________________
<div class="Ih2E3d"><br>Freeswitch-users mailing list<br><a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">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></blockquote></div><br></div></div><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></blockquote></div><br>