AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Send a phone number to FritzBoxFon(AVM)

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Andreas Borutta



Joined: 23 Jan 2005
Posts: 47

PostPosted: Tue Aug 23, 2005 2:51 pm    Post subject: Send a phone number to FritzBoxFon(AVM) Reply with quote

Hi,

I like to suggest a function which may be interesting for many users of voice-over-ip telephony.

Usually a phone number has to be dialed on your phone, which is sent then to the FritzBoxFon from AVM.

It would be helpful, if one could select a number in any application, click right and have the option "Send to FritzBoxFon".

After this your own phone should ring and you should be informed with something like "Resitance is futile, the number will be dialed now" Wink

I'm not a programmer, but may be one of you likes my suggest.

For Outlook there is still a macro.
http://www.nalt.de/stuff/fbdial.zip
Eventually this could be useful.
_________________
Andreas

http://borumat.de/autohotkey-autotexte-und-makros-tipps (german)
http://borumat.de/thunderbird-email-tipps (german)
http://borumat.de/firefox-browser-tipps (german)
Back to top
View user's profile Send private message
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Tue Aug 23, 2005 3:28 pm    Post subject: Reply with quote

Nice idea,

But it has some unknown risks.
It needs you to telnet to your FritzBox, kill a process and start it newly without any parameters
Quote:
/usr/bin/killall telefon
/usr/bin/telefon > /dev/null


Even the writer of that Outlook makro states that he doesn't know any sideeffects.

The rest, I assume could be done with putty or any other network client.

Unfortunately I'm not familiar with VB that I can easily translate the makro to a AHK script. I'm still digging for the command that is being send to port 1011 of the FritzBox.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Tue Aug 23, 2005 3:46 pm    Post subject: Reply with quote

So far I found that the makro uses a TCP connection via "wsock32" to send the number
Code:
tcp.SendData ("atd" & code & Chr(13) & Chr(10))
where "code" is the telephone number.

This string is then converted to ASCII Numbers.
Code:
Public Function SendData(ByVal strData As String) As Boolean
    Dim WSAResult As Long, i As Long, l As Long
     
    l = Len(strData)
    ReDim Buff(l + 1) As Byte
   
    For i = 1 To l
        Buff(i - 1) = Asc(Mid(strData, i, 1))
    Next
    Buff(l) = 0

    WSAResult = send(mlngSocket, Buff(0), l, 0)
    If WSAResult = SOCKET_ERROR Then
        SetLastErrorCode "Error en SendData::send"
        SendData = False
    Else
        SendData = True
    End If
End Function
and sends it (I guess that the "send" command is a public function of winsock32)
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Tue Aug 23, 2005 3:59 pm    Post subject: Reply with quote

I need someone to help me with this. Someone who has knowledge of network commands. How could I send the command
Code:
"atd" & code & Chr(13) & Chr(10)
to the fritzbox?

I guess, AHK has to use putty a make a connection to the IP address of the fritzbox to the specific port. But how does AHK/Putty send the command?
Or does AHK have to use DLLCALLs? Can Putty connect to that port anyway?
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Andreas Borutta



Joined: 23 Jan 2005
Posts: 47

PostPosted: Tue Aug 23, 2005 5:44 pm    Post subject: Reply with quote

Quote:
Nice idea

Thanks.

Quote:
But it has some unknown risks.
It needs you to telnet to your FritzBox, kill a process and start it newly without any parameters

Which consequences has it for the user?
_________________
Andreas

http://borumat.de/autohotkey-autotexte-und-makros-tipps (german)
http://borumat.de/thunderbird-email-tipps (german)
http://borumat.de/firefox-browser-tipps (german)
Back to top
View user's profile Send private message
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Tue Aug 23, 2005 5:59 pm    Post subject: Reply with quote

Andreas Borutta wrote:
Quote:
But it has some unknown risks.
It needs you to telnet to your FritzBox, kill a process and start it newly without any parameters

Which consequences has it for the user?
Who knows?
Can you tell me what happens if you start the service telefon without any parameter? Or what doesn't work if you change the service?

As the author of the macro states normally the service is only available locally. Without the parameter it can be reached by LAN. Will this result in a security leak? I do not know.

Maybe you can ask AVM to give some info.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Andreas Borutta



Joined: 23 Jan 2005
Posts: 47

PostPosted: Tue Aug 23, 2005 10:33 pm    Post subject: Reply with quote

Hi Toralf,

I don't know anything about the technical background.

To ask AVM about technical details therefor I'm not the right person.

But I sent AVM a mail and asked if they will offer a tool which can do what I suggested. But I still do not have a response.

If I get one I will report about it here.
_________________
Andreas

http://borumat.de/autohotkey-autotexte-und-makros-tipps (german)
http://borumat.de/thunderbird-email-tipps (german)
http://borumat.de/firefox-browser-tipps (german)
Back to top
View user's profile Send private message
Guest






PostPosted: Wed Aug 24, 2005 11:04 am    Post subject: Reply with quote

Andreas Borutta wrote:

But I sent AVM a mail and asked if they will offer a tool which can do what I suggested. But I still do not have a response.

If I get one I will report about it here.


The answer:
Quote:
Die FRITZ!Box Fon (WLAN) stellt keine für einen der angeschlossenen PCs
nutzbare TAPI-Schnittstelle zur Verfügung. Das Anwählen einer Rufnummer
über den PC ist daher leider nicht möglich.

Ich habe Ihre Anfrage jedoch soeben als Erweiterungsvorschlag intern an die
zuständige Produktbetreuung weitergeleitet. Ob unf ggf. wann jedoch in
welcher Form eine Umsetzung wird erfolgen können, kann ich Ihnen zur Zeit
allerdings leider nicht mitteilen.
Back to top
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Wed Aug 24, 2005 11:15 am    Post subject: Reply with quote

Have you mentioned to them that there is a Outlook macro that does the job?
Have they made a comment on what the service telefon does and what happens if started without parameter? Will this be a security leak? Will the waranty be damaged?
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group