SIP phone from web

Status
Not open for further replies.

voipdev

Estimable
Feb 21, 2014
2
0
4,510
I am trying to add voip call capability into our website, so the visitors can call us for free if they have a headset. Finally i have managed to setup asterisk and found an sdk which can be used without any intermediary media server. I have some web development experience but i know nothing about voip. With the mizutech sip webphone i am doing the followings via javascript:
wpone.API_Register(server,username,password);
wpone.API_Call(extension);
Then I got a 416 error back from asterisk. What this error means? Is there any sip error codes?
I don't even understand what the API_Register does.
Some hints would be very appreciated.

Thanks
 

voipdev

Estimable
Feb 21, 2014
2
0
4,510
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.
 
Status
Not open for further replies.