[OpenSIPS-Users] RTP Port missmatch

Manuel Tausendfreund manuel.tausendfreund at dtms.de
Thu Jun 5 09:31:25 UTC 2025


Hi ,

i have Playback part on my SBC (3.4.11 Opensips from The Debian Repo) rtpengine is 13.4.0.0


	ua_session_server_init($var(key_ini), "t$var(time)arhb");
	rtpengine_offer("in-iface=$var(interface) out-iface=$var(interface) ",$var(rtp_con),$var(sdp_data));
	ua_session_reply($var(key_ini), "INVITE", 200, "OK", $var(sdp_data));
	rtpengine_play_media("file=/net/audio/sound.wav from-tag=$ft ",$var(time),$var(rtp_con)); 

it works BUT when the other RTP Engine has a Strict Source active it is not working anymore.

Opensips sends in the "200 OK" of the SDP part from the Port from The UA-Agent instead off the port from the Caller

But the Sound is send from port of the Caller

How can I Change this behavior ?

Here look in my Log“s

<logs from RTP Engine>

Jun 03 14:06:06 rtp-test-bln rtpengine[786225]: INFO: [c16a0ad430a825c669e432f19b83e956 at xx.xx.xx.xx]: [core] Final packet stats:
Jun 03 14:06:06 rtp-test-bln rtpengine[786225]: INFO: [c16a0ad430a825c669e432f19b83e956 at xx.xx.xx.xx]: [core] --- Tag 'xx.xx.xx.xx', created 0:46 ago for branch ''
Jun 03 14:06:06 rtp-test-bln rtpengine[786225]: INFO: [c16a0ad430a825c669e432f19b83e956 at xx.xx.xx.xx]: [core] ------ Media #1 (audio over RTP/AVP) using unknown codec
Jun 03 14:06:06 rtp-test-bln rtpengine[786225]: INFO: [c16a0ad430a825c669e432f19b83e956 at xx.xx.xx.xx]: [core] --------- Port   10.250.56.103:65436 <>   10.249.152.95:28892
Jun 03 14:06:06 rtp-test-bln rtpengine[786225]: INFO: [c16a0ad430a825c669e432f19b83e956 at xx.xx.xx.xx]: [core] --------- Port   10.250.56.103:65437 <>   10.249.152.95:28893 
Jun 03 14:06:06 rtp-test-bln rtpengine[786225]: INFO: [c16a0ad430a825c669e432f19b83e956 at xx.xx.xx.xx]: [core] --- Tag '', created 0:46 ago for branch ''
Jun 03 14:06:06 rtp-test-bln rtpengine[786225]: INFO: [c16a0ad430a825c669e432f19b83e956 at xx.xx.xx.xx]: [core] ------ Media #1 (audio over RTP/AVP) using G722/8000
Jun 03 14:06:06 rtp-test-bln rtpengine[786225]: INFO: [c16a0ad430a825c669e432f19b83e956 at xx.xx.xx.xx]: [core] --------- Port   10.250.56.103:36098 <>                :0    
Jun 03 14:06:06 rtp-test-bln rtpengine[786225]: INFO: [c16a0ad430a825c669e432f19b83e956 at xx.xx.xx.xx]: [core] --------- Port   10.250.56.103:36099 <>                :0    
Jun 03 14:06:16 rtp-test-bln rtpengine[786225]: INFO: [a000e80f7f061fdcf69525ef9e7fd77f at xx.xx.xx.xx]: [core] Final packet stats:
</logs from RTP Engine>

<SDP from the 200 OK>

v=0
o=- 23915705085026 23915705085026 IN IP4 10.249.152.95
s=-
t=0 0
m=audio 36098 RTP/AVP 9 8 0 101
c=IN IP4 10.250.56.103
a=rtpmap:9 G722/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=msi:mavodi-8-159-31-d-ffffffff-25cb306d- at 87.137.153.236
a=sendrecv
a=rtcp:36099
a=ptime:20
a=maxptime:60
</SDP from the 200 OK>



<logs from RTP Engine Other side>

Jun 03 14:05:20 rtp-out-hh3 rtpengine[1159]: INFO: [c16a0ad430a825c669e432f19b83e956 at xx.xx.xx.xx/xx.xx.xx.xx port 37868]: [core] Kernelizing media stream: yy.yy.yy.yy:65198 -> zz.zz.zz.zz:37868 | 10.249.152.95:28892 -> 10.250.56.103:36098
Jun 03 14:05:20 rtp-out-hh3 rtpengine[1159]: INFO: [c16a0ad430a825c669e432f19b83e956 at xx.xx.xx.xx/xx.xx.xx.xx port 37868]: [core] Kernelizing media stream: yy.yy.yy.yy:65198 -> zz.zz.zz.zz:37868 | 10.249.152.95:28893 -> 10.250.56.103:36099
Jun 03 14:05:20 rtp-out-hh3 rtpengine[1159]: INFO: [c16a0ad430a825c669e432f19b83e956 at xx.xx.xx.xx port 28892]: [core] Drop due to strict-source attribute; got 10.250.56.103:65436, expected 10.250.56.103:36098
Jun 03 14:05:20 rtp-out-hh3 rtpengine[1159]: INFO: [c16a0ad430a825c669e432f19b83e956 at xx.xx.xx.xx port 28893]: [core] Drop due to strict-source attribute; got 10.250.56.103:65437, expected 10.250.56.103:36099
</logs from RTP Engine Other side>

BR
Manuel



More information about the Users mailing list