Error Sending Sms Message Dongle
Sign in Pricing Blog Support Search GitHub This repository Watch 25 Star 80 Fork 55 bg111/asterisk-chan-dongle Code Issues 117 Pull requests 4 Projects 0 Wiki Pulse Graphs New issue SMS #225 Open leobevi opened this Issue Feb 23, 2016 · 6 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 4 participants leobevi commented Feb 23, 2016 Hello, I'm developing a routine for sending sms, when sending an SMS is generated id, and after shown the return is sent, as the line below: dongleWestphalen*CLI> dongle sms dongle0 55419255xxxx teste send sms chan_dongle [dongle0] SMS queued for send with id 0xb662d1f0 -- [dongle0] Error sending SMS message 0xb662d1f0 this return it is saved in a log? Thanks for attention!!!!! att. Leonardo bpguin commented Mar 6, 2016 Try this: dongle sms dongle0 55419255xxxx "teste send sms chan_dongle" leobevi commented Mar 7, 2016 Hello Bpguin! thank you for the feedback! My question is when sent or not, there is a way to save the log. thanks again! bpguin commented Mar 8, 2016 You may find the log at /var/log/asterisk/full If your installation is standard without changing any logging config. leobevi commented Mar 9, 2016 bpguin again thank you! I did not find this folder on my system, I have installed asterisk on a cubietruck with Fedora system. [root@dongleWestphalen ~]# uname -a Linux dongleWestphalen 3.4.75+ #1 SMP PREEMPT Tue Dec 31 17:15:56 CST 2013 armv7l armv7l armv7l GNU/Linux I will try to install on another machine with CENTOS 7 to see if it solves. Grateful for your attention !!! julianobarbosa commented Mar 21, 2016 leobevi, Is possible you contact me ? julianomb@gmail.com Owner bg111 commented Sep 25, 2016 ma be read and edit logger.conf for log console messages Sign up for free to join this conversation on Git
test, 1440, yes) when try executing this asterisk cli writes -- Executing [58866696@send-sms:4] NoOp("Message/ast_msg_queue", "Body hhj") in new stack -- Executing [58866696@send-sms:5] Set("Message/ast_msg_queue", "SMSTO=sip:xxx") in new stack -- Executing [58866696@send-sms:6] DongleSendSMS("Message/ast_msg_queue", "dongle0, +37xxxx, test, 1440, yes") in new stack[2016-08-01 12:34:34] ERROR[1815][C-00000005]: app.c:113 app_send_sms_exec: [dongle0] Invalid destination number with id 0xb6601da4 what is https://github.com/bg111/asterisk-chan-dongle/issues/225 wrong. Where i can view log what is located under id 0xb6601da4? jersonjunior 2016-08-01 18:43:42 UTC #2 exten => _X.,1,Dial(Dongle/g0/${EXTEN},60,tT) Orexten => _X.,1,Dial(Dongle/dongle0/${EXTEN},60,tT) In CLI=> dongle sms dongle0 +556146363473673 Hello clayer 2016-08-01 22:21:34 UTC #3 jersonjunior: exten => _X.,1,Dial(Dongle/g0/${EXTEN},60,tT) Orexten => _X.,1,Dial(Dongle/dongle0/${EXTEN},60,tT) This two https://community.asterisk.org/t/send-sms-form-chan-dongle-module/67577 doesn`t works at all CLI were worked, but i need send sms from sip chat jersonjunior 2016-08-01 23:01:28 UTC #4 Use the shell or system function! exten => _X,1,System(sh asterisk -rx 'dongle sms dongle0 +556146363473673 Hello') Or exten => _X,1,Set(msg=${SHELL(sh asterisk -rx 'dongle sms dongle0 +556146363473673 Hello')}) clayer 2016-08-03 01:40:14 UTC #5 many thanks. Works now! one more question Asterisk have MessageSend application with syntax (to, from).In which format i must write from field that reciept will receive message form for example number 12345678? jersonjunior 2016-08-03 12:46:37 UTC #6 Use variables! exten => _X,1,System(sh asterisk -rx 'dongle sms dongle0 $telephone $msg ') Or exten => _X,1,Set(msg=${SHELL(sh asterisk -rx 'dongle sms dongle0 $telephone $msg ')}) Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled
or compatible USB modems and chan_dongle, providing both inbound and outbound calls on GSM/3G networks. Hardware requirements Chan_dongle is able to work with many different USB modems from Huawei, such as K3715, E169 / K3520, E155X, E175X, K3765 and others. Read the full compatibility list http://www.raspberry-asterisk.org/documentation/gsm-voip-gateway-with-chan_dongle/comment-page-1/ here. Before connecting the modem to your RPi, be sure to use a power supply rated http://stackoverflow.com/questions/23931777/java-error-sending-sms-message-with-gsm-modem at least 1A, better 1.2A or more. If your power supply does not provide enough current to power both the RPi and the modem, you can get problems booting the RPi, or calls to/from the GSM network fail with error "dongle disconnected". Alternatively a powered USB hub can be used as well. If you want to use 2 modems, an additional WiFi connection or other devices error sending that require considerable amount of current, a powered USB hub is absolutely required. In case you are using one of the older 256MB models with F1 and F2 still in place, you might want to consider bridging over F1 and F2, read more details here. This is however not required on the newer 512MB models, or when using a powered USB hub. Not all Huawei USB modems work out of the box, on some of them voice calling capability has to be error sending sms enabled first, some need to be upgraded with the latest firmware. Details on this can be found on the original chan_dongle wiki. Before inserting the SIM into your modem please deactivate the PIN on your card. This can be done with any phone. Insert the SIM into your phone, deactivate PIN and you're done. You can also use the Mobile Partner software - which comes with the modem itself - on a Windows computer to do this. Setup and configuration Once your modem has PIN deactivated, latest firmware and voice enabled, run this command: install-dongle This installer script installs chan_dongle.so, and creates an initial configuration. The script is provided with upgrade #11 (and improved further with upgrade #12). Once the installer has finished, connect your modem to the RPi. If it was connected already before, unplug it now and plug it in again. Some older modems still require usb_modeswitch to enable data/audio mode, for those a complete reboot of the RPi is recommended at this point. Then log into FreePBX, in Connectivity - Trunks click Add Custom Trunk. Provide a trunk name, set Outbound CallerID to the number of your SIM, and enter in the field Custom Dial String: dongle/dongle0/$OUTNUM$ Add an outbound route to use this trunk, as well as an incoming route. On the incoming route set DID Number to your SIM number, precisely matching the number you entered when running the install-dongle script. More details on how to setup inbound and outboun
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Java error sending sms message with gsm modem up vote 0 down vote favorite Hi there I am trying to send a sms message using Java with a GSM Modem I am learning from this URL: http://www.codeproject.com/Tips/492716/How-to-send-SMS-using-Java-with-a-HSDPA-Dongle Here is my code: import com.harshadura.gsm.smsdura.GsmModem; public class TestSMS { private static String port = "COM1"; //Modem Port. private static int bitRate = 9600; //this is also optional. leave as it is. private static String modemName = "ZTE"; //this is optional. private static String modemPin = "0000"; //Pin code if any have assigned to the modem. private static String SMSC = "+9477000003"; //Message Center Number ex. Mobitel public static void main(String[] args) throws Exception { GsmModem gsmModem = new GsmModem(); GsmModem.configModem(port, bitRate, modemName, modemPin, SMSC); gsmModem.Sender("+917350320106", "Test Message"); // (tp, msg) } } I have added the various libraries to the built path of my project: comm.jar commons-net-3.0.1.jar smsdura-1.0.jar RXTXcomm.jar However, I get this error when i run the project: Exception in thread main org.smslib.GatewayException: Comm library exception: java.lang.RuntimeException: javax.comm.NoSuchPortException Please help java gsm modem share|improve this question asked May 29 '14 at 11:00 user3631251 212 1 Can you access COM1 with hyperterminal and execute AT and see if you get an OK back? –aldridmc May 29 '14 at 11:16 How do you do that? –user3631251 May 29 '14 at 11:21 support.microsoft.com/kb/124890/EN-US should help you out with hyperterminal. After you are connected just type AT and see if OK comes back. –aldridmc May 29 '14 at 12:30 Without knowing any details about this gsm modem library, the code you have presented looks ok. Your next step should be to turn on debugging in the library (which it absolutely should support, otherwise it is a ex