[Freeswitch-users] Help understand error message -- gsmopen fails
Jayanth Acharya
jayachar88 at gmail.com
Thu Aug 22 22:16:55 MSD 2013
Latest FS (Git HEAD, as of yesterday), cloned and built successfully with
mod_gsmopen. Have used a fully unlocked E1550 dongle (tested in Mobile
Partner softeware in Windows, able to make calls, send SMSs). Started FS
with default configurations, as per Wiki instructions. Using the default
configration for gsmopen as well (maybe, that is the problem) ???
I get the highlighted errors, while loading mod_gsmopen ! My naive
interpretation (started with FS yesterday, and no experience with Asterisk
either), is that in the gsmopen module default config, I find:
<per_interface_settings>
<interface id="1" name="gsm01">
<param name="controldevice_name" value="/dev/ttyUSB3"/>
<param name="controldevice_audio_name" value="/dev/ttyUSB2"/>
However from the error logs printed in FS console, I see:
4a3d1a0|4a3d1a0[(nil)|37 ][NOTICA 3056 ][none ][-1,-1,-1]
f.tty_data_device = |/dev/ttyUSB2|
2013-08-22 23:29:53.007103 [NOTICE] mod_gsmopen.cpp:3057 rev
4a3d1a0|4a3d1a0[(nil)|37 ][NOTICA 3057 ][none ][-1,-1,-1]
f.tty_audio_device = |/dev/ttyUSB1|
Probably that is autodetected !! But how, without the IMSI/IMEI being
specified?
---
freeswitch at dabbian1> load mod_gsmopen
2013-08-22 23:29:51.807103 [INFO] mod_enum.c:876 ENUM Reloaded
2013-08-22 23:29:51.847112 [INFO] switch_time.c:1191 Timezone reloaded 530
definitions
2013-08-22 23:29:52.427101 [NOTICE] mod_gsmopen.cpp:1106 rev
4a3d1a0|4a3d1a0[(nil)|37 ][NOTICA 1106 ][none ][-1,-1,-1] GSMOPEN
Charset Output Test 0 èéòàù
2013-08-22 23:29:52.427101 [NOTICE] mod_gsmopen.cpp:1107 rev
4a3d1a0|4a3d1a0[(nil)|37 ][NOTICA 1107 ][none ][-1,-1,-1] GSMOPEN
Charset Output Test 1 ç°§^£
2013-08-22 23:29:52.427101 [NOTICE] mod_gsmopen.cpp:1108 rev
4a3d1a0|4a3d1a0[(nil)|37 ][NOTICA 1108 ][none ][-1,-1,-1] GSMOPEN
Charset Output Test 2 новости
2013-08-22 23:29:52.427101 [NOTICE] mod_gsmopen.cpp:1109 rev
4a3d1a0|4a3d1a0[(nil)|37 ][NOTICA 1109 ][none ][-1,-1,-1] GSMOPEN
Charset Output Test 3 ﺎﻠﺠﻤﻋﺓ
2013-08-22 23:29:52.427101 [NOTICE] mod_gsmopen.cpp:1110 rev
4a3d1a0|4a3d1a0[(nil)|37 ][NOTICA 1110 ][none ][-1,-1,-1] GSMOPEN
Charset Output Test 4 ראת
2013-08-22 23:29:52.427101 [NOTICE] mod_gsmopen.cpp:1111 rev
4a3d1a0|4a3d1a0[(nil)|37 ][NOTICA 1111 ][none ][-1,-1,-1] GSMOPEN
Charset Output Test 5 לק
2013-08-22 23:29:52.427101 [NOTICE] mod_gsmopen.cpp:1112 rev
4a3d1a0|4a3d1a0[(nil)|37 ][NOTICA 1112 ][none ][-1,-1,-1] GSMOPEN
Charset Output Test 6 人大
2013-08-22 23:29:53.007103 [NOTICE] mod_gsmopen.cpp:3053 rev
4a3d1a0|4a3d1a0[(nil)|37 ][NOTICA 3053 ][none ][-1,-1,-1]
************************************************
2013-08-22 23:29:53.007103 [NOTICE] mod_gsmopen.cpp:3054 rev
4a3d1a0|4a3d1a0[(nil)|37 ][NOTICA 3054 ][none ][-1,-1,-1]
f.imei=|354638041679399|
2013-08-22 23:29:53.007103 [NOTICE] mod_gsmopen.cpp:3055 rev
4a3d1a0|4a3d1a0[(nil)|37 ][NOTICA 3055 ][none ][-1,-1,-1]
f.imsi=|405034007414619|
2013-08-22 23:29:53.007103 [NOTICE] mod_gsmopen.cpp:3056 rev
4a3d1a0|4a3d1a0[(nil)|37 ][NOTICA 3056 ][none ][-1,-1,-1]
f.tty_data_device = |/dev/ttyUSB2|
2013-08-22 23:29:53.007103 [NOTICE] mod_gsmopen.cpp:3057 rev
4a3d1a0|4a3d1a0[(nil)|37 ][NOTICA 3057 ][none ][-1,-1,-1]
f.tty_audio_device = |/dev/ttyUSB1|
2013-08-22 23:29:53.007103 [NOTICE] mod_gsmopen.cpp:3058 rev
4a3d1a0|4a3d1a0[(nil)|37 ][NOTICA 3058 ][none ][-1,-1,-1]
************************************************
2013-08-22 23:29:53.027123 [WARNING] mod_gsmopen.cpp:1589 rev
4a3d1a0|4a3d1a0[(nil)|37 ][WARNINGA 1589 ][gsm01 ][-1, 0, 0]
STARTING interface_id=1
2013-08-22 23:29:53.027123 [ERR] gsmopen_protocol.cpp:137 rev
4a3d1a0|4a3d1a0[(nil)|37 ][ERRORA 137 ][gsm01 ][-1, 0, 0] port
/dev/ttyUSB3, NOT open
2013-08-22 23:29:53.027123 [ERR] mod_gsmopen.cpp:1608 rev
4a3d1a0|4a3d1a0[(nil)|37 ][ERRORA 1608 ][gsm01 ][-1, 0, 0]
STARTING interface_id=1 FAILED: gsmopen_serial_init failed
+OK Reloading XML
+OK
2013-08-22 23:29:53.027123 [ERR] mod_gsmopen.cpp:2684 rev
4a3d1a0|4a3d1a0[(nil)|37 ][ERRORA 2684 ][gsm01 ][-1, 0, 0] ALARM
on interface gsm01:
freeswitch at dabbian1> 2013-08-22 23:29:53.027123 [CONSOLE]
switch_loadable_module.c:1401 Successfully Loaded [mod_gsmopen]
2013-08-22 23:29:53.027123 [NOTICE] switch_loadable_module.c:147 Adding
Endpoint 'gsmopen'
2013-08-22 23:29:53.027123 [NOTICE] switch_loadable_module.c:305 Adding API
Function 'gsm'
2013-08-22 23:29:53.027123 [NOTICE] switch_loadable_module.c:305 Adding API
Function 'gsmopen'
2013-08-22 23:29:53.027123 [NOTICE] switch_loadable_module.c:305 Adding API
Function 'gsmopen_boost_audio'
2013-08-22 23:29:53.027123 [NOTICE] switch_loadable_module.c:305 Adding API
Function 'gsmopen_dump'
2013-08-22 23:29:53.027123 [NOTICE] switch_loadable_module.c:305 Adding API
Function 'gsmopen_sendsms'
2013-08-22 23:29:53.027123 [NOTICE] switch_loadable_module.c:417 Adding
Chat interface 'sms'
freeswitch at dabbian1>
---
With this understanding, I went ahead and modified the gsmopen config file,
to:
<per_interface_settings>
<interface id="1" name="gsm01">
<param name="controldevice_name" value="/dev/ttyUSB2"/>
<param name="controldevice_audio_name" value="/dev/ttyUSB1"/>
then unloaded mod_gsmopen, and reloaded it, but now, I get this error:
2013-08-22 23:41:43.587104 [ERR] gsmopen_protocol.cpp:137 rev
4a3d1a0|4a3d1a0[(nil)|37 ][ERRORA 137 ][gsm01 ][-1, 0, 0] port
/dev/ttyUSB3, NOT open
2013-08-22 23:41:43.587104 [ERR] mod_gsmopen.cpp:1608 rev
4a3d1a0|4a3d1a0[(nil)|37 ][ERRORA 1608 ][gsm01 ][-1, 0, 0]
STARTING interface_id=1 FAILED: gsmopen_serial_init failed
2013-08-22 23:41:43.587104 [ERR] mod_gsmopen.cpp:2684 rev
4a3d1a0|4a3d1a0[(nil)|37 ][ERRORA 2684 ][gsm01 ][-1, 0, 0] ALARM
on interface gsm01:
What does it need /dev/ttyUSB3 for ?
Maybe -- after all, my non linear progression into setting up FS and using
it by somewhat of trial-n-error isn't helping!
thanks,
Jay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130822/f4ab3bf7/attachment.html
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list