<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Titre content=""><meta name="Mots clés" content=""><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:MingLiU;
        panose-1:2 2 5 9 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Calibri;
        color:windowtext;}
span.msoIns
        {mso-style-type:export-only;
        mso-style-name:"";
        text-decoration:underline;
        color:teal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:595.0pt 842.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body bgcolor=white lang=FR link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US'>Hi, something like that ?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US'>if ( t_check_status("487") ) {<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US'> send_reply("404","Not Found");<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US'> exit;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US'> }<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-family:Calibri;color:black'>De : </span></b><span style='font-family:Calibri;color:black'><users-bounces@lists.opensips.org> au nom de Чалков Артём <achalkov@ya.ru></span><span style='font-family:MingLiU;color:black'><br></span><b><span style='font-family:Calibri;color:black'>Répondre à : </span></b><span style='font-family:Calibri;color:black'>OpenSIPS users mailling list <users@lists.opensips.org><br><b>Date : </b>jeudi 30 juin 2016 18:32<br><b>À : </b>"users &gt;&gt; OpenSIPS users mailling list" <users@lists.opensips.org><br><b>Objet : </b>[OpenSIPS-Users] change_reply_status if failure route<o:p></o:p></span></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>hello everyone! <o:p></o:p></p></div><div><p class=MsoNormal>Can someone explain me, could i use change_reply_status() if failure route or it hardcoded to use only in reply route or maybe help me with my problem: <o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal>Case:<o:p></o:p></p></div><div><p class=MsoNormal>uac (1) <--> opensips (2) <--> uas (3)<o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal><strong>step 1. 2 sends INVITE to 3</strong><o:p></o:p></p></div><div><p class=MsoNormal><strong>step 2. 3 sends 407 to 2</strong><o:p></o:p></p></div><div><p class=MsoNormal>processing: Now 2 trying to assign avp's to use uac_auth() function, but in some case cant do it and 407's handling interrupts in main route by exit;<o:p></o:p></p></div><div><p class=MsoNormal><strong>step 3. 2 sends ACK to 3</strong><o:p></o:p></p></div><div><p class=MsoNormal><strong>step 4. 2 sends 407 to 1</strong><o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal><b><br></b>Could i somehow catch that 407 after step 2 and transform to something like 404 to send it instead of 407 to 1? How to do it?<o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><p class=MsoNormal>_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users <o:p></o:p></p></div></body></html>