[SR-Users] Add header on failure Route

Alex Rendour rendour at acropolistelecom.net
Fri Apr 30 11:07:47 CEST 2010


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:rendour at acropolistelecom.net>
Adresse : 161-163 avenue Gallieni
Paris - Porte de Bagnolet
93170 Bagnolet




More information about the sr-users mailing list