can anybody tell me, how I can rewrite the SIP status code (and reason) of an incoming response message?
E.g. "convert" a incoming "483 Too many hops" to a "500 My personal error"
Regards.
spyke
Joined: Feb 07, 2008
Posts: 6
Status: Offline
Posted:
Apr 09, 2008 - 02:15 PM
You can put what you want in the send_reply_error:
if (!mf_process_maxfwd_header("10"))
{
xlog("L_INFO", "Too many hops - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
sl_send_reply("500", "Keep off the grass");
exit;
C.
Gawith
Joined: Feb 08, 2008
Posts: 9
Status: Offline
Posted:
Apr 09, 2008 - 02:27 PM
Thanks for the reply, but your solution does not solve the problem.
I'm looking for a status code rewriting in a proxy scenario:
You have to put it in the correct route[] in order to forward it to proxy1
C.
x-console Site Admin
Joined: Aug 01, 2006
Posts: 1133
Location: Leeds UK
Status: Offline
Posted:
Apr 09, 2008 - 04:04 PM
you need the intermediary proxy to be operating satefuly, and you need to catch the negative response in a failure route, and issue your custom error response from there.
All logos and trademarks in this site are property of their respective owner. Comments and posts are property of the poster, all the rest (c) 2003-2006 VoIP User.
No part of this site may be reproduced without our prior consent.