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

Re: [reSIProcate] Stack Method or API to modify Via header by Application


We do handover the sip message to sip stack through function send(sipMessage*). After that sip stack sends the message internally. In my case, if I modify the public IP in "Sent-by" parameter before handover the message to sip stack, it fails the message during Via header validation.

On Wed, Aug 17, 2016 at 3:46 PM, Dmytro Bogovych <dmytro.bogovych@xxxxxxxxx> wrote:
Use outbound decorators if you want to rewrite to public IP:

https://www.resiprocate.org/Modifying/Decorating_messages_sent

On Wed, Aug 17, 2016 at 12:50 PM, Alok Tiwari <alok1984@xxxxxxxxx> wrote:
> Hi,
>
> I am running my SIP entity behind the NAT. I want to send the public IP in
> Via header by just modifying the "send-by" parameter with public IP so that
> we can receive the response on same IP . I did the same by modifying the Via
> by Application but Stack fails and do not send the request out. It gives
> error as follows:
>
> TransportSelector.cxx:1463|Can't find matching transport [ V4
> 172.23.71.224:5060 UDP target domain=unspecified mFlowKey=0 ]
>
> Please help me and suggest any method/API to meet my requirement.
>
> Thanks,
> Alok
>
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel@resiprocate.org
> https://list.resiprocate.org/mailman/listinfo/resiprocate-devel