[OpenSIPS-Users] Issue with opensips-cli .

Sasmita Panda spanda at 3clogic.com
Tue Mar 30 05:58:49 EST 2021


Hi ,

I have changed my instance.cfg like bellow .

[10.0.0.1]
prompt_name: opensips-cli at 10.0.0.1
communication_type: http
url: http://10.0.0.1:8888/json

With this config above I am getting some error . I am not able to switch to
the remote instance as well .

https://pastebin.com/1fDuHbBk


if I am giving below config .

 [10.0.0.1]
prompt_name: opensips-cli at 10.0.0.1
communication_type: fifo
fifo_file: /tmp/opensips_fifo

I am able to switch to the remote instance . After switching when I am
running any command its giving the result for localhost not  for the remote
instance ;.


What should I do ? Am I missing any dependency library ? Please do help .




*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Fri, Mar 26, 2021 at 5:58 PM Sasmita Panda <spanda at 3clogic.com> wrote:

> same result .
>
> my instance.cfg contains :
> cat instance.cfg
> [10.0.1.1]
> prompt_name: opensips-cli at 10.0.1.1
> fifo_file: /tmp/opensips_fifo
>
> https://pastebin.com/FQBipyZJ
> This is the result .
>
>
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Senior Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
>
> On Fri, Mar 26, 2021 at 5:38 PM Răzvan Crainea <razvan at opensips.org>
> wrote:
>
>> You are not switching the instance correctly: should have used `instance
>> switch 10.0.1.1`
>>
>> Best regards,
>>
>> Răzvan Crainea
>> OpenSIPS Core Developer
>> http://www.opensips-solutions.com
>>
>> On 3/26/21 1:54 PM, Sasmita Panda wrote:
>> > I am not getting any error for this . I have pasted the logs in
>> pastebin .
>> >
>> > https://pastebin.com/4tzXzrrG <https://pastebin.com/4tzXzrrG>
>> >
>> > What needs to be done in the remote machine 10.0.1.1 . I have allowed
>> > 8888 tcp port . I saw default http url is like http://10.0.1.1:8888/mi
>> > <http://10.0.1.1:8888/mi> .
>> > Do suggest if I am missing anything .
>> >
>> >
>> > */Thanks & Regards/*
>> > /Sasmita Panda/
>> > /Senior Network Testing and Software Engineer/
>> > /3CLogic , ph:07827611765/
>> >
>> >
>> > On Fri, Mar 26, 2021 at 5:00 PM Răzvan Crainea <razvan at opensips.org
>> > <mailto:razvan at opensips.org>> wrote:
>> >
>> >     Hi, Sasmita!
>> >
>> >     Can you post the logs of an execution for the 10.0.1.1 instance run
>> >     with
>> >     debugging (-d parameter)? Also, please post them on pastebin[1] or
>> in a
>> >     different place, not in the mail itself.
>> >
>> >     [1] https://pastebin.com/ <https://pastebin.com/>
>> >
>> >     Best regards,
>> >
>> >     Răzvan Crainea
>> >     OpenSIPS Core Developer
>> >     http://www.opensips-solutions.com <
>> http://www.opensips-solutions.com>
>> >
>> >     On 3/26/21 11:16 AM, Sasmita Panda wrote:
>> >      > Hi All ,
>> >      >
>> >      > I am using opensips-cli  ( 0.1.0 ) and opensips-3.1 .
>> >      >
>> >      > I am able to get all the data of the local host through cli but
>> >     when I
>> >      > am connecting to a remote host even though it's getting connected
>> >     but no
>> >      > data is visible for the remote instance  . It only showing the
>> >     data of
>> >      > the instance on which I am running the cli .
>> >      >
>> >      >
>> >      >   my opensips-cli.cfg
>> >      > *[default]
>> >      > database_modules: All
>> >      > prompt_intro: Welcome to OpenSIPS
>> >      >
>> >      > database_admin_url: mysql://root:cccl0g1c@localhost
>> >      > #database_url:  mysql://opensips:opensipsrw@localhost
>> >      > database_schema_path: /opt/opensips-3.1/scripts
>> >      >
>> >      > [10.0.1.1]
>> >      > prompt_name: opensips-cli at 10.0.1.1 <mailto:opensips-cli at 10.0.1.1
>> >
>> >     <mailto:opensips-cli at 10.0.1.1 <mailto:opensips-cli at 10.0.1.1>>
>> >      > prompt_intro: OpenSIPS CLI for 10.0.1.1 instance
>> >      > communication_type: fifo
>> >      > url: http://10.0.1.1:8888/mi <http://10.0.1.1:8888/mi>
>> >     <http://10.0.1.1:8888/mi <http://10.0.1.1:8888/mi>>*
>> >      >
>> >      > Am I doing anything wrong ? Please do help me .
>> >      >
>> >      >
>> >      > */Thanks & Regards/*
>> >      > /Sasmita Panda/
>> >      > /Senior Network Testing and Software Engineer/
>> >      > /3CLogic , ph:07827611765/
>> >      >
>> >      > _______________________________________________
>> >      > Users mailing list
>> >      > Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>> >      > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>> >     <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
>> >     <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
>> >
>>
>> _______________________________________________
>> 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/20210330/917c240f/attachment.html>


More information about the Users mailing list