< Previous by Date Date Index Next by Date >
  Thread Index  

RE: [reSIProcate] Add and Parse the friendly name from To and Fromheader


The To and From headers are NameAddr’s.  Have a look at test/testUri.cxx for some samples.

 

msg.header(h_To).displayName()

 

 


From: resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx [mailto:resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Rajat Lala
Sent: Monday, December 05, 2005 12:39 AM
To: resiprocate-devel@xxxxxxxxxxxxxxxxxxx
Subject: [reSIProcate] Add and Parse the friendly name from To and Fromheader

 

Hi,

 

            Is there any way to add/parse user friendly name in ‘To’ and ‘From’ header field in Invite message. I want to send Invite in which the ‘To’ header and ‘From’ header should look like as follows.

 

To: “Bob”<bob@xxxxxxxxxx>

From: “Ailce”<alice@xxxxxxxxxxx>;tag=xyz

 

            I also want to parse the name in incoming invite message. Is there any provision in reciprocate, using that I can do this parsing? Thanks in advance.

 

 

With regards

Rajat Lala

 

 

 

 

 

 

 

Pleasure in the job puts perfection in the work.

Aristotle (384 BC-322 BC)