paviro / MMM-FRITZ-Box-Callmonitor

This an extension for the MagicMirror. It provides a callmonitor for FRITZ!Box users alerting them about incoming calls.
28 stars 22 forks source link

Outgoing calls shown in the list (with my own number) #37

Open hildwin opened 4 years ago

hildwin commented 4 years ago

If I make a call, my own number showed up in the list of recent calls.

How can I change this? I'd prefer to see the called number on the list or incoming calls only. Any hint is appreciated!

mkrause4 commented 4 years ago

If I make a call, my own number showed up in the list of recent calls.

How can I change this? I'd prefer to see the called number on the list or incoming calls only. Any hint is appreciated!

I have the same problem.

wilzon666 commented 3 years ago

If I make a call, my own number showed up in the list of recent calls.

How can I change this? I'd prefer to see the called number on the list or incoming calls only. Any hint is appreciated!

Me too. Any ideas?

SARCux commented 3 years ago

If I make a call, my own number showed up in the list of recent calls. How can I change this? I'd prefer to see the called number on the list or incoming calls only. Any hint is appreciated!

Me too

PieBa commented 3 years ago

For me it works as expected:

If I initiate a call

is shown in the recent calls list.

Could you kindly provide some more details?

PieBa commented 3 years ago

You could do a test if you

nnn.nnn.nnn.nnn is the ip-address of your FritzBox as provided in the Magic Mirror's config file yourPassword is the password as provided in the Magic Mirror's config file

-u yourUserName only required if you provide a username in you config file.

The result should be xml-data which contains the recent calls of your FritzBox. The tag "Type" indicates if calls are incoming (1) or outgoing (3). If you find "Type" 3 the element"Called" should contain the number you called, which should be shown in the recent calls list. If the element "Name" is filled, this name should be shown in the list instead of the number.

Please let me know, if this work for you.

wilzon666 commented 3 years ago

You could do a test if you

  • log on to your magicMirror device
  • change into the /modules/MMM-FRITZ-Box-Callmonitor directory
  • execute this command: python fritz_access.py -i nnn.nnn.nnn.nnn -u yourUserName -p yourPassword --calls-only

nnn.nnn.nnn.nnn is the ip-address of your FritzBox as provided in the Magic Mirror's config file yourPassword is the password as provided in the Magic Mirror's config file

-u yourUserName only required if you provide a username in you config file.

The result should be xml-data which contains the recent calls of your FritzBox. The tag "Type" indicates if calls are incoming (1) or outgoing (3). If you find "Type" 3 the element"Called" should contain the number you called, which should be shown in the recent calls list. If the element "Name" is filled, this name should be shown in the list instead of the number.

Please let me know, if this work for you.

Thanks for your reply. Your test ist working correct. I am getting the xml-data as you described. I will try to reinstall / clean install everything tomorrow and see if that gets me somewhere.

Update: I reinstalled everything and now incoming calls are displayed correctly but still no recent calls in my list. I will get to the bottom of it.

Update 2:

incoming calls are displayed correctly as an alert - no recent call list. It is displaying "no recent calls"

but I just called sombody, here is proof, gathered with the python.fritz_acess.py command from above.

_**{"content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?> <root> <!-- days:-1 --> <!-- max:999 --> <!-- id:nil -- > <!-- timestamp:nil --> <!-- calls:400 --> <timestamp>1570298400</timestamp> <Call><Id>598</Id><Type>3</Type><C alled>083xxxxx</Called><Caller>SIP: 914xxxx</Caller><CallerNumber>914xxx</CallerNumber><Name></Name><Numbertyp e>sip</Numbertype><Device>FamilyPhone</Device><Port>10</Port><Date>25.11.20 12:22</Date><Duration>0:06</Duration ><Count></Count><Path /**_

This is what the MMM-FRITZ-Box-Callmonitor part of my config.js looks like:

            {
            module: 'MMM-FRITZ-Box-Callmonitor',
            position: 'top_right',  // This can be any of the regions. Best results in left or right regions.
            header: "Recent calls", // This is optional
            config: {
                    password: "xxxxxxx",
                    username: "xxxxxxxx",        // See 'Configuration options' for more information.
                    deviceFilter: "BueroPhone",
                    }
            },

FritzIp is the standard one, so no need to put that option into the config.js in my opinion.

Update 3: This Fix did the trick. Everything is working now. Hope that helps!

https://github.com/paviro/MMM-FRITZ-Box-Callmonitor/pull/35/commits/3f23f12d72d751567df67aebe33e1263be26bf81