CID Modifier using HTTP/HTTPS

Hi,

I am trying to Modify the CID by using the CID Modifier by making an HTTP request to my NodeRed server, my request is ````http://12.34.56.78:1880/calleridmodifier?caller=[CIDNUM]``` but I don’t it hitting my NodeRed server at all, while trying to monitor the call, this is what I see

Are you really returning a json file?

Vitalpbx 4:
image

Maybe nobody tested with your custom Port 1880?
So try port 80 for http and 443 for https.

My server is returning {"cidnumber":"8455551212"}

Same Results

It does not seem like Vital is actually making the request

For port 80 and 443 you leave the :80 and :443 away or did you write those ports?

I included the port numbers, and tried without them as well.
As I said, same result.

I set up Rebex Tiny Web Server (free) - Rebex.NET

I tried every single combination:

http://192.168.11.58:1180
https://192.168.11.58:11443
http://192.168.11.58
https://192.168.11.58

I see in the Rebex Tiny Web Server log a REQUEST everytime.

Vitalpbx 4 Version:
4.1.0-3
PBX Engine:18.22.0

Sorry, but this is the reason i asked you so many details.

And i even got this:

 -- Executing [s@inbound-route-2:1] NoOp("PJSIP/0049XXXXXX-0000000b", "CID Modifier: CID1") in new stack
    -- Executing [s@inbound-route-2:2] NoOp("PJSIP/0049XXXXXX-0000000b", "Source: api") in new stack
    -- Executing [s@inbound-route-2:3] NoOp("PJSIP/0049XXXXXX-0000000b", "Received CID Info: "" <017XXXXXXX>") in new stack
    -- Executing [s@inbound-route-2:4] Set("PJSIP/0049XXXXXX-0000000b", "SOURCE_RESULT=|8455551212") in new stack
    -- Executing [s@inbound-route-2:5] Set("PJSIP/0049XXXXXX-0000000b", "CIDNAME=") in new stack
    -- Executing [s@inbound-route-2:6] Set("PJSIP/0049XXXXXX-0000000b", "CIDNUMBER=8455551212") in new stack
    -- Executing [s@inbound-route-2:7] ExecIf("PJSIP/0049XXXXXX-0000000b", "0?Set(CALLERID(name)=):") in new stack
    -- Executing [s@inbound-route-2:8] ExecIf("PJSIP/0049XXXXXX-0000000b", "1?Set(CALLERID(num)=8455551212):") in new stack

{
    "cidnumber": "8455551212"
}

I just tried with webhook.site.
When I curl it from the terminal it’s working, but when I try the CID Modifier it doesn’t even make the request.

webhook.site is working fine here. Called and saw a request online everytime i called.

Send pictures of your CID modifier and your Inbound route.
Check if you are really calling the right inbound route.


When changing the Inbound Destination, it goes to the destination specified, so yes, it’s hitting the right inbound route.

Found the BUG.

Please set a TIMEOUT. Otherwise, it will not work.

Edit: webhook.site is cool, thanks.

1 Like

Thank you @mo10, this did the trick.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.