Hi,
pt., 20 sty 2023 o 14:46 Richard Fuchs <rfuchs(a)sipwise.com> napisaĆ(a):
O
if (proto==TLS) {
rtpengine_manage("RTP/AVP ICE=remove replace-session-connection
replace-origin pad-crypto ptime=20 codec-transcode-PCMA record-call=on allow-transcoding
direction=external direction=internal record-call=on");
} else if ($ru =~ "transport=tls") {
rtpengine_manage("DTLS=on SRTP AVPF ICE=remove
replace-session-connection replace-origin pad-crypto ptime=20 codec-transcode-PCMA
record-call=on allow-transcoding direction=internal direction=external record-call=on
media-address=1.2.3.24");
}
Double check that one of these is actually triggered for each
offer/answer (invite/ok).
Mayby any working example - this is preety common use of rtpenine +
kamalio i think, but - well - every available article is - old like 7
years ago or - does not cover this scenario.
(Your usage of `media-address` is probably not what
you want - usually
it's the "advertised address" syntax of the interface config that people
want)
Looking into that!
...
Jan 19 19:00:59 localhost rtpengine[17301]: INFO: [c17bab16-5eea-492e-b1c4-ac9387f3e265]:
[core] --------- Port 172.23.9.70:30014 <> :0 , SSRC 0, in 0
p, 0 b, 0 e, 3600 ts, out 0 p, 0 b, 0 e
Jan 19 19:00:59 localhost rtpengine[17301]: INFO: [c17bab16-5eea-492e-b1c4-ac9387f3e265]:
[core] --------- Port 172.23.9.70:30015 <> :0 (RTCP), SSRC 0,
in 0 p, 0 b, 0 e, 3600 ts, out 0 p, 0 b, 0 e
This looks like no "answer" was seen, which is what makes me think your
script doesn't actually trigger the function for the answer.
I think that i need more in depth understanding how this works - i
need to use rtpengine_ofer - before TLS w/ sRTP hits my kamailio
script ? and then, rtpengine_manage towards the no-SRTP endpoint, and
then - finally rtpengine_answer - ? So - 6 times - rtpengine_X ? (one
for incoming leg, 2nd for - outgoing)
Thanks for your input on this.
BR