<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Another possibility is you are looking at an old invocation in ps and your run did not start a new sipsak???<br>
<br>
<br></blockquote><div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,102);display:inline">LoL. No, I was doing a "while [</div> <div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,102);display:inline">
1 ]" with a "ps | grep sipsak" in order to check the next sip call ;)<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,102);display:inline">The variable host looks good before the call of the funtion open because I tried to write the value of this variable and was able to see the : and @.. <br>
</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,102);display:inline"><br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,102);display:inline">I will try what you suggested. I think Perl should be using the shell "sh". I will check tomorrow and run some tests again. That's odd !<br>
<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,102);display:inline">FYI, i'm using Centos 6.1 if I remeber right. <br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,102);display:inline">
<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,102);display:inline">Cheers.<br><br>Nick<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,102);display:inline">
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><div><div class="h5">
----- Original Message -----<br>
From: "Nicolas KARP" <<a href="mailto:liste@karp.fr">liste@karp.fr</a>><br>
To: "<<a href="mailto:smokeping-users@lists.oetiker.ch">smokeping-users@lists.oetiker.ch</a>>" <<a href="mailto:smokeping-users@lists.oetiker.ch">smokeping-users@lists.oetiker.ch</a>><br>
Sent: Tuesday, July 16, 2013 12:09:48 PM<br>
Subject: [smokeping-users] SipSak : host uri issue<br>
<br>
Hi Everyone,<br>
<br>
As I'm not an expert in Perl, i don't really understand what is happening with this SipSak probe :<br>
<br>
Probe config :<br>
<br>
+ SipSak<br>
binary = /usr/local/bin/sipsak<br>
forks = 5<br>
offset = 50%<br>
step = 300<br>
timeout = 15<br>
params = --hostname myhost<br>
<br>
Traget config :<br>
<br>
++ SipGateway<br>
probe = SipSak<br>
host = hostip<br>
port = 5060<br>
user = nobody<br>
<br>
<br>
<br>
When I look at the "ps" output, here is what I see when smokeping executes the sipsak command :<br>
<br>
/usr/local/bin/sipsak -vv -A 20 -s sip nobody hostip 5060 --hostname myhost<br>
<br>
If I look at the code for the probe, the variable host should be something like :<br>
<br>
$host = $vars->{user}.'@'.$host if $vars->{user};<br>
$host = $host . ':' . $vars->{port} if $vars->{port};<br>
<br>
<br>
So in my case : "nobody@hostip:5060"<br>
<br>
But I don't know why the characters "@" and ":" were removed from the hostname when they are using with the command open :<br>
<br>
<br>
open (my $sak,'-|',$self->{properties}{binary},'-vv','-A',$pingcount,'-s','sip:'.$host,@extra_opts)<br>
<br>
<br>
Any idea ?<br>
<br>
Many thanks.<br>
<br>
<br>
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>
<br>
# - - Nicolas KARP<br>
# - - Network and Security Engineer<br>
# - - Email : <a href="mailto:liste@karp.fr">liste@karp.fr</a><br>
# - - Linkedin : <a href="http://www.linkedin.com/in/nicolaskarp" target="_blank">http://www.linkedin.com/in/nicolaskarp</a><br>
# - - Viadeo : <a href="http://www.viadeo.com/fr/profile/" target="_blank">http://www.viadeo.com/fr/profile/</a> nicolas.karp<br>
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>
<br>
<br>
<br>
</div></div>_______________________________________________<br>
smokeping-users mailing list<br>
<a href="mailto:smokeping-users@lists.oetiker.ch">smokeping-users@lists.oetiker.ch</a><br>
<a href="https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users</a><br>
</blockquote></div><br></div></div>