Re: [OpenSIPS-Users] API Question

2021-02-11 Thread Alexander Perkins
Yuri, thank you for pointing that out.  I am checking that out.

Alex
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] API Question

2021-02-10 Thread Yuri Ritvin
 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@lists.opensips.org<mailto:Users@lists.opensips.org>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> ___
> Users mailing list
> Users@lists.opensips.org<mailto:Users@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 
> To: users@lists.opensips.org
> Subject: [OpenSIPS-Users] API Question
> Message-ID:
> <
> callktp0m7wrv5rq_wdofn+abemmpf6-5yhmgtaosd517to5...@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 
> To: users@lists.opensips.org
> Subject: Re: [OpenSIPS-Users] API Question
> Message-ID: <0e1ccd46-ffc0-71a5-e485-303732f52...@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@lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> --
> Regards
> *Gregory Massel*
> *T* +27 87 550 
> *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@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> --
>
> End of Users Digest, Vol 151, Issue 20
> **
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] API Question

2021-02-10 Thread Gregory Massel

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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

--
Regards
*Gregory Massel*
*T* +27 87 550 
*F* +27 11 783 4877
*W* www.switchtel.co.za 
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] API Question

2021-02-10 Thread Alexander Perkins
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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users