[OpenSIPS-Users] mid-registrar question
Dominic
wallnut.monkeys at gmail.com
Tue Jul 24 14:46:19 EDT 2018
Hi all, I'm currently a bit stuck trying to implement a mid-registrar in my
dev environment. My setup is that I have a hardphone that is registering to
opensips, opensips challenges the register, and once authenticated, the
register is sent to an Asterisk server that is setup with no
authentication. The diagram below illustrates this:
┌─┐
║"│
└┬┘
┌┼┐
│ ┌────────┐ ┌────────┐
┌┴┐ │OpenSips│ │Asterisk│
Alice └────────┘ └────────┘
│REGISTER (expires 60 sec)│ │
│─────────────────────────> │
│ │ │
│ 401 Unauthorized │ │
│<───────────────────────── │
│ │ │
│REGISTER (expires 60 sec)│ │
│─────────────────────────> │
│ │ │
│ │ REGISTER (expires 3600 sec)│
│ │ ───────────────────────────>
│ │ │
│ │ 200 OK (expires 3600 sec) │
│ │ <───────────────────────────
│ │ │
│200 OK (expires 3600 sec)│ │
│<───────────────────────── │
Alice ┌────────┐ ┌────────┐
┌─┐ │OpenSips│ │Asterisk│
║"│ └────────┘ └────────┘
└┬┘
┌┼┐
│
┌┴┐
I have set the mid_registrar.outgoing_expires to 3600 secs, so Opensips
alters the expires in the REGISTER that is sent to asterisk (which is what
I want), however, my issue is that the 3600 seconds gets propagated back to
Alice, through the 200 OK that is replied from Asterisk to OpenSips which
in turn sends it back to Alice.
I was wondering if anyone would know of a way to send back 60 seconds in
the 200 OK that is sent back to Alice so that Alice keeps sending me
REGISTERs every 60 seconds.
Thanks
Dominic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180724/1d0e71c5/attachment.html>
More information about the Users
mailing list