Freeswitch seems to doesn't reknow dial tone after the first call using OpenZAP (analog spans)
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>
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@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@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@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
On Thu, Oct 29, 2009 at 9:12 AM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
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@daccii.it>
Hi to all,
this is my first message here!
Welcome!
Like Tony said, the latest SVN trunk is probably what you want. We are already doing pre-releases of 1.0.5. SVN trunk is extremely stable. Also, you can get realtime help via IRC at irc.freenode.net, channels #freeswitch and #openzap. -MC
Hi, i've done more tests, with svn too, but nothing to do. The strange thing is when freeswitch shutdown and close zaptel channel i get back the dial tone from my provider (i'm checking trought ztmonitor 1 -vv). Can be something is missing when span get closed? PS1: with svn i can do only one call, but i can receive calls without problems PS2: i joined yesterday on irc but i had few time ... hope to join monday Best Regards, Daniele Michael Collins ha scritto:
On Thu, Oct 29, 2009 at 9:12 AM, Anthony Minessale <anthony.minessale@gmail.com <mailto:anthony.minessale@gmail.com>> wrote:
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@daccii.it <mailto:info@daccii.it>>
Hi to all,
this is my first message here!
Welcome!
Like Tony said, the latest SVN trunk is probably what you want. We are already doing pre-releases of 1.0.5. SVN trunk is extremely stable. Also, you can get realtime help via IRC at irc.freenode.net <http://irc.freenode.net>, channels #freeswitch and #openzap.
-MC
Hi, i've done more and more tests ... the result is the same :\ I've tried previous freeswitch version (1.0.2, 1.0.3), lastest stable (1.0.4) and with svn (updated at revision 15315 while openzap revision is 847). I've tried with ubuntu zaptel modules (1.4.10), with and without octvqe soft echo, with another card, that uses wctdm instead of opvxa1200, with lastest manually compiled zaptel modules (1.4.12.1) but, yet, nothing to do. I tested openzap test utilities but them works well (only a little change to testanalog.c to use it tones instead of us). The problem is ever the same, i can do the first call but i can't do more. I put logs and config files into freeswitch pastebin, here links: - FULL STARTUP http://pastebin.freeswitch.org/10930 - ZAPTEL STARTUP http://pastebin.freeswitch.org/10929 - FIRST CALL http://pastebin.freeswitch.org/10928 - SECOND CALL http://pastebin.freeswitch.org/10931 - INCOMING CALL http://pastebin.freeswitch.org/10939 - SHUTDOWN http://pastebin.freeswitch.org/10932 - OPENVOX DMESG http://pastebin.freeswitch.org/10933 - zaptel.conf http://pastebin.freeswitch.org/10934 - openzap.conf http://pastebin.freeswitch.org/10935 - zt.conf http://pastebin.freeswitch.org/10936 - openzap.conf.xml http://pastebin.freeswitch.org/10937 - openzap dialplan for outgoing/incoming calls http://pastebin.freeswitch.org/10938 As you can see from logs freeswitch doesn't reknow free dial tone after the first call, but i don't understand why. I'll join on irc in short, hope to find some help :) Best Regards, Daniele Albano Daniele Salvatore - Lavoro ha scritto:
Hi,
i've done more tests, with svn too, but nothing to do. The strange thing is when freeswitch shutdown and close zaptel channel i get back the dial tone from my provider (i'm checking trought ztmonitor 1 -vv). Can be something is missing when span get closed?
PS1: with svn i can do only one call, but i can receive calls without problems PS2: i joined yesterday on irc but i had few time ... hope to join monday
Best Regards, Daniele
participants (3)
-
Albano Daniele Salvatore - Lavoro
-
Anthony Minessale
-
Michael Collins