I found the problem. For the webphone i just had to pass the called number not the full uri. So instead of 1111@server.com, just passing 1111 for the API_Call solved this. This is why i got 416 from asterisk, because passing the full uri resulted to something like this: 1111@server.com@server.com.