Failed to Authenticate

105 views
Skip to first unread message

Jerry Geis

unread,
Nov 8, 2021, 4:50:20 PM11/8/21
to discuss-doubango
I am getting this from my asterisk side:
[Nov  8 16:33:23] NOTICE[18067][C-00000001] chan_sip.c: Failed to authenticate device <sip:some_name>;tag=fekXr3sXIgX3p7ZifS0e for INVITE, code = -1

here is my code:
<SCRIPT src="https://MyServer/SIPml-api.mini.js"></SCRIPT> <video id='video-local' />        <video id='video-remote' />        <audio id='audio-remote' /><SCRIPT language="JavaScript" type="text/javascript" > SIPml.init(        function(e){        var stack =  new SIPml.Stack({realm: 'Myserver.com', impi: 'some_name', impu: 'sip:some...@MyServer.com', password: 'MyPW', websocket_proxy_url: 'wss://MyServer:8089/ws',          events_listener: { events: 'started', listener: function(e){                var callSession = stack.newSession('call-audiovideo', {                video_local: document.getElementById('video-local'),                           video_remote: document.getElementById('video-remote'),                         audio_remote: document.getElementById('audio-remote')                          });                      callSession.call('alice');                            }                 }            });            stack.start();            }        );</SCRIPT>

I have double check that the some_name and MyPW match.
Why is my test not connecting and happy ?
Thanks

Jerry
Reply all
Reply to author
Forward
0 new messages