Correct me if am wrong! So what you are looking to do is to add a session level attribute i.e a=somevalue before any of the media parameter (m) lines but instead it is getting added after some (m) parameter and hence it is effect your custom "a" attribute in effect is becoming a media level attribute?? On Thu, Jan 10, 2013 at 7:40 PM, McLeod, Tim <Tim.McLeod at cassidian.com>wrote: > Furthering our project for experimenting with various methods of > providing secure VoIP communications we have a need to provide custom > negotiation mechanisms. My engineer is currently looking into how this > might be incorporated into the existing pjsua functionality. He is > encountering difficulties. > > > > He is attempting to insert MIKEY session attributes into SDP message, i.e. > a=key-mgmt: mikey {base64 encoded mikey message} by using the function > ?transport_encode_sdp? in the transport adapter to add the desired mikey > message. When capturing the SIP invite message in Wireshark, the coding is > translated as a media attribute, the suspicion being that this is the case > because it is added to the message after the media description. Is there a > clean way to add a session description before the media attribute? > > > > Your help would (once again) be very much appreciated. > > > > Tim McLeod MBCS CITP > > Principal Engineer > > Tel: +44 1633 715097 > > Mob: +44 7765 088364 > > Email: tim.mcleod at cassidian.com > > RLI: tim.mcleod at eads.r.mil.uk > > Website: www.cassidian.com > > > The information contained within this e-mail and any files attached to > this e-mail is private and in addition may include commercially sensitive > information. The contents of this e-mail are for the intended recipient > only and therefore if you wish to disclose the information contained within > this e-mail or attached files, please contact the sender prior to any such > disclosure. If you are not the intended recipient, any disclosure, copying > or distribution is prohibited. Please also contact the sender and inform > them of the error and delete the e-mail, including any attached files from > your system. Cassidian Limited, Registered Office : Quadrant House, Celtic > Springs, Coedkernew, Newport, NP10 8FZ Company No: 04191036 > http://www.cassidian.com > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130111/73f85860/attachment-0001.html>