[SR-Users] Apply changes made to sip reply in onreply_route

Klaus Darilion klaus.mailinglists at pernau.at
Tue Oct 8 14:50:40 CEST 2013

Am 08.10.2013 12:14, schrieb Grant Bagdasarian:
> Hello,
> I've setup two Kamailio machines, one which does all the processing 
> and the second one which always replies with a 500 Server Internal 
> Error, to test my Dispatcher fail-over.
> When routing a call, the call is always routed to the second Kamailio 
> first, to test the fail-over.
> What happens in this scenario is the 500 is received by the main 
> Kamailio and the 500 message is duplicated to the capture server. 
> After this the failure_route kicks in and the 500 is obviously never 
> sent back to the initiator.
> The changes made to the 500 message  (adding a new header), in 
> onreply_route, aren't present when the message is duplicated to the 
> capture server, because the original 500 message is duplicated instead 
> of the modified one.
Out of curiosity -why do you add a header to the response if it is 
likely to be dropped (depending of the response in the second branch)? 
Just to signal data to the capture server?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20131008/d68c13e0/attachment.html>

More information about the sr-users mailing list