<div dir="auto">Very cool Daniel! Very appreciated!</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 16 Feb 2022 at 09:39, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<p>Hello,</p>
<p>the hypens-style is (or at least seems to be) Go specific, but
actually there is flexibility in using one or two with any
parameter type, like:</p>
<p>sipexer -v</p>
<p>sipexer --v</p>
<p>sipexer -version</p>
<p>sipexer --version</p>
<p>The help message is printed by a Golang internal function from
the 'flag' package (the one that parsed cli params), respectively:</p>
<p>flag.PrintDefaults()<br>
</p>
<p>It lacks the ability to group many cli params for the same
purpose (e.g., the short and long forms), there are other external
go packages that can do it, but I preferred to go for the package
offered directly by golang to avoid situation when external
packages go unmaintained in the future.</p>
<p>Pull requests are welcome, of course!</p>
<p>Cheers,<br>
Daniel<br>
</p></div><div>
<div>On 16.02.22 10:05, Igor Olhovskiy
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Daniel,</div>
<div>Thanks, now we have something between <span style="font-family:monospace">sipsak</span> and <span style="font-family:monospace">sipp</span>.</div>
<div>But just small clarification on CLI parameters format. I've
noticed, that long and short version of parameter starting
with single -(hyphen). Is it something go-specific, or it
could be used in more-gnu way like single hyphen for short and
double-hyphen for long?</div>
<div>As an example from help</div>
<div><span style="font-family:monospace"> -co<br>
color output<br>
-color-message<br>
color SIP message output<br>
-color-output<br>
color output<br>
-com<br>
color SIP message output</span></div>
<div><br>
</div>
<div>And to add, support of ENV vars is a great idea! Now using
separate docker images with CI/CD looks even better!</div>
<div>Many thanks for your work!</div>
<div><br>
</div>
<div>As an another testing suite example: <a href="https://github.com/igorolhovskiy/volts" target="_blank">https://github.com/igorolhovskiy/volts</a>
It's based on <span style="font-family:monospace">voip_patrol</span>,
but a bit reworked. (Was about to make a presentation of it
on next KWC, please count me in :) )<br>
</div>
<div>I'm thinking of expanding it with other SIP testing tools
and <span style="font-family:monospace">sipexer</span> looks
nice from this point of view.<br>
</div>
<div><br>
</div>
<div>PS: For hyphen/double-hyphen I can try to prepare a PR, but
not sure if it's not compatibility break with already possible
existing pipelines somewhere.<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">вт, 15 февр. 2022 г. в 05:05,
Seven Du <<a href="mailto:dujinfang@gmail.com" target="_blank">dujinfang@gmail.com</a>>:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">Cool cool cool.</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Feb 15, 2022 at
3:01 AM Alex Balashov <<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Certainly, but 90% of
the various use-cases are covered by the invite scenario.
Extensive compatibility with various CI tooling isn’t
really required in my mind; as long as it can return
positive or negative values depending on the outcome of
the SIP request, it’s perfect. <br>
<br>
The real value is in the fact that it’s a true CLI tool,
and the ability to formulate misshapen requests using Go
templates. That’s beautiful!<br>
<br>
Another great thing is that you appear to have exposed
your ad hoc SIP parser as a module, which means it could
potentially be imported and used in other tools. <br>
<br>
—<br>
Sent from mobile, with due apologies for brevity and
errors.<br>
<br>
> On Feb 14, 2022, at 1:51 PM, Daniel-Constantin Mierla
<<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>>
wrote:<br>
> <br>
> Probably it requires some hammering to make it
compatible with various<br>
> CI pipelines, I tried to make a mode for nagious
plugin, but coding in<br>
> golang should make it easy to adapt/enhance.<br>
> <br>
> I plan to add a few more common scenarios for session
testing. Right now<br>
> can do register-wait-unregister and
invite/200ok-ack-wait-bye.<br>
> <br>
> One that is my to-do is to register two users and
make a call between<br>
> them. Another one would be to register and wait for
calls, so another<br>
> sipexer instance can be used for register and
initiate calls.<br>
> <br>
> Writing the sip traffic in a pcap file is something
that I would like to<br>
> add as well.<br>
> <br>
> Cheers,<br>
> Daniel<br>
> <br>
>> On 14.02.22 19:27, Alex Balashov wrote:<br>
>> I haven’t had a chance to dig into it just yet,
but this is an incredibly exciting development, and fills
a very dire gap in open-source testing tools. <br>
>> <br>
>> SIPp was the only real game in town and, despite
some very creative efforts over the years, fundamentally
is not composable: it doesn’t lend itself to headless
automation or embedding in CI pipelines, and isn’t
terribly useful for monitoring. The remainder is a
miscellany of relatively unsophisticated or quirky tools,
none of which have the flexibility you are providing here.
<br>
>> <br>
>> Very grateful that you wrote this, and excited to
try it! Thank you so much for this work!<br>
>> <br>
>> — Alex<br>
>> <br>
>>>> On Feb 14, 2022, at 1:23 PM, Juha
Heinanen <<a href="mailto:jh@tutpro.com" target="_blank">jh@tutpro.com</a>>
wrote:<br>
>>> <br>
>>> Daniel-Constantin Mierla writes:<br>
>>> <br>
>>>> WebSocket (for WebRTC)<br>
>>>> * send SIP requests of any type (e.g.,
INFO, SUBSCRIBE, NOTIFY, …)<br>
>>>> <br>
>>>> One usage example that could ease the
testing of Kamailio is initiating<br>
>>>> registrations or simulating calls over
WebSocket without the need of<br>
>>>> having a JavaScript soft phone
application running in a web browser.<br>
>>> Thanks for the tool. Regarding SIP over
WebSocket, baresip supports<br>
>>> WebSocket transport in all platforms.<br>
>>> <br>
>>> -- Juha<br>
>>> <br>
>>>
_______________________________________________<br>
>>> Kamailio (SER) - Development Mailing List<br>
>>> <a href="mailto:sr-dev@lists.kamailio.org" target="_blank">sr-dev@lists.kamailio.org</a><br>
>>> <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
>> -- <br>
>> Alex Balashov | Principal | Evariste Systems LLC<br>
>> <br>
>> Tel: +1-706-510-6800 / +1-800-250-5920
(toll-free)<br>
>> Web: <a href="http://www.evaristesys.com/" rel="noreferrer" target="_blank">http://www.evaristesys.com/</a>,
<a href="http://www.csrpswitch.com/" rel="noreferrer" target="_blank">http://www.csrpswitch.com/</a><br>
>> <br>
>> <br>
>> _______________________________________________<br>
>> Kamailio (SER) - Development Mailing List<br>
>> <a href="mailto:sr-dev@lists.kamailio.org" target="_blank">sr-dev@lists.kamailio.org</a><br>
>> <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
> <br>
> -- <br>
> Daniel-Constantin Mierla -- <a href="http://www.asipto.com" rel="noreferrer" target="_blank">www.asipto.com</a><br>
> <a href="http://www.twitter.com/miconda" rel="noreferrer" target="_blank">www.twitter.com/miconda</a>
-- <a href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank">www.linkedin.com/in/miconda</a><br>
> Kamailio Advanced Training - Online<br>
> Feb 21-24, 2022 (America Timezone)<br>
> * <a href="https://www.asipto.com/sw/kamailio-advanced-training-online/" rel="noreferrer" target="_blank">https://www.asipto.com/sw/kamailio-advanced-training-online/</a><br>
> <br>
<br>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
* <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not
reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
* <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">
<div dir="ltr">About: <a href="http://about.me/dujinfang" target="_blank">http://about.me/dujinfang</a><br>
Blog: <a href="http://www.dujinfang.com" target="_blank">http://www.dujinfang.com</a><br>
Other: <a href="http://rts.cn" target="_blank">http://rts.cn</a>
<div>
<div><br>
</div>
</div>
</div>
</div>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
* <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not
reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
* <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
</div>
<br clear="all">
<br>
-- <br>
<div dir="ltr">
<div dir="ltr">Best regards,
<div>Igor</div>
</div>
</div>
<br>
<fieldset></fieldset>
<pre>__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
* <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
* <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre cols="72">--
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Online
Feb 21-24, 2022 (America Timezone)
* <a href="https://www.asipto.com/sw/kamailio-advanced-training-online/" target="_blank">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
</div>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
* <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
* <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div>