With SER how can I know when the client SIP finish a call?
I need that SER can start a script when the client SIP finish a call.
You could write a script to run periodically that check your acc table for BYEs, then execute your script when it finds a new one.
I think there is a module to that lets SER run an external script from ser.cfg. You might be able to execute this when ser.cfg sees a BYE. I have never used the module, so I'm not really sure. Hope this helps.
- Daryl
On 8/2/05, Anderson Alves de Albuquerque anderson@belem.voip.nce.ufrj.br wrote:
I was thinking that I could use rtp proxy, is this a good idea?
RTP Proxy: http://www.portaone.com/~sobomax/
On Tue, 2 Aug 2005, Daryl Sanders wrote:
Anderson Alves de Albuquerque wrote:
I was thinking that I could use rtp proxy, is this a good idea?
No. Use something like
if(method == "BYE") { exec_msg('<path-to-script or shell-command>'); }
and have a look at the README in the exec-module.
But maybe there's a better solution if you tell us what you'd like to achieve.
Andy
You can execute a php scrip or any other in this way: loadmodule "/usr/local/lib/ser/modules/exec.so"
if (method == "BYE") {
exec_msg("/tmp/putCostCdr.php $SIP_HF_CALLID");
}
so when the BYE is received by SER, the php script is executed, receives the callid and it can rates the call or do whatever you want it to do.
Regards,
Juan Priotti
----- Original Message ----- From: "Daryl Sanders" daryl.sanders@gmail.com To: "Anderson Alves de Albuquerque" anderson@belem.voip.nce.ufrj.br Cc: "SER Users" serusers@lists.iptel.org Sent: Tuesday, August 02, 2005 1:47 PM Subject: Re: [Serusers] Start and fnish call
You could write a script to run periodically that check your acc table for BYEs, then execute your script when it finds a new one.
I think there is a module to that lets SER run an external script from ser.cfg. You might be able to execute this when ser.cfg sees a BYE. I have never used the module, so I'm not really sure. Hope this helps.
- Daryl
On 8/2/05, Anderson Alves de Albuquerque anderson@belem.voip.nce.ufrj.br wrote:
_______________________________________________ Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
A stateful entity (like a B2BUA) in the middle of the comunication path will help you in that case.
----- Original Message ----- From: "Anderson Alves de Albuquerque" anderson@belem.voip.nce.ufrj.br To: "Juan Priotti" jpriotti@gmail.com Cc: "Daryl Sanders" daryl.sanders@gmail.com; "SER Users" serusers@lists.iptel.org Sent: Tuesday, August 02, 2005 6:18 PM Subject: Re: [Serusers] Start and fnish call
the