[asterisk-dev] PJSIP_MEDIA_OFFER

Kevin Harwell kharwell at digium.com
Wed Jun 24 11:08:00 CDT 2020


Greetings,

PJSIP_MEDIA_OFFER [1] has been around for a while now, but the
documentation is a little ambiguous. Is the expectation that codecs set via
the PJSIP_MEDIA_OFFER function completely override those specified on an
endpoint's configuration? For instance:

Endpoint config: allow=!all,ulaw
Dialplan override: Set(PJSIP_MEDIA_OFFER(audio)=!all,g722)

Then the outgoing SDP would contain g722 only.

I'm asking because that is not the way it works now. Given the above
scenario the outgoing SDP contains ulaw only. Currently, the code only
allows codecs set via PJSIP_MEDIA_OFFER to be included in the SDP only if
the given codec list has at least one codec in common with the codecs
specified in the configuration.

I'm not sure if setting codecs using PJSIP_MEDIA_OFFER should completely
override the configuration, but the way it seems to be currently working
doesn't seem right either.

So thoughts, ideas, and/or expectations on how it should work?

[1]
https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Function_PJSIP_MEDIA_OFFER

-- 
Kevin Harwell
Software Developer
Sangoma Technologies
Check us out at: https://sangoma.com & https://asterisk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20200624/e86c3812/attachment.html>


More information about the asterisk-dev mailing list