Hi Lorenzo thanks for your response.
Since im using asterisk 13 with PJSIP sip Stack from your patch Matt jordan and Josua colp write passthrough oficial support for VP8 and for Opus in Asterisk 12 and adapt this to PJSIP sip Stack and chan_sip properly.
Now sip over websockets code is out of date to support all webrtc features and also asterisk reject all VP8 sdp offer dont pay attention to that offer ,audio work properly but video is another story.
So thats why i look for janus gateway since VP8 has better behavior over udp and PJSIP sip Stack in asterisk 13.
- coming back to my test on janus i change the line you tell me (thank you for that ) and now siptest example is offering video but know client doesn't play audio an video :s. asterisk cli seems to process both media
-- Added contact 'sip:gose...@192.168.88.18:40080;transport=udp' to AOR 'goseeped' with expiration of 3600 seconds
-- Added contact 'sip:na...@192.168.88.18:44101;transport=udp' to AOR 'nathy' with expiration of 3600 seconds
-- Executing [nathy@local:1] Dial("PJSIP/goseeped-00000000", "PJSIP/nathy") in new stack
-- Called PJSIP/nathy
-- PJSIP/nathy-00000001 is ringing
-- PJSIP/nathy-00000001 answered PJSIP/goseeped-00000000
-- Channel PJSIP/goseeped-00000000 joined 'simple_bridge' basic-bridge <58a716bc-6fea-43fc-9ce9-b93407b3815f>
-- Channel PJSIP/nathy-00000001 joined 'simple_bridge' basic-bridge <58a716bc-6fea-43fc-9ce9-b93407b3815f>
-- Channel PJSIP/goseeped-00000000 left 'simple_bridge' basic-bridge <58a716bc-6fea-43fc-9ce9-b93407b3815f>
== Spawn extension (local, nathy, 1) exited non-zero on 'PJSIP/goseeped-00000000'
-- Channel PJSIP/nathy-00000001 left 'simple_bridge' basic-bridge <58a716bc-6fea-43fc-9ce9-b93407b3815f>
janus show two WARINING when i made registration and show two ERROS on SDP offers. ,i left a blank line so you can see the error
Creating new session: 4216800089
Creating new handle in session 4216800089: 2908946926
[2908946926] There's a message for JANUS SIP plugin
outbound(0x7f541c002d40): FAILED to validate <sip:gose...@192.168.88.18:40080;transport=udp>
outbound(0x7f541c002d40): FAILED with 200 OK
Creating new session: 1246133390
Creating new handle in session 1246133390: 531105914
[531105914] There's a message for JANUS SIP plugin
outbound(0x7f541c0082d0): FAILED to validate <sip:na...@192.168.88.18:44101;transport=udp>
outbound(0x7f541c0082d0): FAILED with 200 OK
[2908946926] There's a message for JANUS SIP plugin
[2908946926] Creating ICE agent (controlled mode)
[2908946926] ICE send thread started...
candidate:2007661526 1 tcp 1518280447 192.168.88.190 0 typ host tcptype active generation 0
2007661526 1 tcp 1518280447 192.168.88.190 0 typ host tcptype active generation 0
[WARN] [2908946926] Unsupported transport tcp!
candidate:2007661526 2 tcp 1518280447 192.168.88.190 0 typ host tcptype active generation 0
2007661526 2 tcp 1518280447 192.168.88.190 0 typ host tcptype active generation 0
candidate:2007661526 1 tcp 1518280447 192.168.88.190 0 typ host tcptype active generation 0
2007661526 1 tcp 1518280447 192.168.88.190 0 typ host tcptype active generation 0
[WARN] [2908946926] Unsupported transport tcp!
candidate:959022886 1 udp
2122260223 192.168.88.190 52058 typ host generation 0
959022886 1 udp
2122260223 192.168.88.190 52058 typ host generation 0
[WARN] [2908946926] Queueing trickle candidate, status is not START yet
candidate:2007661526 2 tcp 1518280447 192.168.88.190 0 typ host tcptype active generation 0
2007661526 2 tcp 1518280447 192.168.88.190 0 typ host tcptype active generation 0
candidate:959022886 2 udp
2122260223 192.168.88.190 52058 typ host generation 0
959022886 2 udp
2122260223 192.168.88.190 52058 typ host generation 0
candidate:959022886 1 udp
2122260223 192.168.88.190 52058 typ host generation 0
959022886 1 udp
2122260223 192.168.88.190 52058 typ host generation 0
[WARN] [2908946926] Queueing trickle candidate, status is not START yet
candidate:959022886 2 udp
2122260223 192.168.88.190 52058 typ host generation 0
959022886 2 udp
2122260223 192.168.88.190 52058 typ host generation 0
candidate:4121213109 1 udp 1686052607 190.207.75.74 52058 typ srflx raddr 192.168.88.190 rport 52058 generation 0
4121213109 1 udp 1686052607 190.207.75.74 52058 typ srflx raddr 192.168.88.190 rport 52058 generation 0
[WARN] [2908946926] Queueing trickle candidate, status is not START yet
candidate:4121213109 2 udp 1686052607 190.207.75.74 52058 typ srflx raddr 192.168.88.190 rport 52058 generation 0
4121213109 2 udp 1686052607 190.207.75.74 52058 typ srflx raddr 192.168.88.190 rport 52058 generation 0
candidate:4121213109 1 udp 1686052607 190.207.75.74 52058 typ srflx raddr 192.168.88.190 rport 52058 generation 0
4121213109 1 udp 1686052607 190.207.75.74 52058 typ srflx raddr 192.168.88.190 rport 52058 generation 0
[WARN] [2908946926] Queueing trickle candidate, status is not START yet
candidate:4121213109 2 udp 1686052607 190.207.75.74 52058 typ srflx raddr 192.168.88.190 rport 52058 generation 0
4121213109 2 udp 1686052607 190.207.75.74 52058 typ srflx raddr 192.168.88.190 rport 52058 generation 0
No more remote candidates for handle 2908946926!
[531105914] Creating ICE agent (controlling mode)
[531105914] ICE send thread started...
[531105914] There's a message for JANUS SIP plugin
[531105914] -- ICE Trickling is supported by the browser, waiting for remote candidates...
candidate:2652000043 1 udp
2122260223 192.168.88.166 48258 typ host generation 0
2652000043 1 udp
2122260223 192.168.88.166 48258 typ host generation 0
candidate:2652000043 1 udp
2122260223 192.168.88.166 48258 typ host generation 0
2652000043 1 udp
2122260223 192.168.88.166 48258 typ host generation 0
[2908946926] Done! Ready to setup remote candidates and send connectivity checks...
No more remote candidates for handle 531105914!
[531105914] The DTLS handshake has been completed
WebRTC media is now available
[ERR] [ice.c:janus_ice_send_thread:1582:] [2908946926] audio stream component has no valid SRTP session (yet?)
[2908946926] The DTLS handshake has been completed
WebRTC media is now available
No WebRTC media anymore
[WARN] Data available but Data Channels support disabled...
[2908946926] ICE send thread leaving...
[2908946926] WebRTC resources freed
No WebRTC media anymore
No WebRTC media anymore
[531105914] WebRTC resources freed
No WebRTC media anymore
[531105914] ICE send thread leaving...
[2908946926] There's a message for JANUS SIP plugin
[ERR] [plugins/janus_sip.c:janus_sip_handler:1287:] Wrong state (not in a call? state=2)
[2908946926] WebRTC resources freed
[531105914] WebRTC resources freed
If you need more info or debugs just let me know.