[Freeswitch-users] Not able to make an outgoing Call through FXO....

Anthony Minessale anthmct at yahoo.com
Thu Jan 3 06:13:20 PST 2008


What does openzap.conf.xml look like?
Perhaps you are using the default which only has 1 span defined.
Try cloning the whole <span id="1"> block so there
is a span 1 and 2 like this:

<configuration name="openzap.conf" description="OpenZAP Configuration">
  <settings>
    <param name="debug" value="0"/>
  </settings>
  <analog_spans>
    <span id="1">
      <param name="tonegroup" value="us"/>
      <param name="digit-timeout" value="2000"/>
      <param name="max-digits" value="11"/>
      <param name="dialplan" value="XML"/>
      <param name="context" value="default"/>
      <!-- regex to stop dialing when it matches -->
      <!--<param name="dial-regex" value="5555"/>-->
      <!-- regex to stop dialing when it does not match -->
      <!--<param name="fail-dial-regex" value="^5"/>-->
    </span>

    <span id="2">

      <param name="tonegroup" value="us"/>

      <param name="digit-timeout" value="2000"/>

      <param name="max-digits" value="11"/>

      <param name="dialplan" value="XML"/>

      <param name="context" value="default"/>

      <!-- regex to stop dialing when it matches -->

      <!--<param name="dial-regex" value="5555"/>-->

      <!-- regex to stop dialing when it does not match -->

      <!--<param name="fail-dial-regex" value="^5"/>-->

    </span>



  </analog_spans>
</configuration>



 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org
pstn:213-799-1400


----- Original Message ----
From: Irshad Ahamed <irshad.fswitch at gmail.com>
To: freeswitch-dev at lists.freeswitch.org; freeswitch-users at lists.freeswitch.org
Sent: Wednesday, January 2, 2008 12:40:14 AM
Subject: [Freeswitch-users] Not able to make an outgoing Call through FXO....


Hi,

Wishing U all a very Happy n Prosperous New Year!!!!

I am trying to make an outgoing call using FXO connected to an external telephone line.

Here is the set-up:

1. FXO connected to external telephone line

2. FXS connected to analog phone.


The Openzap.conf @ /etc/openzap is as follows:
[span zt]
name => OpenZAP
number => 1
fxs-channel => 1

[span zt]
name => OpenZAP
number => 1

fxo-channel => 4

The default.xml @  /usr/local/freeswitch/conf/dialplan is configured for inward and outgoing calls on FXO as follows:

  <extension name="outgoing-fxo">
    <condition field="destination_number" expression="^(43)$">

      <action application="bridge" data="openzap/2/1/43"/>
    </condition>
  </extension>

  <extension name="incoming-fxo">
    <condition field="destination_number" expression="^(35)$">

      <action application="bridge" data="openzap/1/1"/>
    </condition>
  </extension>

While Start-up Freeswitch following logs were seen:

2008-01-02 11:51:22 [DEBUG] zap_io.c:1770 load_config() found config for span

2008-01-02 11:51:22 [DEBUG] zap_io.c:1797 load_config() created span 1 of type zt
2008-01-02 11:51:22 [DEBUG] zap_io.c:1810 load_config() span 1 [name]=[OpenZAP]
2008-01-02 11:51:22 [DEBUG] zap_io.c:1810 load_config() span 1 [number]=[1]

2008-01-02 11:51:22 [DEBUG] zap_io.c:1810 load_config() span 1 [fxs-channel]=[1]
2008-01-02 11:51:22 [DEBUG] zap_io.c:1850 load_config() setting trunk type to 'FXS' start(KEWL)
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

2008-01-02 11:51:22 [DEBUG] zap_io.c:1770 load_config() found config for span
2008-01-02 11:51:22 [DEBUG] zap_io.c:1797 load_config() created span 2 of type zt
2008-01-02 11:51:22 [DEBUG] zap_io.c:1810 load_config() span 2 [name]=[OpenZAP]

2008-01-02 11:51:22 [DEBUG] zap_io.c:1810 load_config() span 2 [number]=[1]
2008-01-02 11:51:22 [DEBUG] zap_io.c:1810 load_config() span 2 [fxo-channel]=[4]
2008-01-02 11:51:22 [DEBUG] zap_io.c:1839 load_config() setting trunk type to 'FXO' start(KEWL)

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
2008-01-02 11:51:22 [INFO] zap_io.c:1881 load_config() Configured 2 channel(s)
2008-01-02 11:51:22 [CONSOLE] switch_loadable_module.c:748 switch_loadable_module_load_file() Successfully Loaded [mod_openzap]


and while I made a call following logs were seen:

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

2008-01-02 12:04:16 [NOTICE] switch_channel.c:392 switch_channel_set_name() New Chan OPENZAP/43 [e3630387-25d6-4031-bf81-239c3e64e3fa]
2008-01-02 12:04:16 [DEBUG] mod_openzap.c:802 channel_outgoing_channel() OPENZAP/43 State Change CS_NEW -> CS_INIT

2008-01-02 12:04:16 [DEBUG] switch_core_session.c:625 switch_core_session_signal_state_change() Kill OPENZAP/43 [BREAK]
2008-01-02 12:04:16 [ERR] zap_io.c:884 zap_channel_outgoing_call() outgoing_call method not implemented!

2008-01-02 12:04:16 [NOTICE] mod_openzap.c:818 channel_outgoing_channel() Close Channel OPENZAP/43 [CS_INIT]
2008-01-02 12:04:16 [ERR] switch_ivr_originate.c:525 switch_ivr_originate() Cannot Create Outgoing Channel! cause: DESTINATION_OUT_OF_ORDER

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]
2008-01-02 12:04:16 [INFO] mod_dptools.c:1331 audio_bridge_function() Originate Failed.  Cause: DESTINATION_OUT_OF_ORDER

2008-01-02 12:04:16 [NOTICE] mod_dptools.c:1358 audio_bridge_function() Hangup OpenZAP/43 [CS_EXECUTE] [DESTINATION_OUT_OF_ORDER]
2008-01-02 12:04:16 [DEBUG] switch_channel.c:1071 switch_channel_perform_hangup() Kill OpenZAP/43 [KILL]

2008-01-02 12:04:16 [DEBUG] switch_core_session.c:625 switch_core_session_signal_state_change() Kill OpenZAP/43 [BREAK]
2008-01-02 12:04:16 [DEBUG] switch_core_state_machine.c:394 switch_core_session_run() (OpenZAP/43) State HANGUP

2008-01-02 12:04:16 [DEBUG] mod_openzap.c:329 channel_on_hangup() Changing state on 1:1 from IDLE to HANGUP
2008-01-02 12:04:16 [DEBUG] mod_openzap.c:359 channel_on_hangup() OpenZAP/43 CHANNEL HANGUP
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

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
2008-01-02 12:04:16 [INFO] switch_core_session.c:689 switch_core_session_thread() Session 1 (OpenZAP/43) Ended

2008-01-02 12:04:16 [NOTICE] switch_core_session.c:691 switch_core_session_thread() Close Channel OpenZAP/43 [CS_HANGUP]
2008-01-02 12:04:16 [DEBUG] zap_analog.c:351 zap_analog_channel_run() Executing state handler on 1:1 for HANGUP

2008-01-02 12:04:17 [DEBUG] zap_analog.c:290 zap_analog_channel_run() Changing state on 1:1 from HANGUP to BUSY
2008-01-02 12:04:17 [DEBUG] zap_analog.c:351 zap_analog_channel_run() Executing state handler on 1:1 for BUSY

2008-01-02 12:04:20 [DEBUG] zap_analog.c:664 process_event() EVENT [ONHOOK][1:1] STATE [BUSY]
2008-01-02 12:04:20 [DEBUG] zap_analog.c:690 process_event() Changing state on 1:1 from BUSY to DOWN
2008-01-02 12:04:20 [DEBUG] zap_analog.c:351 zap_analog_channel_run() Executing state handler on 1:1 for DOWN

2008-01-02 12:04:20 [DEBUG] mod_openzap.c:968 on_fxs_signal() got FXS sig [STOP]
2008-01-02 12:04:20 [DEBUG] zap_analog.c:648 zap_analog_channel_run() ANALOG CHANNEL thread ended.

Could anyone help me out in getting FXO working ???


Thanks in advance...

BR,
Irshad.








      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080103/2ecf9cec/attachment-0002.html 


More information about the FreeSWITCH-users mailing list