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
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-dev mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev