[Freeswitch-users] freeTDM can't configure with Digium TDM410 card

Melvin King mkdutchman at gmail.com
Fri Nov 11 00:14:01 MSK 2011


After some more testing/checking/experimenting/swearing this line seems to
be the first indication that something is wrong

2011-11-10 16:08:11.785839 [ERR] mod_freetdm.c:2953 open of freetdm.conf
failed

And it definitely is not a permissions problem, the file has full r/w
permissions, it seems more like it can't find the file.

Mel

On Thu, Nov 10, 2011 at 3:48 PM, Melvin King <mkdutchman at gmail.com> wrote:

> ok, I did have the FXO and FXS turned around in my freetdm.conf file.
> However, it still gives me the "can't open file" error message. Relevant
> log lines below...
>
> 2011-11-10 15:43:30.283719 [NOTICE] switch_loadable_module.c:298 Adding
> API Function 'xml_flush_cache'
> 2011-11-10 15:43:30.283910 [NOTICE] switch_loadable_module.c:298 Adding
> API Function 'xml_locate'
> 2011-11-10 15:43:30.284100 [NOTICE] switch_loadable_module.c:298 Adding
> API Function 'xml_wrap'
> 2011-11-10 15:43:30.286276 [DEBUG] ftdm_config.c:52 New mod directory:
> /usr/local/freeswitch/mod
> 2011-11-10 15:43:30.286572 [DEBUG] ftdm_config.c:58 New config directory:
> /usr/local/freeswitch/conf
> 2011-11-10 15:43:30.286747 [DEBUG] ftdm_sched.c:154 Initializing
> scheduling API
> 2011-11-10 15:43:30.286828 [DEBUG] ftdm_sched.c:251 Created schedule
> freetdm-master
> 2011-11-10 15:43:30.286888 [NOTICE] ftdm_sched.c:178 Launching main
> schedule thread
> 2011-11-10 15:43:30.287029 [DEBUG] ftdm_sched.c:187 Running schedule
> freetdm-master in the main schedule thread
> 2011-11-10 15:43:30.287122 [DEBUG] ftdm_config.c:80 Configuration file is
> /usr/local/freeswitch/conf/modules.conf.
> 2011-11-10 15:43:30.287570 [NOTICE] ftdm_io.c:5725 Modules configured: 1
> 2011-11-10 15:43:30.287695 [DEBUG] ftdm_config.c:80 Configuration file is
> /usr/local/freeswitch/conf/freetdm.conf.
> 2011-11-10 15:43:30.287789 [DEBUG] ftdm_io.c:4635 Reading FreeTDM
> configuration file
> 2011-11-10 15:43:30.287889 [DEBUG] ftdm_io.c:4651 found config for span
> 2011-11-10 15:43:30.288578 [NOTICE] ftmod_zt.c:1323 Using DAHDI control
> device
> 2011-11-10 15:43:30.288742 [INFO] ftdm_io.c:4965 Loading IO from
> /usr/local/freeswitch/mod/ftmod_zt.so [zt]
> 2011-11-10 15:43:30.288833 [DEBUG] ftdm_config.c:80 Configuration file is
> /usr/local/freeswitch/conf/zt.conf.
> 2011-11-10 15:43:30.289011 [INFO] ftmod_zt.c:585 Setting rxgain val to
> 0.000000
> 2011-11-10 15:43:30.289096 [INFO] ftmod_zt.c:593 Setting txgain val to
> 0.000000
> 2011-11-10 15:43:30.289215 [INFO] ftdm_io.c:787 Auto-loaded I/O module 'zt'
> 2011-11-10 15:43:30.289467 [DEBUG] ftdm_io.c:4672 created span 1 (FXO) of
> type zt
> 2011-11-10 15:43:30.289565 [DEBUG] ftdm_io.c:4690 span 1 [trunk_type]=[FXO]
> 2011-11-10 15:43:30.289636 [DEBUG] ftdm_io.c:4695 setting trunk type to
> 'FXO'
> 2011-11-10 15:43:30.289705 [DEBUG] ftdm_io.c:4690 span 1 [fxo-channel]=[1]
> 2011-11-10 15:43:30.289939 [INFO] ftmod_zt.c:404 configuring device
> /dev/dahdi/channel channel 1 as FreeTDM device 1:1 fd:18
> 2011-11-10 15:43:30.290059 [DEBUG] ftdm_io.c:5263 Creating new
> group:__default
> 2011-11-10 15:43:30.290240 [DEBUG] ftdm_io.c:4651 found config for span
> 2011-11-10 15:43:30.290540 [DEBUG] ftdm_io.c:4672 created span 2 (FXS) of
> type zt
> 2011-11-10 15:43:30.290640 [DEBUG] ftdm_io.c:4690 span 2 [trunk_type]=[FXS]
> 2011-11-10 15:43:30.290707 [DEBUG] ftdm_io.c:4695 setting trunk type to
> 'FXS'
> 2011-11-10 15:43:30.290775 [DEBUG] ftdm_io.c:4690 span 2
> [fxs-channel]=[2-4]
> 2011-11-10 15:43:30.291014 [INFO] ftmod_zt.c:404 configuring device
> /dev/dahdi/channel channel 2 as FreeTDM device 2:1 fd:19
> 2011-11-10 15:43:30.291265 [INFO] ftmod_zt.c:404 configuring device
> /dev/dahdi/channel channel 3 as FreeTDM device 2:2 fd:20
> 2011-11-10 15:43:30.291737 [INFO] ftmod_zt.c:404 configuring device
> /dev/dahdi/channel channel 4 as FreeTDM device 2:3 fd:21
> 2011-11-10 15:43:30.291966 [INFO] ftdm_io.c:4887 Configured 4 channel(s)
> 2011-11-10 15:43:30.292140 [ERR] mod_freetdm.c:2953 open of freetdm.conf
> failed
> 2011-11-10 15:43:30.295782 [DEBUG] ftdm_sched.c:217 Waiting for main
> schedule thread to finish
> 2011-11-10 15:43:30.390235 [NOTICE] ftdm_sched.c:147 Main scheduling
> thread going out ...
> 2011-11-10 15:43:30.396054 [INFO] ftdm_io.c:601 Closing channel zt:1:1
> fd:18
> 2011-11-10 15:43:30.396142 [INFO] ftdm_io.c:601 Closing channel zt:2:1
> fd:19
> 2011-11-10 15:43:30.396174 [INFO] ftdm_io.c:601 Closing channel zt:2:2
> fd:20
> 2011-11-10 15:43:30.396207 [INFO] ftdm_io.c:601 Closing channel zt:2:3
> fd:21
> 2011-11-10 15:43:30.396281 [INFO] ftdm_io.c:5092 Unloading I/O interface zt
> 2011-11-10 15:43:30.396306 [INFO] ftdm_io.c:5099 Unloaded I/O interface zt
> 2011-11-10 15:43:30.396387 [INFO] ftdm_io.c:5118 Unloading module
> /usr/local/freeswitch/mod/ftmod_zt.so
> 2011-11-10 15:43:30.396525 [DEBUG] ftdm_dso.c:90 lib 0x8aa5e48 was closed
> with success
> 2011-11-10 15:43:30.396543 [INFO] ftdm_io.c:5120 Unloaded module
> /usr/local/freeswitch/mod/ftmod_zt.so
> 2011-11-10 15:43:30.396565 [DEBUG] ftdm_sched.c:552 Destroying schedule
> freetdm-master
> 2011-11-10 15:43:30.396636 [CRIT] switch_loadable_module.c:1281 Error
> Loading module /usr/local/freeswitch/mod/mod_freetdm.so
>
> **Module load routine returned an error**
>
> On Thu, Nov 10, 2011 at 3:32 PM, Melvin King <mkdutchman at gmail.com> wrote:
>
>> Now that you mention it, I do have to run dahdi_cfg manually every time
>> the system starts up.....as though it never ran to begin with. FS is
>> configured to automatically start.
>>
>> I will recheck the FXS/FXO, and see what happens.
>>
>> Mel
>>
>> On Thu, Nov 10, 2011 at 3:18 PM, Moises Silva <moises.silva at gmail.com>wrote:
>>
>>> On Thu, Nov 10, 2011 at 1:29 PM, Melvin King <mkdutchman at gmail.com>wrote:
>>>
>>>>  ok, here's my setup.
>>>>
>>>> TDM410 card with port 1 having a line to the PSTN and ports 2-4 have
>>>> the telephone lines plugged in
>>>>
>>>> FS version is 1.0.head (git-9dd45e3 2011-11-03 14-45-01 -0500)
>>>>
>>>> freetdm.conf has full rw permissions
>>>>
>>>> My problem is that I cannot configure freetdm to use this blasted card,
>>>> no matter what I do.....
>>>> [device /dev/dahdi/channel chan 1 fd 16 (Invalid argument)]
>>>> 2011-11-10 14:16:02.233387 [INFO] ftmod_zt.c:404 configuring device
>>>> /dev/dahdi/channel channel 1 as FreeTDM device 1:1 fd:17
>>>> 2011-11-10 14:16:02.233595 [DEBUG] ftdm_io.c:5263 Creating new
>>>> group:__default
>>>> 2011-11-10 14:16:02.233746 [DEBUG] ftdm_io.c:4651 found config for span
>>>> 2011-11-10 14:16:02.233931 [DEBUG] ftdm_io.c:4672 created span 2 (FXO)
>>>> of type zt
>>>> 2011-11-10 14:16:02.234045 [DEBUG] ftdm_io.c:4690 span 2
>>>> [trunk_type]=[FXO]
>>>> 2011-11-10 14:16:02.234111 [DEBUG] ftdm_io.c:4695 setting trunk type to
>>>> 'FXO'
>>>> 2011-11-10 14:16:02.234173 [DEBUG] ftdm_io.c:4690 span 2
>>>> [fxo-channel]=[2-4]
>>>> 2011-11-10 14:16:02.234550 [WARNING] ftmod_zt.c:352 this ioctl fails on
>>>> older ftdmtel but is harmless if you used ztcfg
>>>> [device /dev/dahdi/channel chan 2 fd 16 (Invalid argument)]
>>>>
>>>
>>>
>>> This most likely means you're trying to apply a configuration that is
>>> not valid for that type of channel (ie, fxs in fxo ports or viceversa). It
>>> could also be you did not create /etc/dahdi/system.conf and did not run
>>> "dahdi_cfg"
>>>
>>> *Moises Silva
>>> **Software Engineer, Development Manager***
>>>
>>> msilva at 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>
>>>
>>>
>>>
>>>
>>>
>>> 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
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111110/88d9e0e5/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list