On Fri, 27 May 2011 01:43:04 +0700, Michael Jerris <m...@jerris.com> wrote:

Thank you for advice. I think i`ve found the solution, but i`am not quite  
sure about it :)

In libsofia-sip-ua/msg/msg_tag.c : msgobjtag_dup() we can see:

---
   memset(mo, 0, omo->msg_size);
   mo->msg_size = omo->msg_size;
   mo->msg_flags = omo->msg_flags;

   if (mo->msg_request)
     o = mo->msg_request;
   else
     o = mo->msg_status;
---

I`ve add some trace and figure out that memset nulls mo->msg_request and  
mo->msg_status as well.
So we do not copy the headers of the structure in any case.
Replacing in "if-else" "mo" with "omo" works for me and it looks  
meaningfull - couse we copy headers _from_ it - not _to_ it.


> Check out www.freeswitch.org.  It should already implement most of what  
> your talking about.
>

--
Best regards,
Vladimir O. Luchko
Novosibirsk

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to