o Juha Heinanen on 03/02/2014 04:15 AM:
> Stefan Sayer writes:
> 
>> the reply objects themselves are accessible in
>> sc_sess->avar[DSM_AVAR_REPLY], so you'd only need to add some DSM
>> actions to add body parts with the normal AmMimeBody::addPart()
>> method.
> 
> below is my first try to introduce new dlg.addReplyBodyPart function.
> compiler tells that reply's body is constant to which nothing can be
> added:
> 
> ModDlg.cpp: In member function 'virtual bool 
> DLGAddReplyBodyPartAction::execute(AmSession*, DSMSession*, 
> DSMCondition::EventType, std::map<std::basic_string<char>, 
> std::basic_string<char> >*)':
> ModDlg.cpp:447:55: error: passing 'const AmMimeBody' as 'this' argument of 
> 'AmMimeBody* AmMimeBody::addPart(const string&)' discards qualifiers 
> [-fpermissive]
> make: *** [ModDlg.o] Error 1

for those cases where we can modify it we need to save it as a
different object; I've added your modified code with
 4f11a5e sbc:dsm: dlg.addReplyBodyPart to modify reply in B2B call
leaving the tests to you, though.

Stefan

_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to