If gsmopen doesn't work well with /dev/ttyUSB0 as control device try use /dev/ttyUSB2.<br><br><div class="gmail_quote">2012/8/21 Mi Ke <span dir="ltr"><<a href="mailto:mi.ke@null.net" target="_blank">mi.ke@null.net</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span style="font-family:Verdana"><span style="font-size:12px">It appears that selinux policies prevented freeswitch user from accessing /dev/ttyUSB*<br>
<br>
[root@freeswitch ~]# ls -l /dev/ttyUSB*<br>
crw-rw----. 1 root dialout 188, 0 Aug 21 10:57 /dev/ttyUSB0<br>
crw-rw----. 1 root dialout 188, 1 Aug 21 10:48 /dev/ttyUSB1<br>
crw-rw----. 1 root dialout 188, 2 Aug 21 10:48 /dev/ttyUSB2<br>
<br>
so adding freeswitch user to dialout group by running "usermod -a -G dialout freeswitch" worked for me.<br>
<br>
Have a nice day<br>
Mike<br>
<p style="margin:0px;padding:0px">
         </p>
<blockquote style="border-left:1px solid #ccc;padding-left:5px;margin-left:5px;margin-bottom:0px;margin-top:0px;margin-right:0px" type="cite">
        <p style="margin:0px;padding:0px">
                <span style="font-family:Verdana"><span style="font-size:12px">----- Original Message -----</span></span></p>
        <p style="margin:0px;padding:0px">
                <span style="font-family:Verdana"><span style="font-size:12px">From: Mi Ke</span></span></p>
        <p style="margin:0px;padding:0px">
                <span style="font-family:Verdana"><span style="font-size:12px">Sent: 08/21/12 12:58 PM</span></span></p>
        <p style="margin:0px;padding:0px">
                <span style="font-family:Verdana"><span style="font-size:12px">To: FreeSWITCH Users Help</span></span></p>
        <p style="margin:0px;padding:0px">
                <span style="font-family:Verdana"><span style="font-size:12px">Subject: [Freeswitch-users] mod_gsmopen serial init failed</span></span></p><div><div class="h5">
        <br>
        <div>
                <span style="font-family:Verdana"><span style="font-size:12px"><span style="font-family:verdana"><span style="font-size:12px">Hi All,<br>
                <br>
                I have problems getting mod_gsmopen to see my E1550. Both minicom and wvdial see the dongle on /dev/ttyUSB0:</span></span><br>
                <br>
                ttyUSB0<*1>: ATQ0 V1 E1 -- OK<br>
                ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK<br>
                ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK<br>
                ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK<br>
                ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK<br>
                ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK<br>
                ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: huawei<br>
                ttyUSB0<*1>: Speed 9600: AT -- OK<br>
                ttyUSB0<*1>: Max speed is 9600; that should be safe.<br>
                ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK<br>
                <br>
                Welcome to minicom 2.3<br>
                <br>
                OPTIONS: I18n<br>
                Compiled on Aug 19 2010, 05:50:19.<br>
                Port /dev/ttyUSB0<br>
                <br>
                Press CTRL-A Z for help on special keys<br>
                AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0<br>
                OK <br>
                <br>
                at+cpin?<br>
                +CPIN: READY<br>
                OK<br>
                <br>
                but mod_gsmopen does not want to see it:<br>
                <br>
                2012-08-21 09:18:18.973501 [NOTICE] mod_gsmopen.cpp:1203 rev ccae5cd|07bc7ba[(nil)|37 ][NOTICA 1203 ][none ][-1,-1,-1] GSMOPEN Charset Output Test 0 èéòàù<br>
                2012-08-21 09:18:18.973501 [NOTICE] mod_gsmopen.cpp:1204 rev ccae5cd|07bc7ba[(nil)|37 ][NOTICA 1204 ][none ][-1,-1,-1] GSMOPEN Charset Output Test 1 ç°§^£<br>
                2012-08-21 09:18:18.973501 [NOTICE] mod_gsmopen.cpp:1205 rev ccae5cd|07bc7ba[(nil)|37 ][NOTICA 1205 ][none ][-1,-1,-1] GSMOPEN Charset Output Test 2 новости<br>
                2012-08-21 09:18:18.973501 [NOTICE] mod_gsmopen.cpp:1206 rev ccae5cd|07bc7ba[(nil)|37 ][NOTICA 1206 ][none ][-1,-1,-1] GSMOPEN Charset Output Test 3 ﺎﻠﺠﻤﻋﺓ<br>
                2012-08-21 09:18:18.973501 [NOTICE] mod_gsmopen.cpp:1207 rev ccae5cd|07bc7ba[(nil)|37 ][NOTICA 1207 ][none ][-1,-1,-1] GSMOPEN Charset Output Test 4 ראת<br>
                2012-08-21 09:18:18.973501 [NOTICE] mod_gsmopen.cpp:1208 rev ccae5cd|07bc7ba[(nil)|37 ][NOTICA 1208 ][none ][-1,-1,-1] GSMOPEN Charset Output Test 5 לק<br>
                2012-08-21 09:18:18.973501 [NOTICE] mod_gsmopen.cpp:1209 rev ccae5cd|07bc7ba[(nil)|37 ][NOTICA 1209 ][none ][-1,-1,-1] GSMOPEN Charset Output Test 6 人大<br>
                2012-08-21 09:18:18.973501 [DEBUG] mod_gsmopen.cpp:1226 rev ccae5cd|07bc7ba[(nil)|37 ][DEBUG_GSMOPEN 1226 ][none ][-1,-1,-1] globals.debug=0<br>
                2012-08-21 09:18:18.973501 [DEBUG] mod_gsmopen.cpp:1228 rev ccae5cd|07bc7ba[(nil)|37 ][DEBUG_GSMOPEN 1228 ][none ][-1,-1,-1] globals.debug=8<br>
                2012-08-21 09:18:18.973501 [DEBUG] mod_gsmopen.cpp:1234 rev ccae5cd|07bc7ba[(nil)|37 ][DEBUG_GSMOPEN 1234 ][none ][-1,-1,-1] globals.dialplan=XML<br>
                2012-08-21 09:18:18.973501 [DEBUG] mod_gsmopen.cpp:1240 rev ccae5cd|07bc7ba[(nil)|37 ][DEBUG_GSMOPEN 1240 ][none ][-1,-1,-1] globals.context=external<br>
                2012-08-21 09:18:18.973501 [DEBUG] mod_gsmopen.cpp:1231 rev ccae5cd|07bc7ba[(nil)|37 ][DEBUG_GSMOPEN 1231 ][none ][-1,-1,-1] globals.hold_music=<br>
                2012-08-21 09:18:18.973501 [DEBUG] mod_gsmopen.cpp:1237 rev ccae5cd|07bc7ba[(nil)|37 ][DEBUG_GSMOPEN 1237 ][none ][-1,-1,-1] globals.destination=5000<br>
                2012-08-21 09:18:18.973501 [WARNING] mod_gsmopen.cpp:1653 rev ccae5cd|07bc7ba[(nil)|37 ][WARNINGA 1653 ][gsm00 ][-1, 0, 0] STARTING interface_id=1<br>
                2012-08-21 09:18:18.973501 [DEBUG] mod_gsmopen.cpp:1654 rev ccae5cd|07bc7ba[(nil)|37 ][DEBUG_GSMOPEN 1654 ][gsm00 ][-1, 0, 0] id=1<br>
                2012-08-21 09:18:18.973501 [DEBUG] mod_gsmopen.cpp:1655 rev ccae5cd|07bc7ba[(nil)|37 ][DEBUG_GSMOPEN 1655 ][gsm00 ][-1, 0, 0] name=gsm00<br>
                2012-08-21 09:18:18.973501 [DEBUG] mod_gsmopen.cpp:1656 rev ccae5cd|07bc7ba[(nil)|37 ][DEBUG_GSMOPEN 1656 ][gsm00 ][-1, 0, 0] hold-music=<br>
                2012-08-21 09:18:18.973501 [DEBUG] mod_gsmopen.cpp:1657 rev ccae5cd|07bc7ba[(nil)|37 ][DEBUG_GSMOPEN 1657 ][gsm00 ][-1, 0, 0] context=default<br>
                2012-08-21 09:18:18.973501 [DEBUG] mod_gsmopen.cpp:1658 rev ccae5cd|07bc7ba[(nil)|37 ][DEBUG_GSMOPEN 1658 ][gsm00 ][-1, 0, 0] dialplan=XML<br>
                2012-08-21 09:18:18.973501 [DEBUG] mod_gsmopen.cpp:1659 rev ccae5cd|07bc7ba[(nil)|37 ][DEBUG_GSMOPEN 1659 ][gsm00 ][-1, 0, 0] destination=5000<br>
                2012-08-21 09:18:18.973501 [DEBUG] mod_gsmopen.cpp:1660 rev ccae5cd|07bc7ba[(nil)|37 ][DEBUG_GSMOPEN 1660 ][gsm00 ][-1, 0, 0] controldevice_name=/dev/ttyUSB0<br>
                2012-08-21 09:18:18.973501 [DEBUG] mod_gsmopen.cpp:1661 rev ccae5cd|07bc7ba[(nil)|37 ][DEBUG_GSMOPEN 1661 ][gsm00 ][-1, 0, 0] controldevice_audio_name=/dev/ttyUSB2<br>
                2012-08-21 09:18:18.973501 [DEBUG] mod_gsmopen.cpp:1663 rev ccae5cd|07bc7ba[(nil)|37 ][DEBUG_GSMOPEN 1663 ][gsm00 ][-1, 0, 0] gsmopen_serial_sync_period=300<br>
                2012-08-21 09:18:18.973501 [ERR] gsmopen_protocol.cpp:122 rev ccae5cd|07bc7ba[(nil)|37 ][ERRORA 122 ][gsm00 ][-1, 0, 0] <span style="background-color:#ff0000">port /dev/ttyUSB0, NOT open</span><br>
                2012-08-21 09:18:18.973501 [ERR] mod_gsmopen.cpp:1670 rev ccae5cd|07bc7ba[(nil)|37 ][ERRORA 1670 ][gsm00 ][-1, 0, 0] gsmopen_serial_init failed<br>
                2012-08-21 09:18:18.973501 [ERR] mod_gsmopen.cpp:1671 rev ccae5cd|07bc7ba[(nil)|37 ][ERRORA 1671 ][gsm00 ][-1, 0, 0] STARTING interface_id=1 FAILED<br>
                2012-08-21 09:18:18.973501 [ERR] mod_gsmopen.cpp:2928 rev ccae5cd|07bc7ba[(nil)|37 ][ERRORA 2928 ][gsm00 ][-1, 0, 0] ALARM on interface gsm00:<br>
                2012-08-21 09:18:18.973501 [CONSOLE] switch_loadable_module.c:1328 Successfully Loaded [mod_gsmopen]<br>
                2012-08-21 09:18:18.973501 [NOTICE] switch_loadable_module.c:146 Adding Endpoint 'gsmopen'<br>
                2012-08-21 09:18:18.973501 [NOTICE] switch_loadable_module.c:298 Adding API Function 'gsm'<br>
                2012-08-21 09:18:18.973501 [NOTICE] switch_loadable_module.c:298 Adding API Function 'gsmopen'<br>
                2012-08-21 09:18:18.973501 [NOTICE] switch_loadable_module.c:298 Adding API Function 'gsmopen_boost_audio'<br>
                2012-08-21 09:18:18.973501 [NOTICE] switch_loadable_module.c:298 Adding API Function 'gsmopen_dump'<br>
                2012-08-21 09:18:18.973501 [NOTICE] switch_loadable_module.c:298 Adding API Function 'gsmopen_sendsms'<br>
                2012-08-21 09:18:18.973501 [NOTICE] switch_loadable_module.c:403 Adding Chat interface 'sms'<br>
                <br>
                <span style="font-family:verdana"><span style="font-size:12px">Dongle is voice enabled, PIN request is disabled...What do I do wrong ?<br>
                <br>
                Cheers / Mike</span></span></span></span><br>
                <br>
                 </div>
</div></div></blockquote>
<p style="margin:0px;padding:0px">
         </p>
</span></span>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>