RE: [reSIProcate] How to modify the Contact field of SIP message ?
Actually I have been thinking about this lately. Is there any reason
that we wouldn't want setOverrideHostAndPort to also set the contact on
dialog responses as well? This way it will always override the contact
- ie. both of newly created requests and for responses.
Note: DUM now has an outgoingMessageInterceptor that may serve the
purpose of decorating responses.
Scott
> -----Original Message-----
> From: Dmitry Semyonov [mailto:dsemyonov@xxxxxxx]
> Sent: Friday, April 14, 2006 12:54 PM
> To: Scott Godin
> Cc: Asheesh Joshi; resiprocate-devel
> Subject: 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.