[OpenSIPS-Users] API Question

Yuri Ritvin yuri.ritvin at gmail.com
Wed Feb 10 18:41:58 EST 2021


Please check this out:
https://blog.opensips.org/2020/06/11/calls-management-using-the-new-call-api-tool/
https://github.com/OpenSIPS/call-api


On Wed, Feb 10, 2021 at 11:53 AM <users-request at lists.opensips.org> wrote:

> Send Users mailing list submissions to
>         users at lists.opensips.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> or, via email, send a message with subject or body 'help' to
>         users-request at lists.opensips.org
>
> You can reach the person managing the list at
>         users-owner at lists.opensips.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Users digest..."
>
>
> Today's Topics:
>
>    1. Re: Retrieving parameters from file (Gerwin van de Steeg)
>    2. Re: Retrieving parameters from file (Johan De Clercq)
>    3. API Question (Alexander Perkins)
>    4. Re: API Question (Gregory Massel)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 10 Feb 2021 17:26:10 +1300
> From: Gerwin van de Steeg <gerwin.van.de.steeg at vadacom.com>
> To: OpenSIPS users mailling list <users at lists.opensips.org>
> Subject: Re: [OpenSIPS-Users] Retrieving parameters from file
> Message-ID:
>         <
> CAJs0f15LunXefROnRPFQQZBudHjNnWYrvy8AVL6sCSq9T4aHfg at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Or you could use a sane and legible templating language.  I like the look
> of consul-template, but there are many others out there as the article
> suggests.. like Jinja2 or ERB.
>
> On Wed, 10 Feb 2021 at 00:00, Johan De Clercq <Johan at democon.be> wrote:
>
> > Interesting, speaking for myself, it is absolutely team that I add m4
> > support.
> >
> >
> > Op di 9 feb. 2021 om 11:35 schreef Liviu Chircu <liviu at opensips.org>:
> >
> >> On 09.02.2021 05:53, Dinesh Krishnamurthy via Users wrote:
> >> > For example i would need to keep the IP Address/Port of the API
> >> > Gateway which i communicate via rest_get without hardcoding as they
> >> > would change based on the environment i am working with i.e.. staging,
> >> > dev or production
> >> >
> >> > Please advise the way to do this.
> >>
> >> Hi,
> >>
> >> Sounds to me like your opensips.cfg file needs templating. If you are
> >> using a 3.0 or newer OpenSIPS, this process is even further simplified,
> >> as OpenSIPS natively integrates with any preprocessor that's out there.
> >> See this guide [1] for more details.
> >>
> >> Regards,
> >>
> >> [1]: https://www.opensips.org/Documentation/Templating-Config-Files-3-2
> >>
> >> --
> >> Liviu Chircu
> >> www.twitter.com/liviuchircu | www.opensips-solutions.com
> >>
> >>
> >> _______________________________________________
> >> 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/20210210/aa3664bb/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Wed, 10 Feb 2021 07:00:43 +0000
> From: Johan De Clercq <johan at democon.be>
> To: OpenSIPS users mailling list <users at lists.opensips.org>
> Subject: Re: [OpenSIPS-Users] Retrieving parameters from file
> Message-ID:
>         <
> PR1PR06MB46834DC07BB3CC6152868E08A78D9 at PR1PR06MB4683.eurprd06.prod.outlook.com
> >
>
> Content-Type: text/plain; charset="utf-8"
>
> Gerwin, I will have a look.
>
> Outlook voor iOS<https://aka.ms/o0ukef> downloaden
> ________________________________
> Van: Users <users-bounces at lists.opensips.org> namens Gerwin van de Steeg <
> gerwin.van.de.steeg at vadacom.com>
> Verzonden: Wednesday, February 10, 2021 5:26:10 AM
> Aan: OpenSIPS users mailling list <users at lists.opensips.org>
> Onderwerp: Re: [OpenSIPS-Users] Retrieving parameters from file
>
> Or you could use a sane and legible templating language.  I like the look
> of consul-template, but there are many others out there as the article
> suggests.. like Jinja2 or ERB.
>
> On Wed, 10 Feb 2021 at 00:00, Johan De Clercq <Johan at democon.be<mailto:
> Johan at democon.be>> wrote:
> Interesting, speaking for myself, it is absolutely team that I add m4
> support.
>
>
> Op di 9 feb. 2021 om 11:35 schreef Liviu Chircu <liviu at opensips.org
> <mailto:liviu at opensips.org>>:
> On 09.02.2021 05:53, Dinesh Krishnamurthy via Users wrote:
> > For example i would need to keep the IP Address/Port of the API
> > Gateway which i communicate via rest_get without hardcoding as they
> > would change based on the environment i am working with i.e.. staging,
> > dev or production
> >
> > Please advise the way to do this.
>
> Hi,
>
> Sounds to me like your opensips.cfg file needs templating. If you are
> using a 3.0 or newer OpenSIPS, this process is even further simplified,
> as OpenSIPS natively integrates with any preprocessor that's out there.
> See this guide [1] for more details.
>
> Regards,
>
> [1]: https://www.opensips.org/Documentation/Templating-Config-Files-3-2
>
> --
> Liviu Chircu
> www.twitter.com/liviuchircu<http://www.twitter.com/liviuchircu> |
> www.opensips-solutions.com<http://www.opensips-solutions.com>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org<mailto:Users at lists.opensips.org>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org<mailto: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/20210210/e24d2166/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 3
> Date: Wed, 10 Feb 2021 09:44:17 -0500
> From: Alexander Perkins <alexanderhenryperkins at gmail.com>
> To: users at lists.opensips.org
> Subject: [OpenSIPS-Users] API Question
> Message-ID:
>         <
> CALLkTp0m7wRV5rq_wdoFN+abEmmpf6-5yhMgtAosD517To5o0Q at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi All.  I have what may appear to be a silly question.  Does OpenSIPS have
> some sort of way to interact with it via an API?  For example (very
> simplistic) something where I can consume a URL of the OpenSIPS server and
> pass it a to and from number and it can send me the result?  Like 200, etc?
>
> I know this sounds overly simplified, but I just need a point in the right
> direction.
>
> Thanks, All!
>
> Alex
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.opensips.org/pipermail/users/attachments/20210210/36810e36/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 4
> Date: Wed, 10 Feb 2021 18:52:59 +0200
> From: Gregory Massel <greg at switchtel.co.za>
> To: users at lists.opensips.org
> Subject: Re: [OpenSIPS-Users] API Question
> Message-ID: <0e1ccd46-ffc0-71a5-e485-303732f528a5 at switchtel.co.za>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> MI: https://www.opensips.org/Documentation/Interface-MI-3-1
>
> On 2021-02-10 16:44, Alexander Perkins wrote:
> > Hi All.  I have what may appear to be a silly question.  Does OpenSIPS
> > have some sort of way to interact with it via an API?  For example
> > (very simplistic) something where I can consume a URL of the OpenSIPS
> > server and pass it a to and from number and it can send me the
> > result?  Like 200, etc?
> >
> > I know this sounds overly simplified, but I just need a point in the
> > right direction.
> >
> > Thanks, All!
> >
> > Alex
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> --
> Regards
> *Gregory Massel*
> *T* +27 87 550 0000
> *F* +27 11 783 4877
> *W* www.switchtel.co.za <http://www.switchtel.co.za/>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.opensips.org/pipermail/users/attachments/20210210/c910f458/attachment.html
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> ------------------------------
>
> End of Users Digest, Vol 151, Issue 20
> **************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20210210/b38c9206/attachment.html>


More information about the Users mailing list