I upgraded freeswitch from git. Nothing changed in the configuration! Suddenly stopped working freetdm. Why? my configs: freetdm.conf [span zt pri] name => pri trunk_type => E1 group => e1group b-channel => 1-15 d-channel => 16 b-channel => 17-31 wanpipe.conf [defaults] codec_ms => 20 wink_ms => 150 flash_ms => 750 freetdm.conf.xml <configuration name="freetdm.conf" description="Freetdm Configuration"> <settings> <param name="debug" value="7"/> </settings> <libpri_spans> <span id="1" name="pri"> <param name="node" value="network"/> <param name="switch" value="euroisdn"/> <param name="l1" value="alaw"/> <param name="dp" value="international"/> <param name="debug" value="all"/> <param name="dialplan" value="XML"/> <param name="context" value="default"/> </span> </libpri_spans> </configuration> log: 2011-11-27 14:35:12.284837 [ERR] ftmod_wanpipe.c:240 Failed to open wanpipe device span 1 channel 3 2011-11-27 14:35:12.284847 [ERR] ftmod_wanpipe.c:240 Failed to open wanpipe device span 1 channel 4 2011-11-27 14:35:12.284898 [ERR] ftmod_wanpipe.c:240 Failed to open wanpipe device span 1 channel 1 2011-11-27 14:35:12.284906 [ERR] ftmod_wanpipe.c:240 Failed to open wanpipe device span 1 channel 2 2011-11-27 14:35:12.285290 [WARNING] ftmod_zt.c:333 this ioctl fails on older ftdmtel but is harmless if you used ztcfg [device /dev/dahdi/channel chan 1 fd 50 (Invalid argument)] 2011-11-27 14:35:12.285523 [WARNING] ftmod_zt.c:333 this ioctl fails on older ftdmtel but is harmless if you used ztcfg [device /dev/dahdi/channel chan 3 fd 50 (Invalid argument)] 2011-11-27 14:35:12.285634 [ERR] mod_freetdm.c:2465 Error finding FreeTDM span id:1 name:pri Card Digium TE121 Please HELP!
On 11/27/2011 06:45 PM, Valery Kalinin wrote:
I upgraded freeswitch from git. Nothing changed in the configuration! Suddenly stopped working freetdm. Why? Just out of curiosity, did you do a reboot and get a kernel change? I had this happen to me and it was because only part of the dahdi stuff (which I recompile on every reboot to catch this now) got compiled and things broke that way.
If not, sorry for the noise. Trever -- "As soon as you know ogg vorbis, you know that mp3 sucks!" -- Unknown
On Sun, Nov 27, 2011 at 8:45 PM, Valery Kalinin <valery.kalinin@gmail.com>wrote:
I upgraded freeswitch from git. Nothing changed in the configuration! Suddenly stopped working freetdm.
Why?
Your email is dated Nov 27, but the error messages you mention were modified in Nov 10. You are clearly not at latest git. *Moises Silva **Software Engineer, Development Manager*** msilva@sangoma.com Sangoma Technologies 100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada t. +1 800 388 2475 (N. America) t. +1 905 474 1990 x128 f. +1 905 474 9223 **<http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email+signatures> Products<http://sangoma.com/products?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Solutions<http://sangoma.com/solutions?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Events<http://sangoma.com/about_us/events?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Contact<http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Wiki<http://wiki.sangoma.com/?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Facebook<http://www.facebook.com/pages/Sangoma-VoIP-Cards/43578453335?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Twitter<http://www.twitter.com/sangoma?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>`| | YouTube<http://www.youtube.com/sangomatechnologies?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> VegaStream is now part of Sangoma!<http://sangoma.com/about_us/newsroom/news_releases/news/1488795/Sangoma_Acquires_All_Key_Assets_of_VegaStream.html> Ask us about both Gateway Appliances<http://sangoma.com/products/media_gateways/vega.html> and Internal Gateways<http://sangoma.com/products/software_products/netborder_suite/netborder_express.html>
Hi all, i create a callscreening extension with: <extension name="498925007676"> <condition field="destination_number" expression="^498925007676$"> <action application="set" data="group_confirm_file=ivr callscreen"/> <action application="set" data="group_confirm_key=exec"/> <action application="bridge" data="loopback/0/operator1"/> </condition> </extension> My ivrmenu: <menu name="callscreen" greet-long="$${base_dir}/sounds/callscreen/callscrrenopts.wav" greet-short="$${base_dir}/sounds/callscreen/callscrrenopts.wav" invalid-sound="$${base_dir}/sounds/ivr/falsche-eingabe.wav" exit-sound="$${base_dir}/sounds/ivr/goodbye.wav" confirm-attempts="3" timeout="10000" inter-digit-timeout="3000" max-failures="2" max-timeouts="3" digit-len="1"> <entry action="menu-exec-app" digits="1" param="transfer -both 7676 XML default"/> </menu> Glows when the phone and I answer it, then I hear my outgoing message. But i can.t transfer both channels to the conference. i here my menuprompt in the conference. But not the caller. What is wrong? Can your help please? thanks. --------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
So you're trying to have your group confirm file be an ivr? Is that even possible? If so, it's news to me. Where did you hear that this was possible? -MC On Sun, Dec 4, 2011 at 8:14 PM, Thomas Hoellriegel <admin@blindi.net> wrote:
Hi all, i create a callscreening extension with: <extension name="498925007676"> <condition field="destination_number" expression="^498925007676$"> <action application="set" data="group_confirm_file=ivr callscreen"/> <action application="set" data="group_confirm_key=exec"/**> <action application="bridge" data="loopback/0/operator1"/> </condition> </extension>
My ivrmenu: <menu name="callscreen" greet-long="$${base_dir}/**sounds/callscreen/**callscrrenopts.wav" greet-short="$${base_dir}/**sounds/callscreen/**callscrrenopts.wav" invalid-sound="$${base_dir}/**sounds/ivr/falsche-eingabe.**wav" exit-sound="$${base_dir}/**sounds/ivr/goodbye.wav" confirm-attempts="3" timeout="10000" inter-digit-timeout="3000" max-failures="2" max-timeouts="3" digit-len="1"> <entry action="menu-exec-app" digits="1" param="transfer -both 7676 XML default"/> </menu>
Glows when the phone and I answer it, then I hear my outgoing message. But i can.t transfer both channels to the conference. i here my menuprompt in the conference. But not the caller.
What is wrong? Can your help please? thanks.
--------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/**listinfo/blinde-misc<http://www.blindi.net/mailman/listinfo/blinde-misc>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
Hi Michael Am 08.12.11 um 12:08 schrieb Michael Collins:
So you're trying to have your group confirm file be an ivr? Is that even possible? If so, it's news to me. Where did you hear that this was possible?
Exactly. This is my callscreening extension: <extension name="498925007676"> <condition field="destination_number" expression="^498925007676$"> <action application="set" data="group_confirm_file=ivr callscreen"/> <action application="set" data="group_confirm_key=exec"/> <action application="bridge" data="{ignore_early_media=true}loopback /0/operator1"/> </condition> </extension> My Ivrmenu: <menu name="callscreen" greet-long="$${base_dir}/sounds/callscreen/callscrrenopts.wav" greet-short="$${base_dir}/sounds/callscreen/callscrrenopts.wav" invalid-sound="$${base_dir}/sounds/ivr/falsche-eingabe.wav" exit-sound="$${base_dir}/sounds/ivr/goodbye.wav" confirm-attempts="3" timeout="10000" inter-digit-timeout="3000" max-failures="2" max-timeouts="3" digit-len="1"> <entry action="menu-exec-app" digits="1" param="transfer -both 7676 XML default"/> <entry action="menu-exec-app" digits="2" param="ivr demo_ivr"/> </menu> The problem is the same: A person call my phonenumber in germany: 08925007676 The phone is rining. I answer the call, and heare the prompt from the ivrmenu. I press 1 from my phone to transfer to the conference (aleg and bleg). I heare the voiceprompt in the conference, but the caller does not transferd. The line rinings anytime. for example: i press 2, i heare the demo_ivr prompt, but the caller is no transfer to the ivr, and the phone rings. can you look what is wrong please? you can test my dialplan. thanks. --------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
Hi all, i have a luascript. I hear the prompt, but the transfer fails. My script is: session:answer(); freeswitch.console_log("info", "Announce\n"); announce='/usr/local/freeswitch/sounds/callscreen/callscrrenopts.wav'; number = session:read(1, 1, announce, 5000, "#"); freeswitch.consoleLog("info", "Got number: ".. number .. "\n"); if number == argv[1] then target_number=argv[2]; elseif number == argv[3] then target_number=argv[4]; elseif number == argv[5] then target_number=argv[6]; elseif number == argv[7] then target_number=argv[8]; else end freeswitch.consoleLog("info", "Transfer to target number: ".. target_number .. " XML default\n"); session:transfer("target_number", "XML", "default"); in my dialplan reads: <action application="set" data="group_confirm_file=lua thomas.lua 1 7676 2 4000"/> Then i press 1 for example, i become on the cli: [ERR] mod_lua.cpp:196 /usr/local/freeswitch/scripts/thomas.lua:16: attempt to concatenate global 'target_number' (a nil value)M What is wrong please? Thanks for your help. --------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
Just a hunch, but I would guess command line input is being treated as ints. Note that, in lua, 1 == 1 evaluates to true, while "1" == 1 evaluates to false. I believe session:read returns a string. http://www.lua.org/manual/5.1/manual.html#2.5.2 Also, the last two elseif statements could also potentially set target_number to nil, as you are only passing the script 4 arguments. Likewise for the empty else at the end. Your transfer will work once this is fixed, assuming your have an extension called "target_number". Something tells me you actually want the extension number you are setting the variable to though, so you might want to remove the quotes around target_number when calling transfer. Add some print statements in you if/elseif clauses to see which one resolve to true. Hope those ideas help, Adam On 3:59 PM, Thomas Hoellriegel wrote:
Hi all, i have a luascript. I hear the prompt, but the transfer fails. My script is:
session:answer(); freeswitch.console_log("info", "Announce\n"); announce='/usr/local/freeswitch/sounds/callscreen/callscrrenopts.wav'; number = session:read(1, 1, announce, 5000, "#"); freeswitch.consoleLog("info", "Got number: ".. number .. "\n"); if number == argv[1] then target_number=argv[2]; elseif number == argv[3] then target_number=argv[4]; elseif number == argv[5] then target_number=argv[6]; elseif number == argv[7] then target_number=argv[8]; else end freeswitch.consoleLog("info", "Transfer to target number: ".. target_number .. " XML default\n"); session:transfer("target_number", "XML", "default");
in my dialplan reads: <action application="set" data="group_confirm_file=lua thomas.lua 1 7676 2 4000"/>
Then i press 1 for example, i become on the cli: [ERR] mod_lua.cpp:196 /usr/local/freeswitch/scripts/thomas.lua:16: attempt to concatenate global 'target_number' (a nil value)M
What is wrong please? Thanks for your help.
--------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
Hi Adam, thanks for your reply. It does not work. I set the line before the transfercommand: freeswitch.consoleLog("info", "Transfer t o target number: ".. target_number .. " XML default\n"); The value is entered correctly in the log. But the transfer is not working. I become the same error. Transfer can not handle the numbers of the variable. --------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
On Tue, Dec 6, 2011 at 1:42 PM, Thomas Hoellriegel <admin@blindi.net> wrote:
Hi Adam, thanks for your reply. It does not work. I set the line before the transfercommand: freeswitch.consoleLog("info", "Transfer t o target number: ".. target_number .. " XML default\n");
The value is entered correctly in the log. But the transfer is not working. I become the same error. Transfer can not handle the numbers of the variable.
Thomas, Pastebin the whole call log, not just a single debug line, otherwise we are just guessing and wasting time. It is virtually impossible to figure this out based on the limited information you've supplied. -MC
participants (6)
-
Adam Kelloway
-
Michael Collins
-
Moises Silva
-
Thomas Hoellriegel
-
Trever L. Adams
-
Valery Kalinin