[Freeswitch-users] Create a external FXO Trunk - A200

Deya M deya787 at gmail.com
Wed Jun 30 21:47:44 PDT 2010


Hi,

San A200 FXO is woking with wanpipe, and freeswitch detects and init :
2010-07-01 09:07:15.427539 [NOTICE] switch_loadable_module.c:145 Adding
Endpoint 'loopback'
2010-07-01 09:07:15.428061 [DEBUG] zap_config.c:56 Configuration file is
/usr/local/freeswitch/conf/modules.conf.
2010-07-01 09:07:15.428125 [NOTICE] zap_io.c:3058 Modules configured: 1
2010-07-01 09:07:15.428137 [DEBUG] zap_config.c:56 Configuration file is
/usr/local/freeswitch/conf/openzap.conf.
2010-07-01 09:07:15.428161 [DEBUG] zap_io.c:2588 found config for span
2010-07-01 09:07:15.428404 [INFO] zap_io.c:2859 Loading IO from
/usr/local/freeswitch/mod/ozmod_wanpipe.so [wanpipe]
2010-07-01 09:07:15.428418 [DEBUG] zap_config.c:56 Configuration file is
/usr/local/freeswitch/conf/wanpipe.conf.
2010-07-01 09:07:15.428467 [INFO] zap_io.c:2605 auto-loaded 'wanpipe'
2010-07-01 09:07:15.428494 [DEBUG] zap_io.c:2626 created span 1 (FXO) of
type wanpipe
2010-07-01 09:07:15.428503 [DEBUG] zap_io.c:2639 span 1 [name]=[OpenZAP]
2010-07-01 09:07:15.428510 [DEBUG] zap_io.c:2639 span 1 [fxo-channel]=[1:1]
2010-07-01 09:07:15.428518 [DEBUG] zap_io.c:2668 setting trunk type to 'FXO'
start(KEWL)
2010-07-01 09:07:15.428570 [INFO] ozmod_wanpipe.c:330 configuring device
s1c1 as OpenZAP device 1:1 fd:41 DTMF: hardware
2010-07-01 09:07:15.428587 [DEBUG] zap_io.c:2639 span 1 [fxo-channel]=[1:2]
2010-07-01 09:07:15.428632 [INFO] ozmod_wanpipe.c:330 configuring device
s1c2 as OpenZAP device 1:2 fd:42 DTMF: hardware
2010-07-01 09:07:15.428643 [DEBUG] zap_io.c:2639 span 1 [fxo-channel]=[1:3]
2010-07-01 09:07:15.428695 [INFO] ozmod_wanpipe.c:330 configuring device
s1c3 as OpenZAP device 1:3 fd:43 DTMF: hardware
2010-07-01 09:07:15.428707 [DEBUG] zap_io.c:2639 span 1 [fxo-channel]=[1:4]
2010-07-01 09:07:15.428748 [INFO] ozmod_wanpipe.c:330 configuring device
s1c4 as OpenZAP device 1:4 fd:44 DTMF: hardware
2010-07-01 09:07:15.428774 [INFO] zap_io.c:2783 Configured 4 channel(s)
2010-07-01 09:07:15.428920 [INFO] zap_io.c:2876 Loading SIG from
/usr/local/freeswitch/mod/ozmod_analog.so
2010-07-01 09:07:15.428932 [INFO] zap_io.c:2992 auto-loaded 'analog'
2010-07-01 09:07:15.428943 [DEBUG] ozmod_analog.c:184 Enabling call waiting
for channel 1:1
2010-07-01 09:07:15.428957 [DEBUG] ozmod_analog.c:184 Enabling call waiting
for channel 1:2
2010-07-01 09:07:15.428963 [DEBUG] ozmod_analog.c:184 Enabling call waiting
for channel 1:3
2010-07-01 09:07:15.428970 [DEBUG] ozmod_analog.c:184 Enabling call waiting
for channel 1:4
2010-07-01 09:07:15.428977 [DEBUG] zap_config.c:56 Configuration file is
/usr/local/freeswitch/conf/tones.conf.
2010-07-01 09:07:15.429003 [DEBUG] zap_io.c:551 added tone generation [dial]
= [v=-7;%(1000,0,350,440)]
2010-07-01 09:07:15.429028 [DEBUG] zap_io.c:549 added tone detect [dial] =
[350,440]
2010-07-01 09:07:15.429037 [DEBUG] zap_io.c:551 added tone generation [ring]
= [v=-7;%(2000,4000,440,480)]
2010-07-01 09:07:15.429045 [DEBUG] zap_io.c:549 added tone detect [ring] =
[440,480]
2010-07-01 09:07:15.429053 [DEBUG] zap_io.c:551 added tone generation [busy]
= [v=-7;%(500,500,480,620)]
2010-07-01 09:07:15.429062 [DEBUG] zap_io.c:549 added tone detect [busy] =
[480,620]
2010-07-01 09:07:15.429070 [DEBUG] zap_io.c:551 added tone generation [attn]
= [v=0;%(100,100,1400,2060,2450,2600)]
2010-07-01 09:07:15.429078 [DEBUG] zap_io.c:549 added tone detect [attn] =
[1400,2060,2450,2600]
2010-07-01 09:07:15.429086 [DEBUG] zap_io.c:551 added tone generation
[callwaiting-sas] = [v=0;%(300,0,440)]
2010-07-01 09:07:15.429095 [DEBUG] zap_io.c:549 added tone detect
[callwaiting-sas] = [440]
2010-07-01 09:07:15.429104 [DEBUG] zap_io.c:551 added tone generation
[callwaiting-cas] = [v=0;%(80,0,2750,2130)]
2010-07-01 09:07:15.429113 [DEBUG] zap_io.c:549 added tone detect
[callwaiting-cas] = [2750,2130]
2010-07-01 09:07:15.429125 [DEBUG] zap_io.c:549 added tone detect [fail1] =
[913.8]
2010-07-01 09:07:15.429134 [DEBUG] zap_io.c:549 added tone detect [fail2] =
[1370.6]
2010-07-01 09:07:15.429141 [DEBUG] zap_io.c:549 added tone detect [fail3] =
[1776.7]
2010-07-01 09:07:15.429219 [NOTICE] switch_loadable_module.c:145 Adding
Endpoint 'openzap'
2010-07-01 09:07:15.429254 [NOTICE] switch_loadable_module.c:251 Adding
Application 'disable_ec'
2010-07-01 09:07:15.429290 [NOTICE] switch_loadable_module.c:251 Adding
Application 'disable_dtmf'
2010-07-01 09:07:15.429332 [NOTICE] switch_loadable_module.c:251 Adding
Application 'enable_dtmf'
2010-07-01 09:07:15.429381 [NOTICE] switch_loadable_module.c:273 Adding API
Function 'oz'


openzap.conf:



[span wanpipe FXO]
name => OpenZAP
fxo-channel => 1:1
fxo-channel => 1:2
fxo-channel => 1:3
fxo-channel => 1:4




openzap.conf.xml:

configuration name="openzap.conf" description="OpenZAP Configuration">
  <settings>
    <param name="debug" value="0"/>
    <!--<param name="hold-music" value="$${moh_uri}"/>-->
    <!--<param name="enable-analog-option" value="call-swap"/>-->
    <!--<param name="enable-analog-option" value="3-way"/>-->
  </settings>
  <boost_spans>


  </boost_spans>

  <analog_spans>
          <span id="FXO">
        <!--<param name="hold-music" value="$${moh_uri}"/>-->
        <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>


 wanrouter status

Devices currently active:
wanpipe1


Wanpipe Config:

Device name | Protocol Map | Adapter  | IRQ | Slot/IO | If's | CLK | Baud
rate |
wanpipe1    | N/A          | A200/A400/B600/B700| 177 | 4       | 1    | N/A
| 0         |

Wanrouter Status:

Device name | Protocol | Station | Status        |
wanpipe1    | A-ANALOG | N/A     | Connected     |





My questions, is how can I use this trunk, line 1-4, to dial ?

I couldn't find a similar example using A200 Analog, could you please send
me an example?

Thanks,

-:D
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100701/be384069/attachment-0001.html 


More information about the FreeSWITCH-users mailing list