[Freeswitch-users] Freeswitch seems to doesn't reknow dial tone after the first call using OpenZAP (analog spans)

Anthony Minessale anthony.minessale at gmail.com
Thu Oct 29 09:12:03 PDT 2009


You may want to work with FreeSWITCH svn trunk for the time being.
There have been some changes and if you have a problem to fix it's easier to
debug with that version.


2009/10/28 Albano Daniele Salvatore - Lavoro <info at daccii.it>

> Hi to all,
>
> this is my first message here!
>
> I'm trying to setup a freeswitch box using 1.0.4 version compiled from
> sources, ubuntu 8.04.03 lts with lastest updates and lastest zaptel
> modules/tools compiled from sources. As hardware i'm using an OpenVox A800P.
>
> My problem is the following: if i do a call trought openzap it works, but
> when i hang down and try a second call it doesn't work!
>
> Looking with ztmonitor and hearing recorded audio file it seems that
> freeswitch do the job on the first outgoing call but, on the second, it does
> nothing because it doesn't reknow dial tone (but it is there). If i call the
> freeswitch mananged number (i can answer or not, nothing change) i can do
> another call, but, in any case, the successive call doesn't start.
>
> Looking with ztmonitor 1 -v i see that before the first call i get the
> special dial tone (a continue 425 frequency to state that the line is free
> to dial sended by the provider) but after the first call is done, before the
> second, i didn't see any special dial tone ... that appears for less than a
> sec when freeswitch starts to compose the number.
>
> Here logs for first call
> ------
> 2009-10-28 21:38:39.616112 [INFO] ozmod_zt.c:636 Setting echo cancel to 64
> taps for 1:1
> 2009-10-28 21:38:39.616112 [DEBUG] ozmod_analog.c:450 Executing state
> handler on 1:1 for DIALING
> 2009-10-28 21:38:39.616112 [DEBUG] switch_core_state_machine.c:398
> (OpenZAP/1:1/xyz) Running State Change CS_INIT
> 2009-10-28 21:38:39.616112 [DEBUG] switch_core_state_machine.c:481
> (OpenZAP/1:1/xyz) State INIT
> 2009-10-28 21:38:39.616112 [DEBUG] mod_openzap.c:368 (OpenZAP/1:1/xyz)
> State Change CS_INIT -> CS_ROUTING
> 2009-10-28 21:38:39.616112 [DEBUG] switch_core_session.c:932 Send signal
> OpenZAP/1:1/xyz [BREAK]
> 2009-10-28 21:38:39.616112 [DEBUG] switch_core_state_machine.c:481
> (OpenZAP/1:1/xyz) State INIT going to sleep
> 2009-10-28 21:38:39.616112 [DEBUG] switch_core_state_machine.c:398
> (OpenZAP/1:1/xyz) Running State Change CS_ROUTING
> 2009-10-28 21:38:39.616112 [DEBUG] switch_core_state_machine.c:484
> (OpenZAP/1:1/xyz) State ROUTING
> 2009-10-28 21:38:39.616112 [DEBUG] mod_openzap.c:391 OpenZAP/1:1/xyz
> CHANNEL ROUTING
> 2009-10-28 21:38:39.616112 [DEBUG] switch_ivr_originate.c:63
> (OpenZAP/1:1/xyz) State Change CS_ROUTING -> CS_CONSUME_MEDIA
> 2009-10-28 21:38:39.616112 [DEBUG] switch_core_session.c:932 Send signal
> OpenZAP/1:1/xyz [BREAK]
> 2009-10-28 21:38:39.616112 [DEBUG] switch_core_state_machine.c:484
> (OpenZAP/1:1/xyz) State ROUTING going to sleep
> 2009-10-28 21:38:39.616112 [DEBUG] switch_core_state_machine.c:398
> (OpenZAP/1:1/xyz) Running State Change CS_CONSUME_MEDIA
> 2009-10-28 21:38:39.616112 [DEBUG] switch_core_state_machine.c:503
> (OpenZAP/1:1/xyz) State CONSUME_MEDIA
> 2009-10-28 21:38:40.475897 [DEBUG] ozmod_analog.c:655 Detected tone DIAL on
> 1:1
> 2009-10-28 21:38:40.475897 [DEBUG] mod_openzap.c:1216 got FXO sig 1:1
> [TONE_DETECTED]
> ------
>
> Here logs for second call
> ------
> 2009-10-28 21:39:07.105916 [INFO] ozmod_zt.c:636 Setting echo cancel to 64
> taps for 1:1
> 2009-10-28 21:39:07.105916 [DEBUG] ozmod_analog.c:450 Executing state
> handler on 1:1 for DIALING
> 2009-10-28 21:39:07.118644 [DEBUG] switch_core_state_machine.c:398
> (OpenZAP/1:1/xyz) Running State Change CS_INIT
> 2009-10-28 21:39:07.118644 [DEBUG] switch_core_state_machine.c:481
> (OpenZAP/1:1/xyz) State INIT
> 2009-10-28 21:39:07.118644 [DEBUG] mod_openzap.c:368 (OpenZAP/1:1/xyz)
> State Change CS_INIT -> CS_ROUTING
> 2009-10-28 21:39:07.118644 [DEBUG] switch_core_session.c:932 Send signal
> OpenZAP/1:1/xyz [BREAK]
> 2009-10-28 21:39:07.118644 [DEBUG] switch_core_state_machine.c:481
> (OpenZAP/1:1/xyz) State INIT going to sleep
> 2009-10-28 21:39:07.118644 [DEBUG] switch_core_state_machine.c:398
> (OpenZAP/1:1/xyz) Running State Change CS_ROUTING
> 2009-10-28 21:39:07.118644 [DEBUG] switch_core_state_machine.c:484
> (OpenZAP/1:1/xyz) State ROUTING
> 2009-10-28 21:39:07.118644 [DEBUG] mod_openzap.c:391 OpenZAP/1:1/xyz
> CHANNEL ROUTING
> 2009-10-28 21:39:07.118644 [DEBUG] switch_ivr_originate.c:63
> (OpenZAP/1:1/xyz) State Change CS_ROUTING -> CS_CONSUME_MEDIA
> 2009-10-28 21:39:07.118644 [DEBUG] switch_core_session.c:932 Send signal
> OpenZAP/1:1/xyz [BREAK]
> 2009-10-28 21:39:07.118644 [DEBUG] switch_core_state_machine.c:484
> (OpenZAP/1:1/xyz) State ROUTING going to sleep
> 2009-10-28 21:39:07.118644 [DEBUG] switch_core_state_machine.c:398
> (OpenZAP/1:1/xyz) Running State Change CS_CONSUME_MEDIA
> 2009-10-28 21:39:07.118644 [DEBUG] switch_core_state_machine.c:503
> (OpenZAP/1:1/xyz) State CONSUME_MEDIA
> ------
>
> Following my configs!
>
> Really thanks for the help,
>
>
> Best Regards,
> Daniele
>
> ---
> ZAPTEL.CONF
> ---
> # Autogenerated by /usr/sbin/genzaptelconf -- do not hand edit
> # Zaptel Configuration File
> #
> # This file is parsed by the Zaptel Configurator, ztcfg
> #
>
> # It must be in the module loading order
>
>
> # Span 1: OPVXA1200/0 "OpenVox A1200P/A800P Board 1" (MASTER)
> fxsks=1
> fxsks=2
> fxsks=3
> fxsks=4
> fxoks=5
>
> # Global data
>
> loadzone        = it
> defaultzone     = it
> ---
>
> ZT.CONF
> ---
> [defaults]
> codec_ms => 20
> wink_ms => 150
> flash_ms => 750
> echo_cancel_level => 64
> rxgain => 0.0
> txgain => 0.0
> ---
>
> OPENZAP.CONF
> ---
> [span zt]
> number => xyz
> fxo-channel => 1
> number => xyz
> fxs-channel => 2
> number => xyz
> fxs-channel => 3
> number => xyz
> fxs-channel => 4
>
> [span zt]
> fxs-channel => 5
> ---
>
> TONES.CONF
> ---
> [it]
> generate-dial => %(200, 200, 425);%(600, 1000, 425)
> detect-dial => 425
>
> generate-ring => %(1000, 4000, 425)
> detect-ring => 425
>
> generate-busy => %(500, 500, 425)
> detect-busy => 425
>
> generate-callwaiting-sas => %(400,100,425);%(250,100,425);%(150,0,425);
> detect-callwaiting-sas => 425
> ---
>
> OPENZAP.CONF.XML
> ---
> <configuration name="openzap.conf" description="OpenZAP Configuration">
>  <settings>
>      <param name="debug" value="0"/>
>      <param name="hold-music" value="$${moh_uri}"/>
>  </settings>
>
>  <analog_spans>
>
>      <span id="1">
>          <param name="tonegroup" value="it"/>
>          <param name="digit-timeout" value="2000"/>
>          <param name="max-digits" value="11"/>
>          <param name="dialplan" value="XML"/>
>          <param name="context" value="default"/>
>          <param name="enable-callerid" value="true"/>
>      </span>
>
>      <span id="2">
>          <param name="tonegroup" value="it"/>
>          <param name="digit-timeout" value="2000"/>
>          <param name="max-digits" value="11"/>
>          <param name="dialplan" value="XML"/>
>          <param name="context" value="default"/>
>          <param name="enable-callerid" value="true"/>
>      </span>
>
>  </analog_spans>
> </configuration>
>
> _______________________________________________
> 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
>
>


-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091029/218cf858/attachment-0002.html 


More information about the FreeSWITCH-users mailing list