Could not connect thru GSMOpen
Hi all, I have properly compiled the gsmopen module. Added the Dialplan <extension name="gsmopen"> <condition field="destination_number" expression="^1002$"> <action application="bridge" data="gsmopen/interface1/xxxxxxxxx"/> </condition> </extension> ---------------------------------------------------- And the gsm conf file <configuration name="gsmopen.conf" description="GSMopen Configuration"> - <global_settings> <param name="debug" value="8"/> <param name="dialplan" value="XML"/> <param name="context" value="default"/> <param name="hold-music" value="$${moh_uri}"/> <param name="destination" value="9999"/> </global_settings> <!-- one entry here per gsmopen interface --> - <per_interface_settings> - <interface id="1" name="interface1"> <param name="hold-music" value="$${moh_uri}"/> <param name="dialplan" value="XML"/> <param name="context" value="default"/> <param name="destination" value="5000"/> <param name="alsacname" value="plughw:1"/> <param name="alsapname" value="plughw:1"/> <param name="controldevice_name" value="/dev/ttyACM1"/> </interface> <!-- following interfaces are commented out! --> </per_interface_settings> </configuration> ------------------------------------------------------------------ I am using a Nokia handset in India --------------------------------------------------------------------- I am getting the below error on gsm_load. gsm reload 2011-06-30 19:03:52.716491 [WARNING] mod_gsmopen.cpp:1860 rev exported[(nil)|37 ][WARNINGA 1860 ][interface1][-1, 0, 0] STARTING interface_id=1 2011-06-30 19:03:56.616460 [ERR] gsmopen_protocol.cpp:2999 rev exported[(nil)|37 ][ERRORA 2999 ][interface1][-1, 0, 0] snd_pcm_open failed with error 'No such file or directory' on device 'plughw:1', if you are using a plughw:n device please change it to be a default:n device (so to allow it to be shared with other concurrent programs), or maybe you are using an ALSA voicemodem and slmodemd is running? 2011-06-30 19:03:56.616460 [ERR] gsmopen_protocol.cpp:2891 rev exported[(nil)|37 ][ERRORA 2891 ][interface1][-1, 0, 0] Failed opening ALSA capture device: plughw:1 2011-06-30 19:03:56.616460 [ERR] mod_gsmopen.cpp:1931 rev exported[(nil)|37 ][ERRORA 1931 ][interface1][-1, 0, 0] alsa_init failed 2011-06-30 19:03:56.616460 [ERR] mod_gsmopen.cpp:1932 rev exported[(nil)|37 ][ERRORA 1932 ][interface1][-1, 0, 0] STARTING interface_id=1 FAILED 2011-06-30 19:03:56.616460 [ERR] mod_gsmopen.cpp:3146 rev exported[(nil)|37 ][ERRORA 3146 ][interface1][-1, 0, 0] ALARM on interface interface1: ----------------------------------------------------------------------------------------------------------------- I could not understand what does the error message trying to say? I am connected to friend's mobile with datacable on com1 port. I jsut wanted to check SMS. Please help. Thanks Ankit -- Life is like a rose its upto u feel it as its fragrance or thorns
the "plughw:1" alsa device does not exists (or is not read-write to the FS user). Are you using a soundcard connected to the cellphone? To be audio enabled, gsmopen need a soundcard connected to the cellphone (as explained in the wiki page). If you're not interested in audio, but only in SMS, then compile gsmopen without audio, so it will not check for the soundcard. Also, I don't know if gsmopen will work with the kind of cellphone you're using. For sure it works with mobigater embedded devices, with motorolas, with ericssons. -giovanni -giovanni On Thu, Jun 30, 2011 at 3:37 PM, ankIT WALiA <ankitwalia4u@gmail.com> wrote:
Hi all,
I have properly compiled the gsmopen module.
Added the Dialplan
<extension name="gsmopen"> <condition field="destination_number" expression="^1002$"> <action application="bridge" data="gsmopen/interface1/xxxxxxxxx"/> </condition> </extension> ---------------------------------------------------- And the gsm conf file <configuration name="gsmopen.conf" description="GSMopen Configuration"> - <global_settings>
<param name="debug" value="8"/> <param name="dialplan" value="XML"/> <param name="context" value="default"/> <param name="hold-music" value="$${moh_uri}"/>
<param name="destination" value="9999"/> </global_settings> <!-- one entry here per gsmopen interface --> - <per_interface_settings> - <interface id="1" name="interface1">
<param name="hold-music" value="$${moh_uri}"/> <param name="dialplan" value="XML"/> <param name="context" value="default"/> <param name="destination" value="5000"/>
<param name="alsacname" value="plughw:1"/> <param name="alsapname" value="plughw:1"/> <param name="controldevice_name" value="/dev/ttyACM1"/>
</interface> <!-- following interfaces are commented out! --> </per_interface_settings> </configuration> ------------------------------------------------------------------ I am using a Nokia handset in India
--------------------------------------------------------------------- I am getting the below error on gsm_load.
gsm reload 2011-06-30 19:03:52.716491 [WARNING] mod_gsmopen.cpp:1860 rev exported[(nil)|37 ][WARNINGA 1860 ][interface1][-1, 0, 0] STARTING interface_id=1
2011-06-30 19:03:56.616460 [ERR] gsmopen_protocol.cpp:2999 rev exported[(nil)|37 ][ERRORA 2999 ][interface1][-1, 0, 0] snd_pcm_open failed with error 'No such file or directory' on device 'plughw:1', if you are using a plughw:n device please change it to be a default:n device (so to allow it to be shared with other concurrent programs), or maybe you are using an ALSA voicemodem and slmodemd is running?
2011-06-30 19:03:56.616460 [ERR] gsmopen_protocol.cpp:2891 rev exported[(nil)|37 ][ERRORA 2891 ][interface1][-1, 0, 0] Failed opening ALSA capture device: plughw:1 2011-06-30 19:03:56.616460 [ERR] mod_gsmopen.cpp:1931 rev exported[(nil)|37 ][ERRORA 1931 ][interface1][-1, 0, 0] alsa_init failed
2011-06-30 19:03:56.616460 [ERR] mod_gsmopen.cpp:1932 rev exported[(nil)|37 ][ERRORA 1932 ][interface1][-1, 0, 0] STARTING interface_id=1 FAILED 2011-06-30 19:03:56.616460 [ERR] mod_gsmopen.cpp:3146 rev exported[(nil)|37 ][ERRORA 3146 ][interface1][-1, 0, 0] ALARM on interface interface1:
----------------------------------------------------------------------------------------------------------------- I could not understand what does the error message trying to say? I am connected to friend's mobile with datacable on com1 port. I jsut wanted to check SMS. Please help.
Thanks Ankit
-- Life is like a rose its upto u feel it as its fragrance or thorns
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
-- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618
Ok, Could you please guide me how can I uninstall the alsa on my Ubuntu system. I tried installing on other system having Centos (this system is fresh freeswitch install). I followed the steps cd gsmlib/gsmlib-1.10-patched-12ubuntu1 ./configure make make install Now, I was confused at this below step. What does the below lines mean on wiki. *Without audio support (SMSs only, no voice calls)* - * With gsmlib is in noaudio_gsmlib_cplusplus/mod_gsmopen * - * Without gsmlib is in noaudio_nogsmlib_nocplusplus/mod_gsmopen * Does it mean that I need to add one more layer of directory under endpoints/noaudio_gsmlib_cplusplus/mod_gsmopen ? Although I was not sure, Still I did install under normal mod_gsmopen. Now when I am trying to load mod_gsmopen. It is giving me the error 2011-07-01 09:59:53.689233 [CRIT] switch_loadable_module.c:928 Error Loading module /usr/local/freeswitch/mod/mod_gsmopen.so Though the file mod_gsmopen.so exist and I logged into root which has all the permission. Please help. Regards, Ankit On Thu, Jun 30, 2011 at 7:34 PM, Giovanni Maruzzelli <gmaruzz@gmail.com>wrote:
the "plughw:1" alsa device does not exists (or is not read-write to the FS user).
Are you using a soundcard connected to the cellphone? To be audio enabled, gsmopen need a soundcard connected to the cellphone (as explained in the wiki page).
If you're not interested in audio, but only in SMS, then compile gsmopen without audio, so it will not check for the soundcard.
Also, I don't know if gsmopen will work with the kind of cellphone you're using. For sure it works with mobigater embedded devices, with motorolas, with ericssons.
-giovanni -giovanni
On Thu, Jun 30, 2011 at 3:37 PM, ankIT WALiA <ankitwalia4u@gmail.com> wrote:
Hi all,
I have properly compiled the gsmopen module.
Added the Dialplan
<extension name="gsmopen"> <condition field="destination_number" expression="^1002$"> <action application="bridge" data="gsmopen/interface1/xxxxxxxxx"/> </condition> </extension> ---------------------------------------------------- And the gsm conf file <configuration name="gsmopen.conf" description="GSMopen Configuration"> - <global_settings>
<param name="debug" value="8"/> <param name="dialplan" value="XML"/> <param name="context" value="default"/> <param name="hold-music" value="$${moh_uri}"/>
<param name="destination" value="9999"/> </global_settings> <!-- one entry here per gsmopen interface --> - <per_interface_settings> - <interface id="1" name="interface1">
<param name="hold-music" value="$${moh_uri}"/> <param name="dialplan" value="XML"/> <param name="context" value="default"/> <param name="destination" value="5000"/>
<param name="alsacname" value="plughw:1"/> <param name="alsapname" value="plughw:1"/> <param name="controldevice_name" value="/dev/ttyACM1"/>
</interface> <!-- following interfaces are commented out! --> </per_interface_settings> </configuration> ------------------------------------------------------------------ I am using a Nokia handset in India
--------------------------------------------------------------------- I am getting the below error on gsm_load.
gsm reload 2011-06-30 19:03:52.716491 [WARNING] mod_gsmopen.cpp:1860 rev exported[(nil)|37 ][WARNINGA 1860 ][interface1][-1, 0, 0] STARTING interface_id=1
2011-06-30 19:03:56.616460 [ERR] gsmopen_protocol.cpp:2999 rev exported[(nil)|37 ][ERRORA 2999 ][interface1][-1, 0, 0] snd_pcm_open failed with error 'No such file or directory' on device 'plughw:1', if you are using a plughw:n device please change it to be a default:n device (so to allow it to be shared with other concurrent programs), or maybe you are using an ALSA voicemodem and slmodemd is running?
2011-06-30 19:03:56.616460 [ERR] gsmopen_protocol.cpp:2891 rev exported[(nil)|37 ][ERRORA 2891 ][interface1][-1, 0, 0] Failed opening ALSA capture device: plughw:1 2011-06-30 19:03:56.616460 [ERR] mod_gsmopen.cpp:1931 rev exported[(nil)|37 ][ERRORA 1931 ][interface1][-1, 0, 0] alsa_init failed
2011-06-30 19:03:56.616460 [ERR] mod_gsmopen.cpp:1932 rev exported[(nil)|37 ][ERRORA 1932 ][interface1][-1, 0, 0] STARTING interface_id=1 FAILED 2011-06-30 19:03:56.616460 [ERR] mod_gsmopen.cpp:3146 rev exported[(nil)|37 ][ERRORA 3146 ][interface1][-1, 0, 0] ALARM on interface interface1:
-----------------------------------------------------------------------------------------------------------------
I could not understand what does the error message trying to say? I am connected to friend's mobile with datacable on com1 port. I jsut wanted to check SMS. Please help.
Thanks Ankit
-- Life is like a rose its upto u feel it as its fragrance or thorns
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
-- Sincerely,
Giovanni Maruzzelli Cell : +39-347-2665618
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
-- Life is like a rose its upto u feel it as its fragrance or thorns
Ankit, the error is just that you have not installed the module. For what I can see, you are just beginning to use FreeSWIT>CH, and mod_gsmopen is an experimental module that requires a fair knowledge of FreeSWITCH and Linux to be used. I would counseil you to not use it, and go back to it in the future. Also, I highly doubt it will work with your nokia. -giovanni On Fri, Jul 1, 2011 at 4:18 PM, ankIT WALiA <ankitwalia4u@gmail.com> wrote:
Ok, Could you please guide me how can I uninstall the alsa on my Ubuntu system.
I tried installing on other system having Centos (this system is fresh freeswitch install). I followed the steps
cd gsmlib/gsmlib-1.10-patched-12ubuntu1 ./configure make make install
Now, I was confused at this below step. What does the below lines mean on wiki. *Without audio support (SMSs only, no voice calls)*
- * With gsmlib is in noaudio_gsmlib_cplusplus/mod_gsmopen * - * Without gsmlib is in noaudio_nogsmlib_nocplusplus/mod_gsmopen *
Does it mean that I need to add one more layer of directory under endpoints/noaudio_gsmlib_cplusplus/mod_gsmopen ?
Although I was not sure, Still I did install under normal mod_gsmopen. Now when I am trying to load mod_gsmopen. It is giving me the error 2011-07-01 09:59:53.689233 [CRIT] switch_loadable_module.c:928 Error Loading module /usr/local/freeswitch/mod/mod_gsmopen.so
Though the file mod_gsmopen.so exist and I logged into root which has all the permission.
Please help.
Regards, Ankit
On Thu, Jun 30, 2011 at 7:34 PM, Giovanni Maruzzelli <gmaruzz@gmail.com>wrote:
the "plughw:1" alsa device does not exists (or is not read-write to the FS user).
Are you using a soundcard connected to the cellphone? To be audio enabled, gsmopen need a soundcard connected to the cellphone (as explained in the wiki page).
If you're not interested in audio, but only in SMS, then compile gsmopen without audio, so it will not check for the soundcard.
Also, I don't know if gsmopen will work with the kind of cellphone you're using. For sure it works with mobigater embedded devices, with motorolas, with ericssons.
-giovanni -giovanni
On Thu, Jun 30, 2011 at 3:37 PM, ankIT WALiA <ankitwalia4u@gmail.com> wrote:
Hi all,
I have properly compiled the gsmopen module.
Added the Dialplan
<extension name="gsmopen"> <condition field="destination_number" expression="^1002$"> <action application="bridge" data="gsmopen/interface1/xxxxxxxxx"/> </condition> </extension> ---------------------------------------------------- And the gsm conf file <configuration name="gsmopen.conf" description="GSMopen Configuration"> - <global_settings>
<param name="debug" value="8"/> <param name="dialplan" value="XML"/> <param name="context" value="default"/> <param name="hold-music" value="$${moh_uri}"/>
<param name="destination" value="9999"/> </global_settings> <!-- one entry here per gsmopen interface --> - <per_interface_settings> - <interface id="1" name="interface1">
<param name="hold-music" value="$${moh_uri}"/> <param name="dialplan" value="XML"/> <param name="context" value="default"/> <param name="destination" value="5000"/>
<param name="alsacname" value="plughw:1"/> <param name="alsapname" value="plughw:1"/> <param name="controldevice_name" value="/dev/ttyACM1"/>
</interface> <!-- following interfaces are commented out! --> </per_interface_settings> </configuration> ------------------------------------------------------------------ I am using a Nokia handset in India
--------------------------------------------------------------------- I am getting the below error on gsm_load.
gsm reload 2011-06-30 19:03:52.716491 [WARNING] mod_gsmopen.cpp:1860 rev exported[(nil)|37 ][WARNINGA 1860 ][interface1][-1, 0, 0] STARTING interface_id=1
2011-06-30 19:03:56.616460 [ERR] gsmopen_protocol.cpp:2999 rev exported[(nil)|37 ][ERRORA 2999 ][interface1][-1, 0, 0] snd_pcm_open failed with error 'No such file or directory' on device 'plughw:1', if you are using a plughw:n device please change it to be a default:n device (so to allow it to be shared with other concurrent programs), or maybe you are using an ALSA voicemodem and slmodemd is running?
2011-06-30 19:03:56.616460 [ERR] gsmopen_protocol.cpp:2891 rev exported[(nil)|37 ][ERRORA 2891 ][interface1][-1, 0, 0] Failed opening ALSA capture device: plughw:1 2011-06-30 19:03:56.616460 [ERR] mod_gsmopen.cpp:1931 rev exported[(nil)|37 ][ERRORA 1931 ][interface1][-1, 0, 0] alsa_init failed
2011-06-30 19:03:56.616460 [ERR] mod_gsmopen.cpp:1932 rev exported[(nil)|37 ][ERRORA 1932 ][interface1][-1, 0, 0] STARTING interface_id=1 FAILED 2011-06-30 19:03:56.616460 [ERR] mod_gsmopen.cpp:3146 rev exported[(nil)|37 ][ERRORA 3146 ][interface1][-1, 0, 0] ALARM on interface interface1:
-----------------------------------------------------------------------------------------------------------------
I could not understand what does the error message trying to say? I am connected to friend's mobile with datacable on com1 port. I jsut wanted to check SMS. Please help.
Thanks Ankit
-- Life is like a rose its upto u feel it as its fragrance or thorns
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
-- Sincerely,
Giovanni Maruzzelli Cell : +39-347-2665618
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
-- Life is like a rose its upto u feel it as its fragrance or thorns
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
-- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618
participants (3)
-
ankIT WALiA
-
Giovanni Maruzzelli
-
Giovanni Maruzzelli