[smokeping-users] SipSak : host uri issue
Nicolas KARP
liste at karp.fr
Tue Jul 16 18:09:48 CEST 2013
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 <nicolas at karp.fr>
# - - Linkedin : http://www.linkedin.com/in/nicolaskarp
# - - Viadeo : http://www.viadeo.com/fr/profile/nicolas.karp
<http://www.viadeo.com/fr/profile/nicolas.karp%20>
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20130716/4e1c4e90/attachment.htm
More information about the smokeping-users
mailing list