[reSIProcate] How do I get the Caller ID string?
- From: "Richard Stellingwerff" <remenic@xxxxxxxxx>
- Date: Mon, 8 Jan 2007 18:19:54 +0100
Hi,
In the InviteSessionHandler::onOffer method, I'm trying to extract the
Caller ID information. When looking at the header, it shows the field:
From: "Richard" <sip:20@xxxxxxxxxxx>;tag=as5f908b8a
However, I can't find any way to get the "Richard" part from the From
field. I tried using:
std::string from = from =
msg.header(resip::h_From).uri().getAor().c_str(); But this just gives
me 20@xxxxxxxxxxxx
I'm sure it's really easy to do, but I'm probably looking in all the
wrong places :) Hopefully someone can help me out here.
Cheers,
Richard.