Re: [reSIProcate] getting from and to from sip message
I just find out how to do it. I will post here in case anyone also need this:
const NameAddr& to = message.header(h_To);
const NameAddr& from = message.header(h_From);
QString strTo = to.displayName().c_str();
QString strFrom = from..displayName().c_str();
I'm not sure if displayName() is the right method to get the information. At [1] we can see the attributes of NameAddr but I don't know if this is the one that holds user handles (in this specific case).
[1]
https://github.com/resiprocate/resiprocate/blob/master/resip/stack/NameAddr.hxx#L39