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

RE: [reSIProcate] How to modify the Contact field of SIP message ?


Hello Scott, et al,

On Mon, 17 Oct 2005, Scott Godin wrote:

> You should be able to use the new onReadyToSend callback and modify 
> the Contact header of 200/Invites.

Recently I expected setOverrideHostAndPort() to do the trick for 
provisional responses, but it does not work. onReadyToSend() is not 
going to work either as it is called only for requests.

(I tested with outdated reSIProcate, but looking through the code the 
functionality is same in up-to-date version.)

Am I missing something? Are there any way to set custom Contact for 
responses? TIA

BTW, I don't agree that modifying Contact to the value of Request-URI 
is mandated by the RFC.


> ________________________________
> 
> [mailto:resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of
> Asheesh Joshi
> Sent: Monday, October 17, 2005 9:00 AM
> 
>             As per RFC 3261, reciprocate rightly modifies the 
> contact field for a Request to the Request-URI of the incoming 
> packet.
> 
>             I am using DUM and I want to set the Contact header to 
> my IP in the 200 OK for INVITE. Is there a Interface to achieve 
> this?

-- 
...Bye..Dmitry.