route {
if (method=="INVITE")
record_route();
t_on_reply("1");
...
}
if (method=="BYE") {
EXEC() # HangedUp
...
}
...
}
onreply_route[1] {
if (status=~"2[0-9][0-9]") {
EXEC() # Answered Call
}
----- Original Message -----
From: "Elton Machado" <elton.machado(a)gmail.com>
To: <serusers(a)lists.iptel.org>
Sent: Wednesday, May 04, 2005 2:39 PM
Subject: [Serusers] Sip accounting
| Hi guys,
|
| I would like to run an external application when the call was right setup
| and when to run another application or the same application when the call
| was successfully hanged up. Can you please send me a snip of code of it?
|
| Thanks.
|
|
|
| _______________________________________________
| Serusers mailing list
| serusers(a)lists.iptel.org
|
http://lists.iptel.org/mailman/listinfo/serusers
|