[smokeping-users] SipSak : host uri issue

Russell Dwarshuis rjd at merit.edu
Tue Jul 16 19:30:31 CEST 2013


I don't see anything obviously wrong.  Perhaps the shell that open invokes is changing them.  Try open with just three arguments instead, like

open (my $sak, '-|', "$self->{properties}{binary} -vv -A $pingcount -s sip:$host " . join(' ', at extra_opts));

Another possibility is you are looking at an old invocation in ps and your run did not start a new sipsak???


-Russell Dwarshuis

----- Original Message -----
From: "Nicolas KARP" <liste at karp.fr>
To: "<smokeping-users at lists.oetiker.ch>" <smokeping-users at lists.oetiker.ch>
Sent: Tuesday, July 16, 2013 12:09:48 PM
Subject: [smokeping-users] SipSak : host uri issue

Hi Everyone, 

As I'm not an expert in Perl, i don't really understand what is happening with this SipSak probe : 

Probe config : 

+ SipSak 
binary = /usr/local/bin/sipsak 
forks = 5 
offset = 50% 
step = 300 
timeout = 15 
params = --hostname myhost 

Traget config : 

++ SipGateway 
probe = SipSak 
host = hostip 
port = 5060 
user = nobody 



When I look at the "ps" output, here is what I see when smokeping executes the sipsak command : 

/usr/local/bin/sipsak -vv -A 20 -s sip nobody hostip 5060 --hostname myhost 

If I look at the code for the probe, the variable host should be something like : 

$host = $vars->{user}.'@'.$host if $vars->{user}; 
$host = $host . ':' . $vars->{port} if $vars->{port}; 


So in my case : "nobody at hostip:5060" 

But I don't know why the characters "@" and ":" were removed from the hostname when they are using with the command open : 


open (my $sak,'-|',$self->{properties}{binary},'-vv','-A',$pingcount,'-s','sip:'.$host, at extra_opts) 


Any idea ? 

Many thanks. 


# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

# - - Nicolas KARP 
# - - Network and Security Engineer 
# - - Email : liste at karp.fr 
# - - Linkedin : http://www.linkedin.com/in/nicolaskarp 
# - - Viadeo : http://www.viadeo.com/fr/profile/ nicolas.karp 
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 



_______________________________________________
smokeping-users mailing list
smokeping-users at lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users



More information about the smokeping-users mailing list