SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Sun May 19, 2024 21:47
SMSTools3 Community » Help and support Bottom

[answered] Detect incoming phone number (caller id)

  This topic is locked

Page:  1

Author Post
Member
Registered:
Dec 2009
Location: Russia, Russian Federation
Operating system name and version: ubuntu 9.04
Version of smsd: 3.1.5
Smsd installed from: sources
Name and model of a modem : unknown. lsusb out: Bus 004 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Interface: USB

Hello. Help me please. How I can detect number (Caller ID) of an incoming voicecall? It is possible? Thanks.

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
When an incoming call is ringing, there is unexpceted_input reported in the log, for example:

2009-12-22 21:44:03,3, GSM1: Unexpected input: RING +CLIP: "+3584057XXXXX",145 RING +CLIP: "+3584057XXXXX",145

You can extract the ID from that kind of line.

If you use the modem setting phonecalls = yes, and this works with your device, you will get an incoming message file after a ringing has stopped. This is like:

From: 3584057XXXXX
From_TOA: 91 international, ISDN/telephone
Call_type: missed
Received: 09-12-22 21:44:25

CALL MISSED


Is this close to that you are searching?

Member
Registered:
Dec 2009
Location: Russia, Russian Federation
Topic owner
This is from log (level 7):
2009-12-23 00:57:38,7, GSM1: -> AT+CSQ
2009-12-23 00:57:38,7, GSM1: Command is sent, waiting for the answer
2009-12-23 00:57:38,7, GSM1: <- AT+CSQ +CSQ: 20,0 OK RING
2009-12-23 00:57:38,6, GSM1: Checking if Modem is registered to the network
2009-12-23 00:57:39,7, GSM1: -> AT+CREG?
2009-12-23 00:57:39,7, GSM1: Command is sent, waiting for the answer
2009-12-23 00:57:39,7, GSM1: <- AT+CREG? +CREG: 0,1 OK
2009-12-23 00:57:39,6, GSM1: Modem is registered to the network
2009-12-23 00:57:39,6, GSM1: Selecting PDU mode
2009-12-23 00:57:39,7, GSM1: -> AT+CMGF=0
2009-12-23 00:57:39,7, GSM1: Command is sent, waiting for the answer
2009-12-23 00:57:39,7, GSM1: <- AT+CMGF=0 OK
2009-12-23 00:57:39,6, GSM1: Checking memory size
2009-12-23 00:57:40,7, GSM1: -> AT+CPMS?
2009-12-23 00:57:40,7, GSM1: Command is sent, waiting for the answer
2009-12-23 00:57:40,7, GSM1: <- AT+CPMS? +CPMS: "SM",0,30,"SM",0,30 OK
2009-12-23 00:57:40,6, GSM1: Used memory is 0 of 30
2009-12-23 00:57:40,6, GSM1: No SMS received
2009-12-23 00:57:50,6, GSM1: Checking device for incoming SMS
2009-12-23 00:57:50,6, GSM1: Checking if modem is ready
2009-12-23 00:57:50,3, GSM1: Unexpected input: RING RING RING RING
2009-12-23 00:57:50,7, GSM1: -> AT
2009-12-23 00:57:50,7, GSM1: Command is sent, waiting for the answer
2009-12-23 00:57:50,7, GSM1: <- AT OK
2009-12-23 00:57:50,6, GSM1: Pre-initializing modem
2009-12-23 00:57:51,7, GSM1: -> ATE0+CMEE=1

or loglevel 5:

2009-12-23 01:05:23,3, GSM1: Unexpected input: RING
2009-12-23 01:05:34,3, GSM1: Unexpected input: RING +WIND: 6,1

And option "phonecalls = yes" not work. Why? May be I should upgrade version of sms server tools?

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
evgen-y2k wrote
And option "phonecalls = yes" not work. Why? May be I should upgrade version of sms server tools?

It looks like you should "upgrade" or change your modem or phone device :(. PL2303 based USB-Serial adapter is okay, but your GSM device is somehow limited.

The latest version of smsd (3.1.6) has some changes, but for you there is nothing which will help you with phonecalls. My log entry and message was taken with iTegno 3000 which is a Wavecom based device. If you like this kind of functionality, you could consider to get some device based on the Wavecom chipset.

While reading phonecalls, there should be all communication presented in the log file, including all possible errors. You could show the part of a log including this communication here, but I assume that it does not help as you need a better GSM device.

Member
Registered:
Dec 2009
Location: Russia, Russian Federation
Topic owner
Hi! I have solved problem. Change of the version on 3.1.6 has helped :)
I use the modem setting "phonecalls = yes" and have incoming message:

From: 79505244xxx
From_TOA: 91 international, ISDN/telephone
Call_type: missed
Received: 09-12-23 11:45:54

CALL MISSED

The following question: how I can accept DTMF from the modem?
I wish to make callback-VoIP service for my family :)

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
evgen-y2k wrote
Change of the version on 3.1.6 has helped :)

Great, but as far as I remember, there was no that kind of change in the code ;).

evgen-y2k wrote
The following question: how I can accept DTMF from the modem?
I wish to make callback-VoIP service for my family :)

This is not possible without audio hardware and connections.

  This topic is locked

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.