[Freeswitch-users] Openzap

Michael Collins mcollins at fcnetwork.com
Fri Nov 9 13:18:26 PST 2007


Excellent!  Would you mind posting your configs/experience to the list
or the wiki?  (Preferably the wiki.)

Thanks!

-MC

> -----Original Message-----
> From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-
> users-bounces at lists.freeswitch.org] On Behalf Of John Bittner
> Sent: Friday, November 09, 2007 1:10 PM
> To: Michael Collins
> Subject: Re: [Freeswitch-users] Openzap
> 
> 
> Hi Michael,
> Yes, I got it working ... It turns out all it was is related to how
> you configure the sangoma. You need to use the wancfg_tdmapi config
> tool instead of the standard wancfg.
> 
> Thanks for the help.
> 
> John Bittner
> Simlab.net
> 
> -----Original Message-----
> John,
> 
> Any luck with this one?
> 
> -MC
> 
> > -----Original Message-----
> > From: freeswitch-users-bounces at lists.freeswitch.org
> [mailto:freeswitch-
> > users-bounces at lists.freeswitch.org] On Behalf Of John Bittner
> > Sent: Thursday, November 08, 2007 1:28 AM
> > To: Brian West
> > Cc: freeswitch-users at lists.freeswitch.org
> > Subject: Re: [Freeswitch-users] Openzap
> >
> > Hi Brian,
> > I have no clue if this is even close.
> >
> > John B
> >
> > openzap.conf
> > [span wanpipe]
> > name => OpenZAP
> > number => 1
> > trunk_type => t1
> > b-channel => 1:1-23
> > d-channel => 1:24
> >
> > wanpipe.conf
> > [defaults]
> > codec_ms => 20
> > wink_ms => 150
> > flash_ms => 750
> >
> > openzap.conf.xml
> > <configuration name="openzap.conf" description="OpenZAP
> Configuration">
> >   <settings>
> >     <param name="debug" value="0"/>
> >   </settings>
> >   <pri_spans>
> >     <span id="1">
> >       <param name="mode" value="user"/>
> >       <param name="dialect" value="DMS"/>
> >       <param name="dialplan" value="XML"/>
> >       <param name="context" value="default"/>
> >     </span>
> >   </pri_spans>
> > </configuration>
> >
> > wanpipe.conf.xml
> > configuration name="wanpipe.conf" description="Sangoma Wanpipe
> Endpoint">
> >   <settings>
> >     <param name="debug" value="0"/>
> >     <param name="dialplan" value="XML"/>
> >     <param name="ms-per-frame" value="20"/>
> >     <param name="dtmf-on" value="800"/>
> >     <param name="dtmf-off" value="100"/>
> >     <param name="supress-dtmf-tone" value="yes"/>
> >   </settings>
> >   <ss7boost_handles>
> > <!--
> >     <handle>
> >       <param name="local-ip" value="127.0.0.65"/>
> >       <param name="local-port" value="53000"/>
> >       <param name="remote-ip" value="127.0.0.66"/>
> >       <param name="remote-port" value="53000"/>
> >     </handle>
> > -->
> >   </ss7boost_handles>
> >   <pri_spans>
> >     <!-- may be any single digit or a range of digits separated by a
> '-'
> > e.g "1-4" -->
> >     <span id="1">
> >       <param name="node" value="cpe"/>
> >       <param name="switch" value="dms100"/>
> >       <!--<param name="switch" value="dms100"/>-->
> >       <!-- <param name="switch" value="lucent5e"/> -->
> >       <!-- <param name="switch" value="att4ess"/> -->
> >       <!-- <param name="switch" value="euroisdn"/> -->
> >       <!-- <param name="switch" value="gr303eoc"/> -->
> >       <!-- <param name="switch" value="gr303tmc"/> -->
> >       <param name="dp" value="national"/>
> >       <!-- <param name="dp" value="international"/> -->
> >       <!-- <param name="dp" value="local"/> -->
> >       <!-- <param name="dp" value="private"/> -->
> >       <!-- <param name="dp" value="unknown"/> -->
> >       <param name="l1" value="ulaw"/>
> >       <!-- <param name="l1" value="alaw"/> -->
> >       <param name="bchan" value="1-23"/>
> >       <param name="dchan" value="24"/>
> >       <param name="dialplan" value="XML"/>
> >     </span>
> >   </pri_spans>
> > </configuration
> >
> > -----Original Message-----
> > Show me your wanpipe config for this span please.  DMS100 should
work
> > without a problem.
> >
> > /b
> >
> > On Nov 8, 2007, at 8:00 AM, John Bittner wrote:
> >
> > >
> > > Hi Brian,
> > > I can use DMS100. Is there anything I am missing on the wanpipe
> side.
> > > If I move back to the mod_wanpipe with LIBPRI can I use NI2? I
need
> to
> > > use the data part of wanrouter, I think I remember reading that if
> you
> > > use mod_wanpipe you have to be TDM only. Is this true?
> > >
> > > What is the best way to get this sanagoma working and still keep
the
> > > data stuff working.
> > >
> > > John Bittner
> > > Simlab.net
> > >
> > > -----Original Message-----
> > > OpenZap doesn't do NI2 just yet.  Its on the to do list for the
PRI
> > > stack.
> > >
> > > /b
> > >
> > > On Nov 8, 2007, at 3:39 AM, John Bittner wrote:
> > >
> > >> Thanks Michael but I had already tried this config. It does even
> like
> > >> the formats. I tried testing a few configs and the only one I get
a
> > >> response with is
> > >>
> > >> [span wanpipe]
> > >> b-channel => 1:1-23
> > >> d-channel => 1:24
> > >>
> > >> This gives me this error. The device listed in wanpipe is w1g1
and
> > >> does not match s1c1... so I am missing something.
> > >> I tried to even to go into the code to find the options but I
cant
> > >> find anything. I suck at programming. Anyone have any idea of the
> > >> options for this or a sample config for a sangoma card.
> > >>
> > >> Any help is appreciated.
> > >>
> > >> Thanks
> > >>
> > >> John Bittner
> > >> Simlab.net
> > >>
> > >>
> > >> 2007-11-07 17:28:10 [ERR] zap_io.c:1868 process_module_config()
> > >> Cannot open zt.conf
> > >> 2007-11-07 17:28:10 [DEBUG] zap_io.c:1744 load_config() found
> config
> > >> for span
> > >> 2007-11-07 17:28:10 [DEBUG] zap_io.c:1764 load_config() created
> span
> > >> 9 of type wanpipe
> > >> 2007-11-07 17:28:10 [DEBUG] zap_io.c:1777 load_config() span 9
> > >> [spanno]=[2]
> > >> 2007-11-07 17:28:10 [DEBUG] zap_io.c:1777 load_config() span 9
[b-
> > >> channel]=[1:1-23]
> > >> 2007-11-07 17:28:10 [ERR] zap_wanpipe.c:404 wp_open_range()
failure
> > >> configuring device s1c1
> > >> 2007-11-07 17:28:10 [ERR] zap_wanpipe.c:404 wp_open_range()
failure
> > >> configuring device s1c2
> > >> 2007-11-07 17:28:10 [ERR] zap_wanpipe.c:404 wp_open_range()
failure
> > >> configuring device s1c3
> > >> 2007-11-07 17:28:10 [ERR] zap_wanpipe.c:404 wp_open_range()
failure
> > >> configuring device s1c4
> > >> 2007-11-07 17:28:10 [ERR] zap_wanpipe.c:404 wp_open_range()
failure
> > >> configuring device s1c5
> > >> 2007-11-07 17:28:10 [ERR] zap_wanpipe.c:404 wp_open_range()
failure
> > >> configuring device s1c6
> > >> 2007-11-07 17:28:10 [ERR] zap_wanpipe.c:404 wp_open_range()
failure
> > >> configuring device s1c7
> > >> 2007-11-07 17:28:10 [ERR] zap_wanpipe.c:404 wp_open_range()
failure
> > >> configuring device s1c8
> > >> 2007-11-07 17:28:10 [ERR] zap_wanpipe.c:404 wp_open_range()
failure
> > >> configuring device s1c9
> > >> 2007-11-07 17:28:10 [ERR] zap_wanpipe.c:404 wp_open_range()
failure
> > >> configuring device s1c10
> > >> 2007-11-07 17:28:10 [ERR] zap_wanpipe.c:404 wp_open_range()
failure
> > >> configuring device s1c11
> > >> 2007-11-07 17:28:10 [ERR] zap_wanpipe.c:404 wp_open_range()
failure
> > >> configuring device s1c12
> > >> 2007-11-07 17:28:10 [ERR] zap_wanpipe.c:404 wp_open_range()
failure
> > >> configuring device s1c13
> > >> 2007-11-07 17:28:10 [ERR] zap_wanpipe.c:404 wp_open_range()
failure
> > >> configuring device s1c14
> > >> 2007-11-07 17:28:10 [ERR] zap_wanpipe.c:404 wp_open_range()
failure
> > >> configuring device s1c15
> > >> 2007-11-07 17:28:10 [ERR] zap_wanpipe.c:404 wp_open_range()
failure
> > >> configuring device s1c16
> > >> 2007-11-07 17:28:10 [ERR] zap_wanpipe.c:404 wp_open_range()
failure
> > >> configuring device s1c17
> > >> 2007-11-07 17:28:10 [ERR] zap_wanpipe.c:404 wp_open_range()
failure
> > >> configuring device s1c18
> > >> 2007-11-07 17:28:10 [ERR] zap_wanpipe.c:404 wp_open_range()
failure
> > >> configuring device s1c19
> > >> 2007-11-07 17:28:10 [ERR] zap_wanpipe.c:404 wp_open_range()
failure
> > >> configuring device s1c20
> > >> 2007-11-07 17:28:10 [ERR] zap_wanpipe.c:404 wp_open_range()
failure
> > >> configuring device s1c21
> > >> 2007-11-07 17:28:10 [ERR] zap_wanpipe.c:404 wp_open_range()
failure
> > >> configuring device s1c22
> > >> 2007-11-07 17:28:10 [ERR] zap_wanpipe.c:404 wp_open_range()
failure
> > >> configuring device s1c23
> > >> 2007-11-07 17:28:10 [DEBUG] zap_io.c:1777 load_config() span 9
[d-
> > >> channel]=[1:24]
> > >> 2007-11-07 17:28:10 [ERR] zap_wanpipe.c:404 wp_open_range()
failure
> > >> configuring device s1c24
> > >> 2007-11-07 17:28:10 [INFO] zap_io.c:1848 load_config() Configured
0
> > >> channel(s)
> > >> 2007-11-07 17:28:10 [ERR] zap_io.c:1926 zap_global_init() No
> modules
> > >> configured!
> > >> 2007-11-07 17:28:10 [ERR] mod_openzap.c:1201 mod_openzap_load()
> > >> Error loading OpenZAP
> > >>
> > >> -----Original Message-----
> > >> John,
> > >>
> > >> I don't have a Sangoma card, but if I understand the openzap
stuff
> > >> correctly it will replace wanpipe.  I do have a tor2 clone.
Here's
> > >> my
> > >> openzap.conf with comments below:
> > >>
> > >> [span zt]
> > >> name => OpenZAP
> > >> number => 1
> > >> trunk_type => t1
> > >> b-channel => 1-24
> > >>
> > >> [span zt]
> > >> name => OpenZAP
> > >> number => 2
> > >> trunk_type => t1
> > >> b-channel => 25-48
> > >>
> > >> [span zt]
> > >> name => OpenZAP
> > >> number => 3
> > >> trunk_type => t1
> > >> b-channel => 49-71
> > >> d-channel => 72
> > >>
> > >> [span zt]
> > >> name => OpenZAP
> > >> number => 4
> > >> trunk_type => t1
> > >> b-channel => 73-95
> > >> d-channel => 96
> > >>
> > >>
> > >> Note in particular spans 3 and 4.  Span 3 is a working PRI where
> I'm
> > >> connected to an Asterisk server that is pretending to be the
telco.
> > >>
> > >> Here's the corresponding openzap.conf.xml:
> > >>
> > >> <configuration name="openzap.conf" description="OpenZAP
> > >> Configuration">
> > >>  <settings>
> > >>    <param name="debug" value="1"/>
> > >>  </settings>
> > >>
> > >>  <analog_spans>
> > >>    <span id="1">
> > >>      <param name="dialplan" value="XML"/>
> > >>      <param name="context" value="default"/>
> > >>    </span>
> > >>    <span id="2">
> > >>      <param name="dialplan" value="XML"/>
> > >>      <param name="context" value="default"/>
> > >>    </span>
> > >>  </analog_spans>
> > >>
> > >>  <pri_spans>
> > >>    <span id="3">
> > >>      <param name="mode" value="user"/>
> > >>      <param name="dialect" value="DMS"/>
> > >>      <param name="dialplan" value="XML"/>
> > >>      <param name="context" value="default"/>
> > >>    </span>
> > >>    <span id="4">
> > >>      <param name="mode" value="user"/>
> > >>      <param name="dialect" value="DMS"/>
> > >>      <param name="dialplan" value="XML"/>
> > >>      <param name="context" value="default"/>
> > >>    </span>
> > >>  </pri_spans>
> > >> </configuration>
> > >>
> > >>
> > >> Again note span 3, which is a working PRI.
> > >>
> > >> The trouble is, I don't believe that Mike has gotten to NI-2 just
> > >> yet.
> > >> I know DMS100 works if that is an option.  I haven't tested
> 4ess/5ess
> > >> yet either.  Sorry!
> > >>
> > >> At the very least you could use a setup like mine and get
> connected.
> > >> Your D-channel will probably complain, but if they complain then
at
> > >> least you know your cards are installed and working.
> > >>
> > >> Again, let us know how it goes...
> > >>
> > >> -MC
> > >>
> > >>> -----Original Message-----
> > >>> From: freeswitch-users-bounces at lists.freeswitch.org
> > >> [mailto:freeswitch-
> > >>> users-bounces at lists.freeswitch.org] On Behalf Of John Bittner
> > >>> Sent: Wednesday, November 07, 2007 6:51 PM
> > >>> To: Michael Collins
> > >>> Subject: Re: [Freeswitch-users] Openzap
> > >>>
> > >>>
> > >>> Thanks Michael,
> > >>> That worked but now I have errors trying to get openzap to see
the
> > >>> card. Do know were to get a openzap.conf sample config for a
A104D
> > >>> card with 1 T1 Pri running NI2. I cant find any samples for
> > >>> wanpipe...
> > >>> only zap.
> > >>>
> > >>> John B
> > >>>
> > >>> -----Original Message-----
> > >>> John,
> > >>>
> > >>> Do you have /etc/openzap/zt.conf?
> > >>>
> > >>> I think you need all these in /etc/openzap:
> > >>> zt.conf
> > >>> openzap.conf
> > >>> wanpipe.conf
> > >>>
> > >>>
> > >>> Check that and let us now...
> > >>> -MC
> > >>>
> > >>>> -----Original Message-----
> > >>>> From: freeswitch-users-bounces at lists.freeswitch.org
> > >>> [mailto:freeswitch-
> > >>>> users-bounces at lists.freeswitch.org] On Behalf Of John Bittner
> > >>>> Sent: Wednesday, November 07, 2007 5:30 PM
> > >>>> To: freeswitch-users at lists.freeswitch.org
> > >>>> Subject: [Freeswitch-users] Openzap
> > >>>>
> > >>>> Hey Guys,
> > >>>> Am I missing something ?
> > >>>> I got openzap to compile. I have a sangoma T1 card installed
with
> > >>>> wanpipe. I have the card configured, and I have wanpipe.conf
file
> > >>>> in
> > >>>> the /usr/local/freeswitch/conf directory. Still I am getting
this
> > >>>> error when I try to load the module.
> > >>>>
> > >>>> 2007-11-07 15:25:21 [ERR] zap_io.c:1868 process_module_config()
> > >> Cannot
> > >>>> open wanpipe.conf
> > >>>> 2007-11-07 15:25:21 [ERR] zap_io.c:1868 process_module_config()
> > >> Cannot
> > >>>> open zt.conf
> > >>>> 2007-11-07 15:25:21 [ERR] zap_io.c:1926 zap_global_init() No
> > >>>> modules
> > >>>> configured!
> > >>>> 2007-11-07 15:25:21 [ERR] mod_openzap.c:1201 mod_openzap_load()
> > >> Error
> > >>>> loading OpenZAP
> > >>>>
> > >>>> If there a special place I need to put the wanpipe.conf file?
> > >>>>
> > >>>> Any help is appreciated.
> > >>>>
> > >>>> Thanks
> > >>>>
> > >>>> John Bittner
> > >>>> Simlab.net
> > >>>>
> > >>>>
> > >>>>
> > >>>> _______________________________________________
> > >>>> Freeswitch-users mailing list
> > >>>> Freeswitch-users at lists.freeswitch.org
> > >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > >>>>
> > >>>
> > >>
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-
> > users
> > >>>> http://www.freeswitch.org
> > >>>
> > >>> _______________________________________________
> > >>> Freeswitch-users mailing list
> > >>> Freeswitch-users at lists.freeswitch.org
> > >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > >>>
> > >>
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-
> > users
> > >>> http://www.freeswitch.org
> > >>>
> > >>>
> > >>> --
> > >>>
> > >>>
> > >>>
> > >>> _______________________________________________
> > >>> Freeswitch-users mailing list
> > >>> Freeswitch-users at lists.freeswitch.org
> > >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > >>>
> > >>
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-
> > users
> > >>> http://www.freeswitch.org
> > >>
> > >> _______________________________________________
> > >> Freeswitch-users mailing list
> > >> Freeswitch-users at lists.freeswitch.org
> > >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > >>
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-
> > users
> > >> http://www.freeswitch.org
> > >>
> > >>
> > >> --
> > >>
> > >>
> > >>
> > >> _______________________________________________
> > >> Freeswitch-users mailing list
> > >> Freeswitch-users at lists.freeswitch.org
> > >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > >>
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-
> > users
> > >> http://www.freeswitch.org
> > >
> > >
> > > _______________________________________________
> > > Freeswitch-users mailing list
> > > Freeswitch-users at lists.freeswitch.org
> > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > >
>
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > > http://www.freeswitch.org
> > >
> > >
> > > --
> > >
> > >
> > >
> > > _______________________________________________
> > > Freeswitch-users mailing list
> > > Freeswitch-users at lists.freeswitch.org
> > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > >
>
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > > http://www.freeswitch.org
> >
> >
> > _______________________________________________
> > Freeswitch-users mailing list
> > Freeswitch-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> >
>
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
> >
> >
> > --
> >
> >
> >
> > _______________________________________________
> > Freeswitch-users mailing list
> > Freeswitch-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> >
>
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
> 
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
> 
> 
> --
> BEGIN-ANTISPAM-VOTING-LINKS
> ------------------------------------------------------
> 
> Teach CanIt if this mail (ID 10814514) is spam:
> Spam:
https://mx1.simlab.net/b.php?i=10814514&m=1adccab56610&c=s
> Not spam:
https://mx1.simlab.net/b.php?i=10814514&m=1adccab56610&c=n
> Forget vote:
https://mx1.simlab.net/b.php?i=10814514&m=1adccab56610&c=f
> ------------------------------------------------------
> END-ANTISPAM-VOTING-LINKS
> 
> 
> 
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org




More information about the FreeSWITCH-users mailing list