SIPml5

Home » Asterisk Users » SIPml5
Asterisk Users 2 Comments

Hi All – I am playing with SIPML5.

I was getting an error about wss…. I fixed that by doing :
cat privkey.pem > asterisk.pem cat fullchain.pem >> asterisk.pem with my letsencrypt certificate. and setting tlscertfile=/etc/letsencrypt/live/mypath/asterisk.pem

But now when I use the https://www.doubango.org/sipml5/call.htm and I click Login…

I get this error on asterisk /var/log/asterisk/messages
[Sep 27 14:58:08] NOTICE[46486] chan_sip.c: Registration from ‘”SIPMl5″< sip:jerry.geis@somewhere.com>‘ failed for ‘IP:37994’ – Wrong password

my sip.conf entry is this:
[jerry.geis@somewhere.com]
type=friend defaultname=jerry.geis@somewhere.com defaultuser=jerry.geis@somewhere.com secret=(matches that on the website page)
encryption=yes avpf=yes force_avpf=yes dtlsenable=yes dtlsverify=fingerprint dtlscertfile=/etc/letsencrypt/live/mypath/asterisk.pem dtmfmode=RFC2833
host=dynamic description=Test context=sipml5
qualify=yes rtptimeout`
rtpholdtimeout`
rtpkeepalive`
callerid=”Jerry.Geis”
qualify=no canreinvite=yes timezone=1
nat=force_rport,comedia disallow=all allow=ulaw allow=alaw allow=gsm

Not sure what I dont have that is not accespting the PW. I am using
18.6.0 and still on the OLD chan_sip.c (which is working fine for everything else).

Thanks

Jerry

2 thoughts on - SIPml5

  • I have my asterisk 18 working with https://www.doubango.org/sipml5/call.htm?svn%2#

    I then tried to take the 15 lines of javascript library API (below) and when it runs I get asterisk console message about “failed to authenticate”. I took ALL the same settings I was using in the above URL – and plugged into the javascript function below

    The console log says 403 forbidden.

    Is there a trick to get the API working ?

    Any pointers to share ? Thanks.

    Jerry

    SIPml.init(
    function(e){
    var stack = new SIPml.Stack({realm: ‘example.org’, impi: ‘bob’, impu: ‘sip:bob@example.org’, password: ‘mysecret’,
    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();
    }
    );

  • I have a machine that is completely NOT on the internet – closed network. Can sipml5 work there ? how ?
    It cannot use LetsEncrypt or anything. can self sign certs work ?
    IS there another way.

    Thanks

    Jerry