I have the G400E card installed, I can log into asterisk and perform the test "gsm send sms 1 xxx "xxxx" " and receive it on my cell just fine. During installation I asked tty mode to be configured and can see in the extra-channels.conf that tty is set to "on". When I do dmesg I see:
opvxg4xx 0000:05:00.0: PCI INT A -> GSI 38 (level, low) -> IRQ 38
Found an OpenVox G400P: Version 1.1
card 0 opvxg4xx: slot 0 is Installed
card 0 opvxg4xx: slot 1 is Empty
card 0 opvxg4xx: slot 2 is Empty
card 0 opvxg4xx: slot 3 is Empty
opvxg4xx: card 0 slot 0 is ttymode(gsm0710)
opvxg4xx: card 0 Powering up all spans...
GSM tty install
I get this in asterisk:
*CLI> gsm show span 1
D-channel: 2
Status: Power on, Provisioned, Down, Active, Standard
Type: CPE
Manufacturer: SIMCOM INCORPORATED
Model Name: SIMCOM_SIM5215A
Model IMEI: 359769030753344
Revision: +CGMR: SIM5215A_V1.5
Network Name:
Network Status: Registered (Home network)
Signal Quality (0,31): -1
BER value (0,7): -1
SIM IMSI: 310410826420997
SIM SMS Center Number: +13123149810
PDD: 0
ASR: 0
ACD: 0
Last event: Detect module OK
State: NET NAME REQ
Last send AT: AT+COPS?\r\n\n
Last receive AT: \r\n+COPS: 0,0,"",2\r\n\r\nOK\r\n
When I do a directory listing of /dev, I do see ttyGSM0 is there
so I setup minicom to /dev/ttyGSM0 115200 8N1
I get the error "minicom: cannot open /dev/ttyGSM0: Operation not permitted"
Not to dispair, I install ppp to do the script outlined in the manual (ppp-on) and run the command:
pppd crtscts nodetach noauth usepeerdns noipdefault ipcp-accept-remote defaultroute /dev/ttyGSM0 115200 connect ppp-dial
Now I get a completely new error: "Failed to open /dev/ttyGSM0: Operation not permitted"
After 2 days of trying every possible combination of tests using multiple every type of solution I can find, I don't know where to start to connect to the G400E using anything but asterisk. It is great that it does work with asterisk, but it seems that asterisk is built more for wired PBX systems than for what we need which is to be able to send out regular SMS, MMS, with or without attachments. I need to be able to script in PHP / Bash / Python having the server calling people to confirm their appointment among other things and asterisk seems like the wrong starting point and want to interface directly with the card.
It seems we are using a fairly old version of Asterisk, not sure if that is why I can't retrieve any of the sms messages sent to the card, a log entry is made in the console that one was received, but there seems to be no way to view it. Maybe if we were using a newer version of Aterisk
wiki.asterisk.org/wiki/display/AST/SMS
I also looked into working directly with the http server that is built into asterisk on port 8088, turns out it is compiled into the main application and there is no source html you can edit to create an API.
Searching the Openvox forums for tty, ttyGSM0 turned up a few threads that were not helpful at all, hoping this thread can change that and not be just another "Prepare for remote access" where no solution is provided to the community.
I noticed playsms has some Openvox support, but googling for playsms G400E doesn't seem promising with 0 results (I guess this can be the first result on google).
Are there any other options than Asterisk for working with the G400E? Ultimately I would have imagined that Asterisk was communicating with the card over the tty serial interface and that any other software should be able to do the same, but maybe that is a mistake.