Hello there,
We are trying to put together a script that executes an external program when
receiving a certain failure code.
The current script looks like:
/*********************** start script ********************************/
route {
[........]
if (method==INVITE) {
log(1, "INVITE\n");
t_on_failure("1");
};
[........]
t_relay();
}
[......]
failure_route[1] {
log(1, "Retry...\n");
if (status=~"48[0-9]") {
log(1, "Called when busy!!!\n");
exec_msg('./switchboard_server/send_request "127.0.0.1"
"9002"
"STORE_SESSION" "$SIP_HF_FROM" "$SIP_HF_TO"');
};
append_branch();
t_relay();
break;
}
/***************************** end of script *****************************/
"exec_msg" does never get called with this configuration. What is the syntax to
catch "48x" in failed replies?
Thanks in advance,
Jaime
*******************************************************************************
Important.
Confidentiality: This communication is intended for the above-named person and
may be confidential and/or legally privileged. Any opinions expressed in this
communication are not necessarily those of the company. If it has come to you
in error you must take no action based on it, nor must you copy or show it to
anyone; please delete/destroy and inform the sender immediately.
Monitoring/Viruses
Orange may monitor all incoming and outgoing emails in line with current
legislation. Although we have taken steps to ensure that this email and
attachments are free from any virus, we advise that in keeping with good
computing practice the recipient should ensure they are actually virus free.
Orange PCS Limited is a subsidiary of Orange SA and is registered in England No
2178917, with its address at St James Court, Great Park Road, Almondsbury Park,
Bradley Stoke, Bristol BS32 4QJ.
*******************************************************************************