[OpenSIPS-Users] testing with opensips-cli
johan de clercq
johan at democon.be
Wed Jul 3 03:24:53 EDT 2019
All,
The error here is obvious: url was wrong. It should end in mi instead of
json.
Hence this is fixed.
From: johan de clercq <johan at democon.be>
Sent: Monday, July 1, 2019 4:59 PM
To: 'OpenSIPS users mailling list' <users at lists.opensips.org>
Subject: testing with opensips-cli
Dears,
Following up my dialplan troubles, I decided to test a bit with
opensips-cli.
I created below config file :
[localhost]
prompt_name: opensips-cli_localhost
prompt_intro: OpenSIPS CLI for localhost instance
communication_type: http
url: http://127.0.0.1:8888/json
and saved it as /etc/opensips-cli.cfg
When I rung opensips-cli, I have below output
root at hendrix:/# opensips-cli
Welcome to OpenSIPS Command Line Interface!
(opensips-cli):
The prompt is still opensips-cli, so it seems to me that it doesn't find the
config file.
However :
root at hendrix:/# cat /etc/opensips-cli.cfg
[localhost]
prompt_name: opensips-cli_localhost
prompt_intro: OpenSIPS CLI for localhost instance
communication_type: http
url: http://127.0.0.1:8888/json
The documentation states this as one of the default locations where it will
search for opensips-cli.cfg.
Please advice on how to fix this.
Best regards,
Johan De Clercq, Managing Director
Democon bvba - Ooigemstraat 41 - 8780 Oostrozebeke
Tel +3256980990 - GSM +32478720104
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190703/27c0f886/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 15602 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20190703/27c0f886/attachment-0001.png>
More information about the Users
mailing list