Hi all!
I’m trying to setup a SIP proxy using flexisip (because I’d like to have push notifications and I don’t want to use the notify - wait some seconds - dial approach)
everything works using SIP UDP transport, but I’ve no audio if I switch to SIPS (TLS) both using RTP and SRTP.
RTP packets do arrive to Asterisk, but Asterisk drop them and give me this message: DEBUG[21813][C-0000162a]: res_rtp_asterisk.c:4277 ast_rtp_write: No remote address on RTP instance '0x7fa2c41f8ef8' so dropping frame
Everyhing looks right into INVITE and addresses are the same with or without proxy, the only difference that I’ve spotted is that:
look at the extra “s” after “INVITE” and in “To” field
The extra “s” also appears in my contact uri: Contact: 92201/sips:92201@157.230.97.157:39297;transpor 2c2ea3ef7d Avail 32.784
That’s a working one for comparison: Contact: 91450/sip:91450@80.17.99.73:11948;transport=TL d0468abde5 Avail 28.180
In this example, I’m using a flexisip proxy on the same machine, but I’ve same issue also with a proxy on another machine.
Does anyone have an idea of what I’m doing wrong and how to fix it?
Turns out that no media was sent because the call failed. It looks like Asterisk doesn’t like an insecure contact URI when you are trying to force a secure connection.
Warning: 381 SIP "SIPS Required"
[ deleted as it assumed that a new connection was being used for the BYE, which is not the case. ]
I note that you are FreePBX. We can’t in general provide information on how to use the FreePBX web forms or comment on the way it generates configuration files.
There is no SDP on the Ringing, so early media would get the response you mention, but there is a media address on the OK.
As you seem to have screen scraped, there is no timing information, so I can’t tell if the BYE is fast, but is is possible that Asterisk hasn’t actioned the SDP because it is going to close the call down, anyway, because of the unacceptable contact address.
The BYE is on the original port number, so it isn’t the result of the TLS connection having been closed.
Basically, the peer is trying to downgrade a secure connection to an insecure one.