[Freeswitch-users] Help understand error message -- gsmopen fails

Ashish Mishra itsme.kunnu at gmail.com
Fri Aug 23 09:47:34 MSD 2013


Yes I am trying to use FS for IVR. You are right not many rather hardly
have i seen on this community who are using mod_gsmopen. I wrote to the
person who has contributed mod_gsmopen to FS but also no reply from his end
too. I was looking for someone who could help me with this aspect of FS and
then yesterday i came across your mail. I thought you would help me with
mod_gsmopen. May i expect some help ?

Regards
Ashish Mishra
On Aug 23, 2013 8:16 AM, "Jayanth Acharya" <jayachar88 at gmail.com> wrote:

> Looks like, not many people use mod_gsmopen. I've opened a JIRA ticket for
> some minor issues in the Wiki, but hasn't been acknowledged, and I see no
> one responding this mail either. I'd seen your other mails in the archive
> while searching for hints in previous exchanges.
>
> Ubuntu/Debian setups should be fairly similar. Did you follow the wiki to
> build it from scratch or using the repo packages ? I guess the former,
> because Debian repo packages didn't have mod_gsmopen.
>
> I plan to spend a day or two reading about FS. The wiki has a tonne of
> info but not in a very well organized fashion. Also, I saw that the JIRA
> bug reports have lot of useful information in them.
>
> BTW what are you trying to do with FS ? Set up an IVR ?
>
>
> On Fri, Aug 23, 2013 at 6:19 AM, Ashish Mishra <itsme.kunnu at gmail.com>wrote:
>
>> Hi jayanth
>> Since you are the first person whom i have seen working with mod_gsmopen.
>> Can you help me with the ways to enable freeswitch use mod_gsmopen on
>> ubuntu machine.
>> This may sound ironical that i am not answering your question rather
>> asking a question as a reply of your question.
>> I will send you the error log which i come across after loading
>> mod_gsmopen on freeswitch.
>> Hope we can together help each other.
>>
>> Regards
>> Ashish Mishra
>> On Aug 23, 2013 3:12 AM, "Jayanth Acharya" <jayachar88 at gmail.com> wrote:
>>
>>> 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
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> 
>>> 
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> 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
>>>
>>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> 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
>>
>>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> 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/20130823/8a8ea0d2/attachment.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list