[OpenSIPS-Users] Change SIP response code
    Josip Djuricic 
    josip.djuricic at voljatel.hr
       
    Wed Sep 23 13:24:19 CEST 2009
    
    
  
So I guess this would not work?
 
if (t_check_status("500") && search("^Expired*")) {
                sl_send_reply("480", "Temporarily Unavailable");
                break;
};
 
I should probably use it somewhere in onreply_route instead?
 
I am sorry I am still relatively new to opensips and ser
 
Josip
 
From: users-bounces at lists.opensips.org
[mailto:users-bounces at lists.opensips.org] On Behalf Of Mauro Davi
Sent: Wednesday, September 23, 2009 12:48 PM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Change SIP response code
 
Hi Josip,
I think that the below answer could be the solution:
http://www.openser.org/pipermail/users/2006-January/002692.html
Regards
    MD
Josip Djuricic ha scritto: 
Dear,
 
What would be the best way to change SIP response message from 5xx to 4xx.
The problem is we have client with a broken b2bua which sends SIP 500
Expired after the user does not answer the phone, so I would like to change
it to SIP 480 Temporarily unavailable message before sending it back.
 
if (search("^Expired*")) {
sl_send_reply("480", "Temporarily Unavailable");
break;
};
 
I thought about something like that but that would match also the initial
invite that has Expired valule in it, so I would need to match only SIP 500
message with string Expired in it.
 
Thank you
 
Josip
 
  _____  
 
_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20090923/2ed8cb5e/attachment.htm 
    
    
More information about the Users
mailing list