AutoHotkey Community

It is currently May 26th, 2012, 10:20 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: August 23rd, 2005, 2:51 pm 
Offline

Joined: January 23rd, 2005, 11:38 am
Posts: 46
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" ;)

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)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 23rd, 2005, 3:28 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
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
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 23rd, 2005, 3:46 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
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
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 23rd, 2005, 3:59 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
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
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 23rd, 2005, 5:44 pm 
Offline

Joined: January 23rd, 2005, 11:38 am
Posts: 46
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)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 23rd, 2005, 5:59 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
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
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 23rd, 2005, 10:33 pm 
Offline

Joined: January 23rd, 2005, 11:38 am
Posts: 46
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)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 24th, 2005, 11:04 am 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 24th, 2005, 11:15 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
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
Image


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Cristi®, spg SCOTT and 12 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group