Martin Hoffmann wrote:
> psycho psycho wrote:
>> Here is the problem: I can capture the call-id value from requests with the 
>> command
>> LM_INFO("Call-ID: %.*s\n", msg->callid->body.len, msg->callid->body.s);
>>
>> But when use this on a 200ok reply response i get an empty string.
>> What am i doing wrong?
> 
> You may have to ask SER to parse the headers first. This isn't
> necessarly done. I don't quite remember how it is done, but maybe you
> can check textops to find out how it is done.

Call parse_headers(msg, HDR_CALLID_F, 0); before trying to access 
msg->callid.

Regards,
-- 
Maksym Sobolyev
Sippy Software, Inc.
Internet Telephony (VoIP) Experts
T/F: +1-646-651-1110
Web: http://www.sippysoft.com
_______________________________________________
Serdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/serdev

Reply via email to