#101 configure REGISTER exipres based on protocol from script

closed
modules (91)
5
2012-08-24
2012-08-23
Robert Smith
No

Greetings list,

We would like to be able to set the REGISTER expires value on a response from opensips (and thus a save() in registrar/usrloc) to be different from a scripting context. A good example of this: we would like the expires value to be different based on protocol, where UDP gets a much shorter value than TCP (NAT, we prefer to keep the UDP value pretty low).

Currently this is only globaly configurable, which is a problem because many clients by default are provisioned for 1 hour or even 1 day times.

Thanks very much!

Discussion

  • Nick Altmann
    Nick Altmann
    2012-08-23

    You can use my patch (https://sourceforge.net/tracker/?func=detail&aid=3556883&group_id=232389&atid=1086412) this way:

    save("e60E60") for 60 seconds.
    or interval from 60 to 120 seconds:
    save("e60E120")

     
  • Closing as the corresponding patch was uploaded.

     
    • assigned_to: nobody --> bogdan_iancu
    • status: open --> closed