Hi all,

 

I’m trying to add a custom SIP header to the mclass object.  As far as I
understand, sip_default_mclass() returns a reference to a const object
(msg_mclass_t const sip_mclass[1]), so I should clone the mclass object
before adding the header.  Is it correct?

 

I mean, to do:

      msg_class_t sip_mclass = msg_mclass_clone(sip_default_mclass(), 0, 0);

      sip_mclass_insert_header(sip_mclass, myheader_class, 0);

            

instead of:

      sip_mclass_insert_header(sip_default_mclass(), myheader_class, 0);

 

Thank you very much in advance.

 

G.

 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to