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

Re: [reSIProcate-users] How to get Transport used to route a message in advance?


Hi Jorge,

There is no way to know before you send.  The transport used may even change if a particular DNS record fails to route.  However there is a way to get a callback after the stack has chosen a transport and just before it hit's the wire.  See the OutboundDecorator discussed here:  https://www.resiprocate.org/Modifying/Decorating_messages_sent

Scott


On Fri, Sep 13, 2013 at 5:09 PM, Jorge Bustamante <jorge@xxxxxxxxxxxxxxxxxx> wrote:
Hi,

Just a simple question... is there a way to know what Transport was chosen to route a sip message through before actually sending that message through the stack?

I want to modify the SDP depending on the transport.

TransportSelector has a convenient method findTransportByDest(target) that I supposed does exactly what I want... problem is that I don't have access to TransportSelector directly (i.e. that would be great if that was static :-)).

Regards,
Jorge Bustamante

_______________________________________________
resiprocate-users mailing list
resiprocate-users@xxxxxxxxxxxxxxx
List Archive: http://list.resiprocate.org/archive/resiprocate-users/