[OpenSIPS-Users] How to use the dialog module to limit call duration

haloha haloha201 at gmail.com
Fri Sep 17 18:13:47 CEST 2010


Hi Tung

i dont know how to check the call is the first incomming call when opensips
start
but you can do something similar to yours goal
example hangup the sip account = sip:5000 at ....
example config :
...
modparam("dialog", "timeout_avp", "$avp(i:10)")
....
route{
$avp(i:10)="30"
setflag(4)
......
if INVITE && from sip = 5000 at ...
    $avp(i:10) = NULL;
$avp(i:10) = "300";
    create_dialog()


something like that and you should check the below link for fully understand
avp
http://www.opensips.org/Resources/DocsCoreVar16#varavps

<http://www.opensips.org/Resources/DocsCoreVar16#varavps>Ha`

On Fri, Sep 17, 2010 at 10:45 PM, Tung Tran <tr.tung at gmail.com> wrote:

>  Hi Ha
>
>
>
> Thanks for your tips, but how can we set the timeout per call basic? Mean
> call 1 will have 30s, but call2 can be 1minute
>
>
>
> T.T
>
>
>
> *From:* users-bounces at lists.opensips.org [mailto:
> users-bounces at lists.opensips.org] *On Behalf Of *haloha
> *Sent:* Friday, September 17, 2010 10:14 PM
> *To:* OpenSIPS users mailling list
> *Subject:* Re: [OpenSIPS-Users] How to use the dialog module to limit call
> duration
>
>
>
> Hi Tung
>
>
>
> you should load the dialog module
>
> modparam("dialog", "default_timeout", 30) - 30 giay
>
> modparam("dialog", "dlg_flag", 4)
>
> modparam("dialog", "bye_on_timeout_flag", 6) - maybe 4
>
> ....
> route
>
>  {
>
> setflag(4)
>
> create_dialog();
> ....
>
>
>
> all call will be disconnect after 30s
>
>
>
> Have fun, Opensips is good sip server :)
>
>
>
> Ha`
>
> On Fri, Sep 17, 2010 at 9:51 PM, Tung Tran <tr.tung at gmail.com> wrote:
>
> Dear experts,
>
>
>
> I want to test the scenario that uses dialog module to limite call duration
> and disconnect the active call when the timer is over.
>
> I read the dialog module document many time but still cannot figure out how
> to config it in opensips conf file.
>
>
>
> Any hints are very appreciated.
>
>
>
> Thanks
>
> T.T
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100917/0cfee7b1/attachment.htm 


More information about the Users mailing list