[SR-Users] how to check if reply is retransmission?

Alex Hermann alex at speakup.nl
Thu Nov 13 12:29:57 CET 2014


On Thursday 13 November 2014, Juha Heinanen wrote:
> Alex Hermann writes:
> > > is there a means to check if reply to t_relay()ed request is
> > > retransmission?  there is t_is_retr_async_reply(), but that does not
> > > apply to regular transactions.
> > 
> > I don't think there is a built-in for that. I ended up storing the Via
> > branch parameter of the reply in a htable.
> 
> how do you access branch value of the first via? do you use transformations
> since looks like there is no pv for that?

I use a select:

$sel(via[0].branch)

-- 
Greetings,

Alex Hermann




More information about the sr-users mailing list