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:
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.
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
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:
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:
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.
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
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
Andreas Granig 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>'); }
Does this work? I think the accounting CDR for the BYE will be made by the tm module during t_relay. Thus, the script will be called before the CDR is created.
regards, klaus
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
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Klaus Darilion wrote:
Does this work? I think the accounting CDR for the BYE will be made by the tm module during t_relay. Thus, the script will be called before the CDR is created.
I think so too, but the OP didn't loose a word about CDRs or acc, that's why I asked what he really wants to achieve...
If it's really some rating stuff, he could write the acc table manually using acc_db_request(...) before calling exec_msg(...).
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:
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.
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
_______________________________________________ Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
And in the situation when my client SIP has your computer cut of the network. In this situation software SIP client never sent "BYE".
How can I know when the call SIP already finish?
In H.323, the gatekeeper could detect the end of RTP.
On Tue, 2 Aug 2005, Juan Priotti wrote:
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:
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.
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
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
And in the situation when my client SIP has your computer cut of the network. In this situation software SIP client never sent "BYE".
How can I know when the call SIP already finish?
In H.323, the gatekeeper could detect the end of RTP.
On Tue, 2 Aug 2005, Juan Priotti wrote:
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:
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.
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers