Fritz!Box 6490 does not make a call triggered by NodeRed

[
    {
        "id": "7541bd3e87f03df4",
        "type": "debug",
        "z": "7d2047e075cc0d79",
        "name": "debug 168",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 870,
        "y": 180,
        "wires": []
    },
    {
        "id": "18d89d3e97504c2a",
        "type": "inject",
        "z": "7d2047e075cc0d79",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 400,
        "y": 260,
        "wires": [
            [
                "28acff48057ee398"
            ]
        ]
    },
    {
        "id": "a14a1c64754709d7",
        "type": "fritzbox-in",
        "z": "7d2047e075cc0d79",
        "device": "160733b6c516c7b7",
        "name": "",
        "service": "urn:dslforum-org:service:X_VoIP:1",
        "action": "X_AVM-DE_DialNumber",
        "arguments": "{\n  \"NewX_AVM-DE_PhoneNumber\": \"value\"\n}",
        "x": 870,
        "y": 260,
        "wires": [
            []
        ]
    },
    {
        "id": "28acff48057ee398",
        "type": "function",
        "z": "7d2047e075cc0d79",
        "name": "function 19",
        "func": "msg.payload = {\n    \"NewX_AVM-DE_PhoneNumber\": \"0171xxxxxx\"\n}\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 630,
        "y": 260,
        "wires": [
            [
                "a14a1c64754709d7",
                "7541bd3e87f03df4"
            ]
        ]
    },
    {
        "id": "160733b6c516c7b7",
        "type": "fritzbox-config",
        "name": "FritzBox",
        "host": "192.168.0.1",
        "port": "49000",
        "ssl": false,
        "user": "Alois"
    }
]

Any idea what is wrong?

what is the fritzbox-in node? it's the one failing with an internal error - hard to say what the internal error is without knowing what node that is.

Node Ids are the same:

hence it must be the fritzbox-in node causing the problem

1 Like

You are using node-red-contrib-fritz? Be aware this node has not been updated for more than 5 years now. While most of the functions seem to work, others fail with no obvious reason.
I only use it to retrieve network information, not to initiate calls.

First ideas for troubleshooting:

Do your credentials entered in fritz-config node work? Is the specified user able to login using your password?

When using a Fritz!box node, are you able to retrieve the services (select your device, and click on the search icon next to "Service")?
Does this work as shown below?

1 Like

Hi,
I tested your flow with my fritz box 7490 Fritz os 7.61

first you have to use a dummy user name if your access is only with password to fritzbox,
second you have to enable dial aid in the fritz box
in German "Telefonie->Telefonbuch->Wählhilfe" -> "Wählhilfe verwenden" and select a phone

if this dial aid is not enabled I also get this error message "Action failed with error: Internal Server Error"

if I dial the number from Noder Red,
my Smartphone is ringing, the I hear the text "ihre verbindung wird gehalten" <-> "your connectoion is on hold ?"
then the telephone at home for which the dial help was configured is ringing,
if you accept the call from this phone at home, a connection is made between this phone and your smartphone.

Yes it works as shown in your pic!

Hi Tom,
I do not understand ".... use a dummy user .."
The only user on the FB is "Alois" + Password. If I do not use them in th FB access error msg is: "Action failed with error: Unauthorized"
According to you I've enabled "... Wählhilfe". I've tested it and FB makes a call to the selected internal phon.
Whatever I've tried it ends with "Action failed with error: Internal Server Error"

Could you pls send me your flow which works at your side?
b.r Alois

Because of dummy user,see the info in the first screenshot.
I think the access rights to your fritz-box are ok.
I don't know if this is necessary, but
I have my smartphone number also in the telephone book.
additional requirement
"noch eine Anforderung"
"Zugriff für Anwendungen zulassen" see last screenshot


[
    {
        "id": "fe5c8d627eae0bbf",
        "type": "tab",
        "label": "fritzbox",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "7541bd3e87f03df4",
        "type": "debug",
        "z": "fe5c8d627eae0bbf",
        "name": "debug 168",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 950,
        "y": 260,
        "wires": []
    },
    {
        "id": "18d89d3e97504c2a",
        "type": "inject",
        "z": "fe5c8d627eae0bbf",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 480,
        "y": 340,
        "wires": [
            [
                "28acff48057ee398"
            ]
        ]
    },
    {
        "id": "28acff48057ee398",
        "type": "function",
        "z": "fe5c8d627eae0bbf",
        "name": "function 19",
        "func": "msg.payload = {\n    \"NewX_AVM-DE_PhoneNumber\": \"0170???????\"\n}\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 710,
        "y": 340,
        "wires": [
            [
                "a14a1c64754709d7",
                "7541bd3e87f03df4"
            ]
        ]
    },
    {
        "id": "a14a1c64754709d7",
        "type": "fritzbox-in",
        "z": "fe5c8d627eae0bbf",
        "device": "160733b6c516c7b7",
        "name": "",
        "service": "urn:dslforum-org:service:X_VoIP:1",
        "action": "X_AVM-DE_DialNumber",
        "arguments": "{\n  \"NewX_AVM-DE_PhoneNumber\": \"value\"\n}",
        "x": 950,
        "y": 340,
        "wires": [
            [
                "cd41e4e60cd1a10b"
            ]
        ]
    },
    {
        "id": "cd41e4e60cd1a10b",
        "type": "debug",
        "z": "fe5c8d627eae0bbf",
        "name": "debug 30",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1140,
        "y": 340,
        "wires": []
    },
    {
        "id": "160733b6c516c7b7",
        "type": "fritzbox-config",
        "name": "FritzBox",
        "host": "192.168.70.99",
        "port": "49000",
        "ssl": false,
        "user": "fritz9041"
    },
    {
        "id": "d4617c89e87340ba",
        "type": "global-config",
        "env": [],
        "modules": {
            "node-red-contrib-fritz": "1.4.5"
        }
    }
]

Now it works!

  • I did not sent an object to the Fritz-node (unsing the funktion-node). Sent an String using the inject-node.
  • Did not activate the "Wahlhilfe"
    Thanks al lot!