RE: [reSIProcate] How to set Via info in Header?
Wenwei,
You can look in the source files for DUM for some examples.
DialogUsageManger.cxx has some examples of manipulating the Via header. In
most cases your application should just do the following when making a new
request;
Via via;
via.param(p_branch); // will create the branch
request->header(h_Vias).push_front(via);
This snippit was from Helper.cxx -> Helper::makeRequest(..)
The library takes care of setting the transport protocol (UDP, TCP etc) and
filling in the host portion of the address.
As an example you can access the methods for 'Via' using:-
msg.header(h_Vias).front().sentPort() = 5060;
Hope this answers your question.
Rob.
-----Original Message-----
From: Wenwei Xu [mailto:wxu@xxxxxxxxxxxxx]
Sent: 19 July 2006 23:31
To: resiprocate-devel@xxxxxxxxxxxxxxxxxxx
Subject: [reSIProcate] How to set Via info in Header?
Greetings,
When making a SIP message, how to explicitly specify parameters (e.g.
transport, sentHost) in the Via object for the header? Can anyone provide
some sample code?
Many thanks,
Wenwei Xu
_______________________________________________
resiprocate-devel mailing list resiprocate-devel@xxxxxxxxxxxxxxxxxxx
https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel