RB951Ui-2HnD and Anydata W140 -- track phone call

Hello.
There are RB951Ui-2HnD and Anydata W140.

We need to track the call to the modem’s SIM card and run the script on the router.

More precisely, when a call comes in, we need to transfer the caller’s number to a remote server with a script and decide something there depending on the number.

Tell me please

  1. Is this even possible?
  2. if possible, what steps should be taken to implement it