Hi all,
I've configured gsmopen in freeswitch, but when I connect my mobile ( NOKIA 2700) through data cable, It got detected as /dev/sdb and not as
/dev/ttyACM0.
So I changed the configuration as follows
When I gave load mod_gsmopen I got the following error.
2010-04-19 17:50:22.031157 [DEBUG] mod_gsmopen.cpp:1365 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1365 ][none ][-1,-1,-1] globals.debug=0
2010-04-19 17:50:22.031157 [DEBUG] mod_gsmopen.cpp:1367 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1367 ][none ][-1,-1,-1] globals.debug=8
2010-04-19 17:50:22.031157 [DEBUG] mod_gsmopen.cpp:1373 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1373 ][none ][-1,-1,-1] globals.dialplan=XML
2010-04-19 17:50:22.031157 [DEBUG] mod_gsmopen.cpp:1379 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1379 ][none ][-1,-1,-1] globals.context=default
2010-04-19 17:50:22.031157 [DEBUG] mod_gsmopen.cpp:1370 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1370 ][none ][-1,-1,-1] globals.hold_music=
2010-04-19 17:50:22.031157 [DEBUG] mod_gsmopen.cpp:1376 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1376 ][none ][-1,-1,-1] globals.destination=9999
2010-04-19 17:50:22.031157 [WARNING] mod_gsmopen.cpp:1861 rev exported[(nil)|37 ][WARNINGA 1861 ][interface1][-1, 0, 0] STARTING interface_id=1
2010-04-19 17:50:22.031157 [DEBUG] mod_gsmopen.cpp:1862 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1862 ][interface1][-1, 0, 0] id=1
2010-04-19 17:50:22.031157 [DEBUG] mod_gsmopen.cpp:1863 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1863 ][interface1][-1, 0, 0] name=interface1
2010-04-19 17:50:22.031157 [DEBUG] mod_gsmopen.cpp:1864 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1864 ][interface1][-1, 0, 0] hold-music=
2010-04-19 17:50:22.031157 [DEBUG] mod_gsmopen.cpp:1865 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1865 ][interface1][-1, 0, 0] context=default
2010-04-19 17:50:22.031157 [DEBUG] mod_gsmopen.cpp:1866 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1866 ][interface1][-1, 0, 0] dialplan=XML
2010-04-19 17:50:22.031157 [DEBUG] mod_gsmopen.cpp:1867 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1867 ][interface1][-1, 0, 0] destination=5000
2010-04-19 17:50:22.031157 [DEBUG] mod_gsmopen.cpp:1868 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1868 ][interface1][-1, 0, 0] controldevice_name=/dev/sdb
2010-04-19 17:50:22.031157 [DEBUG] mod_gsmopen.cpp:1870 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1870 ][interface1][-1, 0, 0] alsacname=plughw:1
2010-04-19 17:50:22.031157 [DEBUG] mod_gsmopen.cpp:1871 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1871 ][interface1][-1, 0, 0] alsapname=plughw:1
2010-04-19 17:50:22.031157 [DEBUG] mod_gsmopen.cpp:1886 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1886 ][interface1][-1, 0, 0] gsmopen_serial_sync_period=300
2010-04-19 17:50:23.054242 [ERR] gsmopen_protocol.cpp:441 rev exported[(nil)|37 ][ERRORA 441 ][interface1][-1, 0, 0] serial error: Invalid argument2010-04-19 17:50:23.054242 [ERR] gsmopen_protocol.cpp:462 rev exported[(nil)|37 ][ERRORA 462 ][interface1][-1, 0, 0] serial error: Invalid argument2010-04-19 17:50:23.054242 [ERR] gsmopen_protocol.cpp:466 rev exported[(nil)|37 ][ERRORA 466 ][interface1][-1, 0, 0] serial error: Invalid argument2010-04-19 17:50:23.054242 [DEBUG] gsmopen_protocol.cpp:485 rev exported[(nil)|37 ][DEBUG_GSMOPEN 485 ][interface1][-1, 0, 0] Syncing Serial, fd=48, protocol=2
2010-04-19 17:50:23.064334 [DEBUG] gsmopen_protocol.cpp:2581 rev exported[(nil)|37 ][DEBUG_GSMOPEN 2581 ][interface1][-1, 0, 0] ucs2_in=006300690061006F0020003100320033002000620065006C00E80020043D043E0432043E044104420438002005DC05E7002005E805D005EA0020FE8EFEE0FEA0FEE4FECBFE9300204EBA5927
2010-04-19 17:50:23.064334 [DEBUG] gsmopen_protocol.cpp:2602 rev exported[(nil)|37 ][DEBUG_GSMOPEN 2602 ][interface1][-1, 0, 0] 1 ciao in=, inleft=76, out=, outleft=1000, converted=, utf8_out=
2010-04-19 17:50:23.064334 [DEBUG] gsmopen_protocol.cpp:2614 rev exported[(nil)|37 ][DEBUG_GSMOPEN 2614 ][interface1][-1, 0, 0] iconv_res=0, in=, inleft=0, out=, outleft=933, converted=, utf8_out=ciao 123 belè новости לק ראת ﺎﻠﺠﻤﻋﺓ 人大
2010-04-19 17:50:23.064334 [DEBUG] gsmopen_protocol.cpp:632 rev exported[(nil)|37 ][DEBUG_GSMOPEN 632 ][interface1][-1, 0, 0] sleeping for 500000 usec
2010-04-19 17:50:23.561236 [DEBUG] gsmopen_protocol.cpp:689 rev exported[(nil)|37 ][DEBUG_GSMOPEN 689 ][interface1][-1, 0, 0] sleeping for 500000 usec
2010-04-19 17:50:24.062431 [DEBUG] gsmopen_protocol.cpp:2362 rev exported[(nil)|37 ][DEBUG_GSMOPEN 2362 ][interface1][-1, 0, 0] sending: AT
2010-04-19 17:50:24.062431 [DEBUG] gsmopen_protocol.cpp:2264 rev exported[(nil)|37 ][DEBUG_GSMOPEN 2264 ][interface1][-1, 0, 0] sent data... (A)
2010-04-19 17:50:24.063194 [DEBUG] gsmopen_protocol.cpp:2264 rev exported[(nil)|37 ][DEBUG_GSMOPEN 2264 ][interface1][-1, 0, 0] sent data... (T)
2010-04-19 17:50:24.063194 [DEBUG] gsmopen_protocol.cpp:2290 rev exported[(nil)|37 ][DEBUG_GSMOPEN 2290 ][interface1][-1, 0, 0] sent (carriage return)
2010-04-19 17:50:24.064725 [ERR] gsmopen_protocol.cpp:1007 rev exported[(nil)|37 ][ERRORA 1007 ][interface1][-1, 0, 0] read 0 bytes!!! Nenormalno! Marking this gsmopen_serial_device /dev/sdb as dead, andif it is owned by a channel, hanging up. Maybe the phone is stuck, switched off, power down or battery exhausted
2010-04-19 17:50:24.064725 [ERR] gsmopen_protocol.cpp:1010 rev exported[(nil)|37 ][ERRORA 1010 ][interface1][-1, 0, 0] gsmopen_serial_monitor failed, declaring /dev/sdb dead
2010-04-19 17:50:24.064725 [ERR] mod_gsmopen.cpp:3136 rev exported[(nil)|37 ][ERRORA 3136 ][interface1][-1, 0, 0] ALARM on interface interface1:
2010-04-19 17:50:25.061286 [ERR] gsmopen_protocol.cpp:696 rev exported[(nil)|37 ][ERRORA 696 ][ ][-1, 0, 0] no response to AT
2010-04-19 17:50:25.061286 [ERR] mod_gsmopen.cpp:1907 rev exported[(nil)|37 ][ERRORA 1907 ][ ][-1, 0, 0] gsmopen_serial_config failed
2010-04-19 17:50:25.061286 [ERR] mod_gsmopen.cpp:1908 rev exported[(nil)|37 ][ERRORA 1908 ][ ][-1, 0, 0] STARTING interface_id=1 FAILED
2010-04-19 17:50:25.061286 [ERR] mod_gsmopen.cpp:3136 rev exported[(nil)|37 ][ERRORA 3136 ][ ][-1, 0, 0] ALARM on interface :
FreeSWITCH with GSMopen 2
Dear lakshmanan,
your phone has been recognized by linux as an usb storage (/dev/sd*). So, it cannot work. (Like trying to use the hard drive as a modem).
Please have a look in google on how to have your phone recognized as a modem by linux (on my nokia E63 you have to fiddle with the settings about "what to do when USB cable is connected"). You will end up with a /dev/ttyACM* or /dev/ttyUSB* device. That is what gsmopen needs (a serial device, eg: a modem).
-giovanni
FreeSWITCH with GSMopen 3
Dear giovanni,
Thanks for your input. I've found the reason why it is not detecting as /dev/ttyACM0. When I connect my mobile to the system, in my mobile, it asks for 3 option.
1 Nokia PC SUITE
2 Printing & media
3 Memory card.
If I choose Memory card, then it is detected as /dev/sdb. If I choose Nokia PC SUITE, then it got detected as /dev/ttyACM0.
Once it got detected as /dev/ttyACM0, I started the freeswitch. But still it got failure. Here is the log.
_____________________________________________________________________________
freeswitch@FreeSwitch-Testing> load mod_gsmopen
2010-04-20 15:05:41.175643 [DEBUG] mod_gsmopen.cpp:1365 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1365 ][none ][-1,-1,-1] globals.debug=0
2010-04-20 15:05:41.175643 [DEBUG] mod_gsmopen.cpp:1367 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1367 ][none ][-1,-1,-1] globals.debug=8
2010-04-20 15:05:41.175643 [DEBUG] mod_gsmopen.cpp:1373 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1373 ][none ][-1,-1,-1] globals.dialplan=XML
2010-04-20 15:05:41.175643 [DEBUG] mod_gsmopen.cpp:1379 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1379 ][none ][-1,-1,-1] globals.context=default
2010-04-20 15:05:41.175643 [DEBUG] mod_gsmopen.cpp:1370 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1370 ][none ][-1,-1,-1] globals.hold_music=
2010-04-20 15:05:41.175643 [DEBUG] mod_gsmopen.cpp:1376 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1376 ][none ][-1,-1,-1] globals.destination=9999
2010-04-20 15:05:41.175643 [WARNING] mod_gsmopen.cpp:1861 rev exported[(nil)|37 ][WARNINGA 1861 ][interface1][-1, 0, 0] STARTING interface_id=1
2010-04-20 15:05:41.175643 [DEBUG] mod_gsmopen.cpp:1862 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1862 ][interface1][-1, 0, 0] id=1
2010-04-20 15:05:41.175643 [DEBUG] mod_gsmopen.cpp:1863 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1863 ][interface1][-1, 0, 0] name=interface1
2010-04-20 15:05:41.175643 [DEBUG] mod_gsmopen.cpp:1864 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1864 ][interface1][-1, 0, 0] hold-music=
2010-04-20 15:05:41.175643 [DEBUG] mod_gsmopen.cpp:1865 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1865 ][interface1][-1, 0, 0] context=default
2010-04-20 15:05:41.175643 [DEBUG] mod_gsmopen.cpp:1866 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1866 ][interface1][-1, 0, 0] dialplan=XML
2010-04-20 15:05:41.175643 [DEBUG] mod_gsmopen.cpp:1867 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1867 ][interface1][-1, 0, 0] destination=5000
2010-04-20 15:05:41.175643 [DEBUG] mod_gsmopen.cpp:1868 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1868 ][interface1][-1, 0, 0] controldevice_name=/dev/ttyACM0
2010-04-20 15:05:41.175643 [DEBUG] mod_gsmopen.cpp:1870 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1870 ][interface1][-1, 0, 0] alsacname=plughw:1
2010-04-20 15:05:41.175643 [DEBUG] mod_gsmopen.cpp:1871 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1871 ][interface1][-1, 0, 0] alsapname=plughw:1
2010-04-20 15:05:41.175643 [DEBUG] mod_gsmopen.cpp:1886 rev exported[(nil)|37 ][DEBUG_GSMOPEN 1886 ][interface1][-1, 0, 0] gsmopen_serial_sync_period=300
2010-04-20 15:05:42.213940 [DEBUG] gsmopen_protocol.cpp:485 rev exported[(nil)|37 ][DEBUG_GSMOPEN 485 ][interface1][-1, 0, 0] Syncing Serial, fd=48, protocol=2
2010-04-20 15:05:42.222487 [DEBUG] gsmopen_protocol.cpp:2581 rev exported[(nil)|37 ][DEBUG_GSMOPEN 2581 ][interface1][-1, 0, 0] ucs2_in=006300690061006F0020003100320033002000620065006C00E80020043D043E0432043E044104420438002005DC05E7002005E805D005EA0020FE8EFEE0FEA0FEE4FECBFE9300204EBA5927
2010-04-20 15:05:42.222487 [DEBUG] gsmopen_protocol.cpp:2602 rev exported[(nil)|37 ][DEBUG_GSMOPEN 2602 ][interface1][-1, 0, 0] 1 ciao in=, inleft=76, out=, outleft=1000, converted=, utf8_out=
2010-04-20 15:05:42.222487 [DEBUG] gsmopen_protocol.cpp:2614 rev exported[(nil)|37 ][DEBUG_GSMOPEN 2614 ][interface1][-1, 0, 0] iconv_res=0, in=, inleft=0, out=, outleft=933, converted=, utf8_out=ciao 123 belè новости לק ראת ﺎﻠﺠﻤﻋﺓ 人大
2010-04-20 15:05:42.222487 [DEBUG] gsmopen_protocol.cpp:632 rev exported[(nil)|37 ][DEBUG_GSMOPEN 632 ][interface1][-1, 0, 0] sleeping for 500000 usec
2010-04-20 15:05:42.720466 [DEBUG] gsmopen_protocol.cpp:689 rev exported[(nil)|37 ][DEBUG_GSMOPEN 689 ][interface1][-1, 0, 0] sleeping for 500000 usec
2010-04-20 15:05:43.220537 [DEBUG] gsmopen_protocol.cpp:2362 rev exported[(nil)|37 ][DEBUG_GSMOPEN 2362 ][interface1][-1, 0, 0] sending: AT
2010-04-20 15:05:43.220537 [DEBUG] gsmopen_protocol.cpp:2264 rev exported[(nil)|37 ][DEBUG_GSMOPEN 2264 ][interface1][-1, 0, 0] sent data... (A)
2010-04-20 15:05:43.221546 [DEBUG] gsmopen_protocol.cpp:2264 rev exported[(nil)|37 ][DEBUG_GSMOPEN 2264 ][interface1][-1, 0, 0] sent data... (T)
2010-04-20 15:05:43.222518 [DEBUG] gsmopen_protocol.cpp:2290 rev exported[(nil)|37 ][DEBUG_GSMOPEN 2290 ][interface1][-1, 0, 0] sent (carriage return)
2010-04-20 15:05:45.720370 [ERR] gsmopen_protocol.cpp:696 rev exported[(nil)|37 ][ERRORA 696 ][interface1][-1, 0, 0] no response to AT
2010-04-20 15:05:45.720370 [ERR] mod_gsmopen.cpp:1907 rev exported[(nil)|37 ][ERRORA 1907 ][interface1][-1, 0, 0] gsmopen_serial_config failed
2010-04-20 15:05:45.720370 [ERR] mod_gsmopen.cpp:1908 rev exported[(nil)|37 ][ERRORA 1908 ][interface1][-1, 0, 0] STARTING interface_id=1 FAILED
2010-04-20 15:05:45.720370 [ERR] mod_gsmopen.cpp:3136 rev exported[(nil)|37 ][ERRORA 3136 ][interface1][-1, 0, 0] ALARM on interface interface1:
+OK
2010-04-20 15:05:45.720370 [CONSOLE] switch_loadable_module.c:900 Successfully Loaded [mod_gsmopen]
2010-04-20 15:05:45.720370 [NOTICE] switch_loadable_module.c:144 Adding Endpoint 'gsmopen'
2010-04-20 15:05:45.720370 [NOTICE] switch_loadable_module.c:272 Adding API Function 'gsm'
2010-04-20 15:05:45.720370 [NOTICE] switch_loadable_module.c:272 Adding API Function 'gsmopen'
2010-04-20 15:05:45.720370 [NOTICE] switch_loadable_module.c:272 Adding API Function 'gsmopen_boost_audio'
2010-04-20 15:05:45.720370 [NOTICE] switch_loadable_module.c:272 Adding API Function 'gsmopen_dump'
2010-04-20 15:05:45.720370 [NOTICE] switch_loadable_module.c:272 Adding API Function 'gsmopen_sendsms'
2010-04-20 15:05:45.720370 [NOTICE] switch_loadable_module.c:377 Adding Chat interface 'SMS'
Please guide me to solve this issue.
FreeSWITCH with GSMopen 4
Hi all,
Any help please!!!!
FS and gsm 5
hahaha, you're in a hurry?
your phone does not accept-reply to the at commands (as you can see in the log).
Please try to find with google how to use your phone as a modem from linux, and post that here (a link would be ok).
-giovanni
FreeSWITCH and GSM 6
Hi giovani,
Here is the output of minicom.
______
Welcome to minicom 2.3
OPTIONS: I18n
Compiled on Feb 24 2008, 16:35:15.
Port /dev/ttyACM0
Press CTRL-A Z for help on special keys
AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0
OK
AT
OK
______
He is the output of wvdial
______
wvdial
--> WvDial: Internet dialer version 1.60
--> Warning: inherited section [Modem0] does not exist in wvdial.conf
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CGDCONT=1,"IP","airtelgprs.com"
AT+CGDCONT=1,"IP","airtelgprs.com"
OK
--> Modem initialized.
--> Idle Seconds = 2000, disabling automatic reconnect.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
CONNECT
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Thu Apr 22 13:06:45 2010
--> Pid of pppd: 24269
_______
I referred the following URL,
http://tldp.org/HOWTO/Modem-HOWTO-4.html
From the above output, I feel that my mobile is detected as a modem by linux. I'm using debian lenny.
If it is not correct, can you please tell me how you have made your phone to detect as a modem, so that I can check with mine.
FS and GSM 7
what are the settings of minicom? (speed, parity, etc)?
FS and GSM 8
Hi,
Here is the thing
Speed - 115200
8 data bits
N No parity
1 one stop bit
fs and gsm 9
mmmm, they're okay too...
I've got a nokia e63, I'll test with that one, and I'll see if it make the same problem.
If I don't post here tomorrow, please write again, so I'll do ;)
-giovanni
fs and gsm 10
Hi giovani,
Any update on this!!