Mark a phone number then make a call

Hi everyone,

a have a SNOM phone in the office which has a web interface. I can use curl the send a URL to
the phone so the phone starts a call. I now have a cli script where I just have to insert the number.

Here’s the cli command:
./call number

Here’s the code inside the script:
curl http://IP-Phone/command.htm?number=$1&outgoing_uri=USER@DOMAIN

At $1 the number is inserted.

Is there a possibility to create a Automator process where I just need to mark a number on a
webpage for example, go into the context menu over a right mouse click and select a žcall" entry?

I’ve never used Automator for private or business issues before so I don’t have any experience with it.

Thanks in advance!

Best regards