Hi Richard,
(Sorry, resent to group conversation, as the first reply went to your personal email)
Thanks for the quick response.
This was just to try to get a quick test without having to change our opensips config and logic.
I have enabled debug logging for rtpengine - here is example of when I make in outbound (from internal to external) call - I've sanitised and coloured in the IPs to help show what they are:
rtpengine[22623]: INFO: [control] Got valid command from udp:<opensips mgmt IP>:41903: 23943_3886_66 UEIc8,0,101 88c455f81d154c58aea0197729aa0940 <local endpoint IP> 4036 01cf7e6ad85147c09d51785209754ff5;1
rtpengine[22623]: NOTICE: [88c455f81d154c58aea0197729aa0940]: [core] Creating new call
rtpengine[22623]: DEBUG: [88c455f81d154c58aea0197729aa0940]: [core] Subscribing '01cf7e6ad85147c09d51785209754ff5' to ''
rtpengine[22623]: DEBUG: [88c455f81d154c58aea0197729aa0940]: [core] Subscribing '' to '01cf7e6ad85147c09d51785209754ff5'
rtpengine[22623]: DEBUG: [88c455f81d154c58aea0197729aa0940]: [codec] Updating codecs for offerer 01cf7e6ad85147c09d51785209754ff5 #1
rtpengine[22623]: DEBUG: [88c455f81d154c58aea0197729aa0940]: [codec] Updating codecs for answerer #1
rtpengine[22623]: DEBUG: [88c455f81d154c58aea0197729aa0940]: [codec] Updating supplemental codecs for #1
rtpengine[22623]: DEBUG: [88c455f81d154c58aea0197729aa0940]: [codec] Setting up codec handlers for #1 -> 01cf7e6ad85147c09d51785209754ff5 #1
rtpengine[22623]: DEBUG: [88c455f81d154c58aea0197729aa0940]: [codec] Updating supplemental codecs for #1
rtpengine[22623]: DEBUG: [88c455f81d154c58aea0197729aa0940]: [codec] Setting up codec handlers for #1 -> 01cf7e6ad85147c09d51785209754ff5 #1
rtpengine[22623]: DEBUG: [88c455f81d154c58aea0197729aa0940]: [core] set FILLED flag for stream, local <internal IP>:0 remote <remote endpoint IP> :4036
rtpengine[22623]: DEBUG: [88c455f81d154c58aea0197729aa0940]: [core] set FILLED flag for stream, local <internal IP>:0 remote 1 <remote endpoint IP> :4037
rtpengine[22623]: INFO: [88c455f81d154c58aea0197729aa0940]: [core] Returning to SIP proxy: 23943_3886_66 0 <external IP> 4
You can see where it only allocates a 0 (zero) port when it returns back the U (Update) query results to opensips.
In the rtpengine config I have set the interfaces:
interface = external/<external IP>;internal/<internal IP>
I hope this information is useful for you.
(Note that our currently working opensips config/logic currently sends "EI" for the ordering in the Update request - which I think is the opposite of what it should actually be, but we have compensated for that in our currently working rtpproxy config, and for this rtpengine config too).
Thank you.