Hi 

I found how to do that.

 

msg_t* lMsgCopy = msg_dup(nua_current_request(nua));

sip_t* lSipCopy = sip_object(lMsg);

 

:-)

 

 

  _____  

From: techsgin [mailto:techs...@gmail.com] 
Sent: Wednesday, March 11, 2009 11:42 AM
To: 'sofia-sip-devel@lists.sourceforge.net'
Subject: Duplicate sip_t structure cont.

 

Hi all

 

Thanks in advance

 

We are trying to copy the sip_t structure from within the nua callback.

 

We saw this answer in the mailing list:

 

". You are looking for msg_dup(), it will create an another msg_t and
sip_t inside it. ."

 

But we crash when we try to:

 

sip_t* lCopy =  (sip_t*)msg_dup((msg_t*)sip)

 

We are probably doing something wrong.

We use the ubuntu sofia-sip-dev 1.12.9 (We cannot debug )

 

Regards

TechSgin

 

 

 

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to