rtp_engine: allocate RTP dynamic payloads per session
Dynamic payload types were statically defined in Asterisk. This unfortunately limited the number of dynamic payloads that could be registered. With this patch dynamic payload type numbers are now assigned dynamically and per RTP instance. However, in order to limit any issues where some clients expect the old statically defined value this patch makes it so the value Asterisk used to pre- designate is used for the dynamic assignment if available. An option, "rtp_use_dynamic", has also been added (can be set in asterisk.conf) that turns the new dynamic behavior on or off. When off it reverts back to using statically defined payload values. This option defaults to "yes" in Asterisk 15. ASTERISK-26515 #close patches: ASTERISK-26515.diff submitted by jcolp (license 5000 Change-Id: I7653465c5ebeaf968f1a1cc8f3f4f5c4321da7fc
Showing
- CHANGES 5 additions, 0 deletionsCHANGES
- configs/samples/asterisk.conf.sample 4 additions, 0 deletionsconfigs/samples/asterisk.conf.sample
- include/asterisk/options.h 1 addition, 0 deletionsinclude/asterisk/options.h
- main/asterisk.c 5 additions, 0 deletionsmain/asterisk.c
- main/rtp_engine.c 159 additions, 108 deletionsmain/rtp_engine.c
Loading
Please register or sign in to comment