[reSIProcate] How do I get the Caller ID string?

Richard Stellingwerff remenic at gmail.com
Mon Jan 8 14:07:39 CST 2007


Thanks Scott, I guess I failed to notice the defineHeader macro's, so
I never actually noticed that the header(h_From) method returned a
NameAddr... oops!

Guess I learned something new today :)

Thanks a bunch!

Cheers,
Richard.

On 1/8/07, Scott Godin <slgodin at icescape.com> wrote:
> Msg.header(h_From).displayName().
>
> Scott
>
> > -----Original Message-----
> > From: resiprocate-devel-bounces at list.resiprocate.org
> > [mailto:resiprocate-devel-bounces at list.resiprocate.org] On Behalf Of
> > Richard Stellingwerff
> > Sent: Monday, January 08, 2007 12:20 PM
> > To: resiprocate-devel at list.sipfoundry.org
> > Subject: [reSIProcate] How do I get the Caller ID string?
> >
> > 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 at 192.168.1.1>;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 at 192.168.1.1.
> >
> > 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.
> > _______________________________________________
> > resiprocate-devel mailing list
> > resiprocate-devel at list.resiprocate.org
> > https://list.resiprocate.org/mailman/listinfo/resiprocate-devel
>



More information about the resiprocate-devel mailing list