zabsalahid / serialport-gsm

SerialPort-GSM is a simplified plugin for communicating with gsm modems. (Primarily for sms) (Focused in PDU mode)
MIT License
90 stars 47 forks source link

Support calls with DTMF tones #26

Open Apollon77 opened 5 years ago

Apollon77 commented 5 years ago
2019-04-25 18:12:08,6, GSM1: I have to make a voice call to 4915153859448, with (3 times) DTMF 123
2019-04-25 18:12:08,7, GSM1: -> ATD+4915153859448;
2019-04-25 18:12:08,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:08,7, GSM1: <- OK
2019-04-25 18:12:09,7, GSM1: -> AT+CLCC
2019-04-25 18:12:09,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:09,7, GSM1: <- +CLCC: 1,0,2,0,0,"+4915153859448",145 OK
2019-04-25 18:12:10,7, GSM1: -> AT+CLCC
2019-04-25 18:12:10,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:10,7, GSM1: <- +CLCC: 1,0,2,0,0,"+4915153859448",145 OK
2019-04-25 18:12:11,7, GSM1: -> AT+CLCC
2019-04-25 18:12:11,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:11,7, GSM1: <- +CLCC: 1,0,2,0,0,"+4915153859448",145 OK
2019-04-25 18:12:11,7, GSM1: -> AT+CLCC
2019-04-25 18:12:11,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:12,7, GSM1: <- +CLCC: 1,0,2,0,0,"+4915153859448",145 OK
2019-04-25 18:12:12,7, GSM1: -> AT+CLCC
2019-04-25 18:12:12,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:12,7, GSM1: <- +CLCC: 1,0,3,0,0,"+4915153859448",145 OK
2019-04-25 18:12:13,7, GSM1: -> AT+CLCC
2019-04-25 18:12:13,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:13,7, GSM1: <- +CLCC: 1,0,3,0,0,"+4915153859448",145 OK
2019-04-25 18:12:14,7, GSM1: -> AT+CLCC
2019-04-25 18:12:14,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:14,7, GSM1: <- +CLCC: 1,0,3,0,0,"+4915153859448",145 OK
2019-04-25 18:12:14,7, GSM1: -> AT+CLCC
2019-04-25 18:12:14,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:15,7, GSM1: <- +CLCC: 1,0,3,0,0,"+4915153859448",145 OK
2019-04-25 18:12:15,7, GSM1: -> AT+CLCC
2019-04-25 18:12:15,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:16,7, GSM1: <- +CLCC: 1,0,3,0,0,"+4915153859448",145 OK
2019-04-25 18:12:16,7, GSM1: -> AT+CLCC
2019-04-25 18:12:16,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:16,7, GSM1: <- +CLCC: 1,0,3,0,0,"+4915153859448",145 OK
2019-04-25 18:12:17,7, GSM1: -> AT+CLCC
2019-04-25 18:12:17,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:17,7, GSM1: <- +CLCC: 1,0,0,0,0,"+4915153859448",145 OK
2019-04-25 18:12:21,7, GSM1: -> AT+VTS=1;+VTS=2;+VTS=3
2019-04-25 18:12:21,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:31,7, GSM1: put_command expected (OK)|(NO CARRIER)|(BUSY)|(NO ANSWER)|(ERROR)|(DELAYED), timeout occurred. 1.
2019-04-25 18:12:31,7, GSM1: <- COMMAND NOT SUPPORT
2019-04-25 18:12:34,7, GSM1: -> AT+VTS=1;+VTS=2;+VTS=3
2019-04-25 18:12:34,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:37,5, smsd: Moved file /var/spool/sms/outgoing/voicecalltest to /var/spool/sms/checked/vC3vLX
2019-04-25 18:12:44,7, GSM1: put_command expected (OK)|(NO CARRIER)|(BUSY)|(NO ANSWER)|(ERROR)|(DELAYED), timeout occurred. 2.
2019-04-25 18:12:44,7, GSM1: <- COMMAND NOT SUPPORT
2019-04-25 18:12:47,7, GSM1: -> AT+VTS=1;+VTS=2;+VTS=3
2019-04-25 18:12:47,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:58,7, GSM1: put_command expected (OK)|(NO CARRIER)|(BUSY)|(NO ANSWER)|(ERROR)|(DELAYED), timeout occurred. 3.
2019-04-25 18:12:58,7, GSM1: <- COMMAND NOT SUPPORT
2019-04-25 18:12:59,7, GSM1: -> AT+CHUP
2019-04-25 18:12:59,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:12:59,7, GSM1: <- OK

In my case the gsm modem is not supporting the DTMF tones, but for others this will work.

Proposal would be:

More for DTMF can also be found here: http://sgreg.fi/blog/article/mixing-the-sim800l-gsmgprs-module

Apollon77 commented 5 years ago

I would do that the next days (@zabsalahid can you asign it to me please?)

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Apollon77 commented 5 years ago

I will implement this

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Apollon77 commented 5 years ago

Still planned

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Apollon77 commented 4 years ago

Pong

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Apollon77 commented 4 years ago

Still

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Apollon77 commented 4 years ago

ping

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Apollon77 commented 4 years ago

soon

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Apollon77 commented 4 years ago

again

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Apollon77 commented 4 years ago

@zabsalahid please reopen and please flag that stalebot ignores it :-(

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Apollon77 commented 3 years ago

hu

ali-tafakkori commented 2 years ago

+1

gtcdevop commented 2 years ago

Probably should be implemented here/ Right ? https://github.com/zabsalahid/serialport-gsm/blob/4fc08fb8874b48e6b714631884efab3493c6c45a/lib/functions/modem.js#L955 +1 Also this is the documentation of sim800 https://www.elecrow.com/wiki/images/2/20/SIM800_Series_AT_Command_Manual_V1.09.pdf Page 333