Hi,
We need to add  header on the failure route.

Exemple:
On failure  404 Not found, we need add header
                        Reason: Q.850; cause=1


We tried this in failure_route:

if(t_check_status("404")){
    xlog("L_ERR", "404 Not found\n");
        append_to_reply("Reason: Q.850; cause=1\r\n");
    xlog("L_ERR", "404 Not found apres\n");
        exit;
  }


and

if(t_check_status("404")){
    xlog("L_ERR", "404 Not found\n");
        append_hf("Reason: Q.850; cause=1\r\n");
    xlog("L_ERR", "404 Not found apres\n");
        exit;
  }

The twice doesn't work.

Someone can help me?

Thanks,



--
Alexandre Rendour

Acropolis Telecom <http://www.acropolistelecom.net>

<mailto:rend...@acropolistelecom.net>
Adresse : 161-163 avenue Gallieni
Paris - Porte de Bagnolet
93170 Bagnolet

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to