[Spce-user] Web RTC error

Brian Quandt brian.quandt at gmail.com
Mon Jul 13 17:07:59 EDT 2015


Got it to work, on audio/video.

So think there was a bit of confusion, but thank-you so much for all who
helped point me in the right direction.

My notes on getting tryit.jssip.net to work, ie two clients using
tryit.jssip.net to use my own sip server from two clients using their own
browsers.

1) So far only tested under chrome (yosemite chrome 43.0.2357.132)

2) make sure you have set up a proper SSL cert (ie got one signed from
godaddy or the like), not sure you really need this for WS, but would
probably need it for WSS.   Namely, think the tryit.jssip.net doesn't have
a mode of "insecure" ssl usage... but I'm only guessing on that.  If you
roll your own jssip.net I bet there's an option in one of the javascript
calls to allow insecure... but I'm only guessing.

3) configure your own sip server (I just simply used the AMI image so
nicely provided by sipwise), by logging into your admin interface, ie
https://yourip:1443/user/login   administrator/yourpassword
a.  Add at least two subscribers (so they can talk to one another... they
can be two seperate 'custoemrs' or two subscribers of belonging to the same
customer.  I'm calling my users user1 and user2.
b.  Go into each subscriber -> detail -> preferences -> nat media control
flow
use_rtpproxy = Always with rtpproxy as ONLY ice canidate
transport_protocol = RTP/SAVPF encrypted RTP with RTCP feedback
all other params left to their defaults
c. go into domains -> yourdomain preferences -> nat media control flow
#A note, I'm not fully sure what all has to be set here, but Daniel kept
pointing at the transport_protocol, but think use_rtpproxy might also need
setting... at least this is what I have and its working for me
use_rtpproxy  = always with plain SDP
transport_protocol = rtp/avp plain rtp
all other params left to their defaults

4) on a chrome browser, each client opens tryit.jssip.net and the following
for each line upon opening the page
name:   user1
sip uri:   sip:user1 at mysipserverdnsorip
password:  user1spassword
ws uri:   ws://mysipserver:5060/ws

5) then simply enter "user1" or "user2" in the call box press the phone
button and it should work.


And that's about it.   Feel free to ask me if some of this is not clear.

Yours truly,
Brian


On Mon, Jul 13, 2015 at 12:51 PM, Brian Quandt <brian.quandt at gmail.com>
wrote:

> Still not getting this to work.   Tried settings subscribers
> nat/transport per Daniel's comments, same issue keeps happening.   I
> think something basic is wrong but can't seem to debug this.  But
> finally found the log which shows similar itesm to the failure message
> in the chrome console log.  BTW, both chromes are per Daniel's version
> he suggested.
>
> Here's the log from kamailo-proxy  (not invalid transport at end of log):
>
> Jul 13 19:38:14 ip-10-220-196-230 proxy[6589]: NOTICE: <script>: New
> request on proxy - M=REGISTER R=sip:sip.autodcp.com
> F=sip:quandt at sip.autodcp.com T=sip:quandt at sip.autodcp.com
> IP=157.254.210.19:39144 (127.0.0.1:5060) ID=rmut9j5l6ohar97q0pkn7r
> Jul 13 19:38:14 ip-10-220-196-230 proxy[6589]: NOTICE: <script>:
> Contacts successfully updated, expires in 600s - R=sip:sip.autodcp.com
> ID=rmut9j5l6ohar97q0pkn7r
> Jul 13 19:43:20 ip-10-220-196-230 proxy[6587]: NOTICE: <script>: New
> request on proxy - M=INVITE R=sip:depatie at sip.autodcp.com
> F=sip:quandt at sip.autodcp.com T=sip:depatie at sip.autodcp.com
> IP=157.254.210.19:39144 (127.0.0.1:5060) ID=6k65jhddqsofvlrlv3um
> Jul 13 19:43:20 ip-10-220-196-230 proxy[6587]: NOTICE: <script>:
> Authentication failed, no credentials - R=sip:depatie at sip.autodcp.com
> ID=6k65jhddqsofvlrlv3um
> Jul 13 19:43:20 ip-10-220-196-230 proxy[6588]: NOTICE: <script>: New
> request on proxy - M=INVITE R=sip:depatie at sip.autodcp.com
> F=sip:quandt at sip.autodcp.com T=sip:depatie at sip.autodcp.com
> IP=157.254.210.19:39144 (127.0.0.1:5060) ID=6k65jhddqsofvlrlv3um
> Jul 13 19:43:20 ip-10-220-196-230 proxy[6588]: NOTICE: <script>:
> User-Provided CLI 'quandt' taken from From-User -
> R=sip:depatie at sip.autodcp.com ID=6k65jhddqsofvlrlv3um
> Jul 13 19:43:20 ip-10-220-196-230 proxy[6588]: NOTICE: <script>:
> User-provided CLI 'quandt' rejected, using network-provided CLI
> '43991001' - R=sip:depatie at sip.autodcp.com ID=6k65jhddqsofvlrlv3um
> Jul 13 19:43:20 ip-10-220-196-230 proxy[6588]: NOTICE: <script>:
> Setting '43991001 at sip.autodcp.com' as initiating user-provided CLI -
> R=sip:depatie at sip.autodcp.com ID=6k65jhddqsofvlrlv3um
> Jul 13 19:43:20 ip-10-220-196-230 proxy[6588]: NOTICE: <script>:
> Setting '43991001 at sip.autodcp.com' as initiating network-provided CLI
> - R=sip:depatie at sip.autodcp.com ID=6k65jhddqsofvlrlv3um
> Jul 13 19:43:20 ip-10-220-196-230 proxy[6588]: NOTICE: <script>:
> Callee is local, uuid='a5af1d66-fe08-4133-9198-6a709bea91bc' -
> R=sip:depatie at sip.autodcp.com ID=6k65jhddqsofvlrlv3um
> Jul 13 19:43:20 ip-10-220-196-230 proxy[6588]: NOTICE: <script>:
> Setting acc source-leg for uuid
> 'b16a80fb-b06b-44ca-b6f8-2d17797bae6d':
> 'b16a80fb-b06b-44ca-b6f8-2d17797bae6d|quandt|sip.autodcp.com
> |43991001|||2|||0|call|157.254.210.19|1436816600.182590|||||||||||'
> - R=sip:97a3jcd5 at eb64qhi95507.invalid;transport=ws
> ID=6k65jhddqsofvlrlv3um
> Jul 13 19:43:20 ip-10-220-196-230 proxy[6588]: NOTICE: <script>:
> Setting acc destination-leg for uuid
> 'a5af1d66-fe08-4133-9198-6a709bea91bc':
> '0|||3|depatie|a5af1d66-fe08-4133-9198-6a709bea91bc|depatie|
> sip.autodcp.com|depatie|sip.autodcp.com|0|||||||||||'
> - R=sip:97a3jcd5 at eb64qhi95507.invalid;transport=ws
> ID=6k65jhddqsofvlrlv3um
> Jul 13 19:43:20 ip-10-220-196-230 proxy[6588]: NOTICE: <script>:
> Rewriting first user-provided CLI '43991001' to '0991001' -
> R=sip:97a3jcd5 at eb64qhi95507.invalid;transport=ws
> ID=6k65jhddqsofvlrlv3um
> Jul 13 19:43:20 ip-10-220-196-230 proxy[6588]: NOTICE: <script>:
> Rewriting first network-provided CLI '43991001' to '0991001' -
> R=sip:97a3jcd5 at eb64qhi95507.invalid;transport=ws
> ID=6k65jhddqsofvlrlv3um
> Jul 13 19:43:20 ip-10-220-196-230 proxy[6588]: NOTICE: <script>:
> Setting caller_cli_userprov/caller_domain_userprov
> '0991001 at sip.autodcp.com' for upn -
> R=sip:97a3jcd5 at eb64qhi95507.invalid;transport=ws
> ID=6k65jhddqsofvlrlv3um
> Jul 13 19:43:20 ip-10-220-196-230 proxy[6588]: NOTICE: <script>:
> Setting From to '<sip:0991001 at sip.autodcp.com>' -
> R=sip:97a3jcd5 at eb64qhi95507.invalid;transport=ws
> ID=6k65jhddqsofvlrlv3um
> Jul 13 19:43:20 ip-10-220-196-230 proxy[6588]: NOTICE: <script>:
> Setting caller_cli_netprov/caller_domain_netprov
> '0991001 at sip.autodcp.com' for npn -
> R=sip:97a3jcd5 at eb64qhi95507.invalid;transport=ws
> ID=6k65jhddqsofvlrlv3um
> Jul 13 19:43:20 ip-10-220-196-230 proxy[6588]: NOTICE: <script>:
> Setting PAI to '<sip:0991001 at sip.autodcp.com>' -
> R=sip:97a3jcd5 at eb64qhi95507.invalid;transport=ws
> ID=6k65jhddqsofvlrlv3um
> Jul 13 19:43:20 ip-10-220-196-230 proxy[6588]: NOTICE: <script>:
> Setting P-Called-Party-ID '<sip:97a3jcd5 at sip.autodcp.com>' -
> R=sip:97a3jcd5 at eb64qhi95507.invalid;transport=ws
> ID=6k65jhddqsofvlrlv3um
> Jul 13 19:43:20 ip-10-220-196-230 proxy[6588]: NOTICE: <script>:
> Appending P-D-URI
> 'sip:lb at 127.0.0.1;lr;received=sip:157.254.210.20:58091
> %3Btransport%3Dws;socket=sip:10.220.196.230:5061'
> - R=sip:97a3jcd5 at eb64qhi95507.invalid;transport=ws
> ID=6k65jhddqsofvlrlv3um
> Jul 13 19:43:20 ip-10-220-196-230 proxy[6588]: NOTICE: <script>:
> Forcing request via B2BUA 'sip:127.0.0.1:5080' -
> R=sip:97a3jcd5 at eb64qhi95507.invalid;transport=ws
> ID=6k65jhddqsofvlrlv3um
> Jul 13 19:43:20 ip-10-220-196-230 proxy[6588]: NOTICE: <script>:
> Request leaving server, D-URI='sip:127.0.0.1:5080' -
> R=sip:97a3jcd5 at eb64qhi95507.invalid;transport=ws
> ID=6k65jhddqsofvlrlv3um
> Jul 13 19:43:20 ip-10-220-196-230 proxy[6589]: NOTICE: <script>:
> NAT-Reply - S=100 - Connecting M=INVITE IP=157.254.210.19:39144
> (127.0.0.1:5080) ID=6k65jhddqsofvlrlv3um
> Jul 13 19:43:20 ip-10-220-196-230 proxy[6591]: NOTICE: <script>:
> NAT-Reply - S=180 - Ringing M=INVITE IP=157.254.210.19:39144
> (127.0.0.1:5080) ID=6k65jhddqsofvlrlv3um
> Jul 13 19:43:26 ip-10-220-196-230 proxy[6590]: NOTICE: <script>:
> NAT-Reply - S=488 - Not Acceptable Here M=INVITE
> IP=157.254.210.19:39144 (127.0.0.1:5080) ID=6k65jhddqsofvlrlv3um
> Jul 13 19:43:26 ip-10-220-196-230 proxy[6590]: NOTICE: <script>:
> Failure route for local call -
> R=sip:97a3jcd5 at eb64qhi95507.invalid;transport=ws
> ID=6k65jhddqsofvlrlv3um
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20150713/031c9107/attachment-0001.html>


More information about the Spce-user mailing list