Before off all, thank you for your very quickly answer.
You were right: setting up contact_uri and switch on preloaded route in jssip the client register on asterisk, without any other change on oversip (as you know, in the server.rb the setting for OverSIP::Modules::OutboundMangling
are already present).
Now the problems are that asterisk fail on place a call from the web and when receive a call from other sip phone to web phone.
When I place a call from web, on the asterisk log:
[2018-10-22 16:30:48] WARNING[23470] chan_sip.c: Too many SDP lines. Ignoring.
[2018-10-22 16:30:48] WARNING[23470] chan_sip.c: Too many SDP lines. Ignoring.
[2018-10-22 16:30:48] WARNING[23470] chan_sip.c: Unsupported SDP media type in offer: audio 41410 UDP/TLS/RTP/SAVPF 109 9 0 8
[2018-10-22 16:30:49] WARNING[23470] chan_sip.c: Unsupported SDP media type in offer: video 35035 UDP/TLS/RTP/SAVPF 120 126 97
[2018-10-22 16:31:45] WARNING[23470] chan_sip.c: Too many SDP lines. Ignoring.
[2018-10-22 16:31:46] WARNING[23470] chan_sip.c: Too many SDP lines. Ignoring.
[2018-10-22 16:31:46] WARNING[23470] chan_sip.c: Unsupported SDP media type in offer: audio 40959 UDP/TLS/RTP/SAVPF 109 9 0 8
[2018-10-22 16:31:46] WARNING[23470] chan_sip.c: Unsupported SDP media type in offer: video 39278 UDP/TLS/RTP/SAVPF 120 126 97
And, when I call the web phone from another sip phone:
[2018-10-22 17:22:42] WARNING[25879] file.c: Failed to write frame
[2018-10-22 17:23:09] WARNING[30191] file.c: Failed to write frame
The oversip log (place a call):
Oct 22 16:31:34 vss151 oversip[1632]: INFO: <SipEvents> [user] OPTIONS from sip:aste...@10.0.60.130 (UA: Asterisk PBX) to sip:2...@10.0.60.130;ov-ob=3909e93776 via UDP 10.0.60.130 : 5060
Oct 22 16:31:34 vss151 oversip[1632]: DEBUG: <OutboundMangling module> incoming Outbound flow token extracted from ;ov-ob param in RURI for SIP Request 063ebec7
Oct 22 16:31:34 vss151 oversip[1632]: INFO: <SipEvents> [user] routing initial request to an Outbound client
Oct 22 16:31:34 vss151 oversip[1632]: DEBUG: <WsFraming> sending text frame: payload_length=635
Oct 22 16:31:34 vss151 oversip[1632]: DEBUG: <WsFraming> received text frame: FIN=true, RSV1-3=false/false/false, payload_length=550
Oct 22 16:31:34 vss151 oversip[1632]: DEBUG: <WsSipApp> received WS message: type=text, length=550
Oct 22 16:31:34 vss151 oversip[1632]: DEBUG: <Proxy proxy_to_users 063ebec7> received response 200
Oct 22 16:31:34 vss151 oversip[1632]: INFO: <SipEvents> [user] incoming Outbound on_success_response: 200 'OK'
Oct 22 16:31:34 vss151 oversip[1632]: DEBUG: <SIP Request 063ebec7> forwarding response 200 "OK"
Oct 22 16:31:45 vss151 oversip[1632]: DEBUG: <WsFraming> received text frame: FIN=true, RSV1-3=false/false/false, payload_length=4094
Oct 22 16:31:45 vss151 oversip[1632]: DEBUG: <WsSipApp> received WS message: type=text, length=4094
Oct 22 16:31:45 vss151 oversip[1632]: INFO: <SipEvents> [user] INVITE from sip:62...@10.0.60.130 (UA: JsSIP 3.2.15) to sip:62...@10.0.60.130 via WS 10.0.60.113 : 40377
Oct 22 16:31:45 vss151 oversip[1632]: DEBUG: <SIP Request 9094443> applying outgoing Outbound support
Oct 22 16:31:45 vss151 oversip[1632]: DEBUG: <UserAssertion module> user asserted, adding P-Asserted-Identity for SIP Request 9094443
Oct 22 16:31:45 vss151 oversip[1632]: DEBUG: <SIP Request 9094443> replying 100 "Trying"
Oct 22 16:31:45 vss151 oversip[1632]: DEBUG: <WsFraming> sending text frame: payload_length=242
Oct 22 16:31:45 vss151 oversip[1632]: DEBUG: <Proxy proxy_out 9094443> trying single target: udp:10.0.60.130:5060
Oct 22 16:31:45 vss151 oversip[1632]: DEBUG: <ICT 41dc5e437ede4d5db47112bd381c8574a660b6ec> sending ACK for [3456]XX response
Oct 22 16:31:45 vss151 oversip[1632]: DEBUG: <Proxy proxy_out 9094443> received response 407
Oct 22 16:31:45 vss151 oversip[1632]: INFO: <SipEvents> [user] on_failure_response: 407 'Proxy Authentication Required'
Oct 22 16:31:45 vss151 oversip[1632]: DEBUG: <SIP Request 9094443> forwarding response 407 "Proxy Authentication Required"
Oct 22 16:31:45 vss151 oversip[1632]: DEBUG: <WsFraming> sending text frame: payload_length=456
Oct 22 16:31:45 vss151 oversip[1632]: DEBUG: <WsFraming> received text frame: FIN=true, RSV1-3=false/false/false, payload_length=421
Oct 22 16:31:45 vss151 oversip[1632]: DEBUG: <WsSipApp> received WS message: type=text, length=421
Oct 22 16:31:45 vss151 oversip[1632]: DEBUG: <IST 9094443> ACK received during completed state, now confirmed
Oct 22 16:31:45 vss151 oversip[1632]: DEBUG: <WsFraming> received text frame: FIN=true, RSV1-3=false/false/false, payload_length=4261
Oct 22 16:31:45 vss151 oversip[1632]: DEBUG: <WsSipApp> received WS message: type=text, length=4261
Oct 22 16:31:45 vss151 oversip[1632]: INFO: <SipEvents> [user] INVITE from sip:62...@10.0.60.130 (UA: JsSIP 3.2.15) to sip:62...@10.0.60.130 via WS 10.0.60.113 : 40377
Oct 22 16:31:45 vss151 oversip[1632]: DEBUG: <SIP Request 3646261> applying outgoing Outbound support
Oct 22 16:31:45 vss151 oversip[1632]: DEBUG: <UserAssertion module> user asserted, adding P-Asserted-Identity for SIP Request 3646261
Oct 22 16:31:45 vss151 oversip[1632]: DEBUG: <SIP Request 3646261> replying 100 "Trying"
Oct 22 16:31:45 vss151 oversip[1632]: DEBUG: <WsFraming> sending text frame: payload_length=242
Oct 22 16:31:45 vss151 oversip[1632]: DEBUG: <Proxy proxy_out 3646261> trying single target: udp:10.0.60.130:5060
Oct 22 16:31:45 vss151 oversip[1632]: DEBUG: <ICT e1caee8f7ede4d5db47112bd381c8574a660b6ec> sending ACK for [3456]XX response
Oct 22 16:31:45 vss151 oversip[1632]: DEBUG: <Proxy proxy_out 3646261> received response 488
Oct 22 16:31:45 vss151 oversip[1632]: INFO: <SipEvents> [user] on_failure_response: 488 'Not acceptable here'
Oct 22 16:31:45 vss151 oversip[1632]: DEBUG: <SIP Request 3646261> forwarding response 488 "Not acceptable here"
Oct 22 16:31:45 vss151 oversip[1632]: DEBUG: <WsFraming> sending text frame: payload_length=368
Oct 22 16:31:45 vss151 oversip[1632]: DEBUG: <WsFraming> received text frame: FIN=true, RSV1-3=false/false/false, payload_length=421
Oct 22 16:31:45 vss151 oversip[1632]: DEBUG: <WsSipApp> received WS message: type=text, length=421
Oct 22 16:31:45 vss151 oversip[1632]: DEBUG: <IST 3646261> ACK received during completed state, now confirmed
Oct 22 16:32:06 vss151 oversip[1632]: DEBUG: <NIST 063ebec7> timer J expires, transaction terminated
Oct 22 16:32:17 vss151 oversip[1632]: DEBUG: <ICT 41dc5e437ede4d5db47112bd381c8574a660b6ec> timer D expires, transaction terminated
Oct 22 16:32:17 vss151 oversip[1632]: DEBUG: <ICT e1caee8f7ede4d5db47112bd381c8574a660b6ec> timer D expires, transaction terminated
The oversip log (receving a call):
Oct 22 17:22:33 vss151 oversip[1632]: INFO: <SipEvents> [user] INVITE from
sip:62...@10.0.60.130 (UA: Asterisk PBX) to
sip:62...@10.0.60.130;ov-ob=3909e93776 via UDP 10.0.60.130 : 5060
Oct 22 17:22:33 vss151 oversip[1632]: DEBUG: <SIP Request 4b362503> applying outgoing Outbound support
Oct 22 17:22:33 vss151 oversip[1632]: DEBUG: <OutboundMangling module> incoming Outbound flow token extracted from ;ov-ob param in RURI for SIP Request 4b362503
Oct 22 17:22:33 vss151 oversip[1632]: INFO: <SipEvents> [user] routing initial request to an Outbound client
Oct 22 17:22:33 vss151 oversip[1632]: DEBUG: <SIP Request 4b362503> replying 100 "Trying"
Oct 22 17:22:33 vss151 oversip[1632]: DEBUG: <WsFraming> sending text frame: payload_length=1253
Oct 22 17:22:33 vss151 oversip[1632]: DEBUG: <WsFraming> received text frame: FIN=true, RSV1-3=false/false/false, payload_length=437
Oct 22 17:22:33 vss151 oversip[1632]: DEBUG: <WsSipApp> received WS message: type=text, length=437
Oct 22 17:22:33 vss151 oversip[1632]: DEBUG: <WsFraming> received text frame: FIN=true, RSV1-3=false/false/false, payload_length=660
Oct 22 17:22:33 vss151 oversip[1632]: DEBUG: <WsSipApp> received WS message: type=text, length=660
Oct 22 17:22:33 vss151 oversip[1632]: DEBUG: <Proxy proxy_to_users 4b362503> received response 180
Oct 22 17:22:33 vss151 oversip[1632]: DEBUG: <SIP Request 4b362503> forwarding response 180 "Ringing"
Oct 22 17:22:37 vss151 oversip[1632]: DEBUG: <WsFraming> received text frame: FIN=true, RSV1-3=false/false/false, payload_length=465
Oct 22 17:22:37 vss151 oversip[1632]: DEBUG: <WsSipApp> received WS message: type=text, length=465
Oct 22 17:22:37 vss151 oversip[1632]: DEBUG: <ICT d92215ea2f7f70afa11e4b2883a2de47f5c188fb> sending ACK for [3456]XX response
Oct 22 17:22:37 vss151 oversip[1632]: DEBUG: <WsFraming> sending text frame: payload_length=365
Oct 22 17:22:37 vss151 oversip[1632]: DEBUG: <Proxy proxy_to_users 4b362503> received response 488
Oct 22 17:22:37 vss151 oversip[1632]: INFO: <SipEvents> [user] incoming Outbound on_failure_response: 488 'Not Acceptable Here'
Oct 22 17:22:37 vss151 oversip[1632]: DEBUG: <SIP Request 4b362503> forwarding response 488 "Not Acceptable Here"
Oct 22 17:22:37 vss151 oversip[1632]: DEBUG: <IST 4b362503> ACK received during completed state, now confirmed
Oct 22 17:22:41 vss151 oversip[1632]: DEBUG: <NIST 56746150> timer J expires, transaction terminated
Oct 22 17:22:42 vss151 oversip[1632]: DEBUG: <IST 4b362503> timer I expires, transaction terminated
I know it is not a matter strictly linked to oversip, but your suggestion is very welcome.
Thank in advance,
Emilio