On 10/06/14 10:37, Roberto Fichera wrote:
[..]
the parse from error don't seem to be from parse_msg().

Can you print the uac buffer and send it over here to see if it is something wrong there?

Jun 10 09:32:29 ip-10-227-0-26.localdomain /usr/sbin/kamailio[29663]: DEBUG: msilo [msilo.c:1403]: m_tm_callback_on_delivered_event(): t->uac[0].request.buffer: MESSAGE sip:test1@test.com SIP/2.0

I've used LM_DBG()  to print it.
Can you paste here the full LM_DBG line? It prints only the first line. Maybe you can print also the length of the buffer which is a special field just to see its value.

Cheers,
Daniel


You get a crash as well, very likely due to the shm free at the end.

The rest of the code hasn't changed, so I kept all the shm_malloc(), actually I do not expect
them to fail.

Cheers,
Roberto Fichera.

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda