Author |
Post |
|
#1 Thu Dec 01, 2011 19:51, 157 months ago.
|
Member
Registered: Dec 2011
Location: Zelenograd, Russian Federation
|
FreeBSD 8.2: Name and model of a modem / phone: Huawei 173 Interface: USB
Sorry for my english.
I have connect usb modem Huawei 173 to my computer. I cand send and recieve sms.
But my qustion is:
Does exist method to define situation when phone call come to modem? And does exist method to get phone number when call coming to modem?
I don't need to answer to call, only get number and hang up.
I have next devices in my file system:
# ls -l /dev/ttyU* crw------- 1 root wheel 0, 131 1 дек 15:41 /dev/ttyU0.0 crw------- 1 root wheel 0, 132 1 дек 15:41 /dev/ttyU0.0.init crw------- 1 root wheel 0, 133 1 дек 15:41 /dev/ttyU0.0.lock crw------- 1 root wheel 0, 137 1 дек 15:41 /dev/ttyU0.1 crw------- 1 root wheel 0, 138 1 дек 15:41 /dev/ttyU0.1.init crw------- 1 root wheel 0, 139 1 дек 15:41 /dev/ttyU0.1.lock crw------- 1 root wheel 0, 143 1 дек 15:41 /dev/ttyU0.2 crw------- 1 root wheel 0, 144 1 дек 15:41 /dev/ttyU0.2.init crw------- 1 root wheel 0, 145 1 дек 15:41 /dev/ttyU0.2.lock
I am sorry, this question is not about smsd but if anybody knows something about solution please direct me to the right direction.
I can write small unix program if exists only non standart solution.
|
|
#2 Fri Dec 02, 2011 10:10, 157 months ago.
|
Member
Registered: Dec 2011
Location: Zelenograd, Russian Federation
Topic owner
|
|
|
#3 Sat Dec 03, 2011 23:26, 157 months ago.
|
Member
Registered: Dec 2011
Location: Zelenograd, Russian Federation
Topic owner
|
This is pert of my config: but nothing happens when a call comes to modem: - no files in /var/spool/sms/phonecall - no hangup - no execution of eventhandler What I can use to get reaction from modem when call is coming?
|
|
#4 Sun Dec 04, 2011 18:20, 157 months ago.
|
Member
Registered: Dec 2011
Location: Zelenograd, Russian Federation
Topic owner
|
When I try to use modem in Window with it Huawei program that program define when come incoming call.
Does exist some AT command for modem that modem start respond to incoming call?
|
|
#5 Sun Dec 04, 2011 22:59, 157 months ago.
|
Member
Registered: Dec 2011
Location: Zelenograd, Russian Federation
Topic owner
|
When incoming call come "RING" is in /dev/cuaU0.2 How I can say this fact to smsd in it config?
|
|
#6 Tue Dec 06, 2011 12:04, 157 months ago.
|
Member
Registered: Jun 2009
Location: Russian Federation
|
please try global and modem settings : "phonecalls" in smsd.conf
|
|
#7 Tue Dec 06, 2011 16:06, 157 months ago.
|
Member
Registered: Jun 2009
Location: Russian Federation
|
What is your version of smsd? « Last edit by VVV on Tue Dec 06, 2011 16:07, 157 months ago. »
|
|
#8 Tue Dec 06, 2011 18:44, 157 months ago.
|
Member
Registered: Dec 2011
Location: Zelenograd, Russian Federation
Topic owner
|
This is my config file: I use smstools-3.1.14: I have next devices: « Last edit by Vic on Tue Dec 06, 2011 18:48, 157 months ago. »
|
|
#9 Thu Dec 08, 2011 14:15, 157 months ago.
|
Member
Registered: Jun 2009
Location: Russian Federation
|
I think you can't use php script as eventhandler: eventhandler = /var/src/smsop.php 'smsdconf' Syntax Highlight powered by GeSHi As far as I know, bash script must be used here. For example such as in link : http://smstools3.kekekasvi.com/topic.php?id=299Please try to use bash script.
|
|
#10 Fri Dec 09, 2011 10:37, 157 months ago.
|
Member
Registered: Dec 2011
Location: Zelenograd, Russian Federation
Topic owner
|
My php script work perfectly with sms. It does not matter what type of script used. Now I would like to add parameter to config file and change sources of program to read messages from second port to define incoming call. « Last edit by Vic on Fri Dec 09, 2011 10:38, 157 months ago. »
|
|
#11 Fri Dec 09, 2011 15:26, 157 months ago.
|
Member
Registered: Jun 2009
Location: Russian Federation
|
What shows loglevel=7 ?
|