Another possibility is you are looking at an old invocation in ps and your > run did not start a new sipsak??? > > > LoL. No, I was doing a "while [
1 ]" with a "ps | grep sipsak" in order to check the next sip call ;) 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 @.. 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 ! FYI, i'm using Centos 6.1 if I remeber right. Cheers. Nick > > ----- Original Message ----- > From: "Nicolas KARP" <[email protected]> > To: "<[email protected]>" <[email protected] > > > 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@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,@extra_opts) > > > Any idea ? > > Many thanks. > > > # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > - - - - - - - - - - - - - - - - - - - - > > # - - Nicolas KARP > # - - Network and Security Engineer > # - - Email : [email protected] > # - - Linkedin : http://www.linkedin.com/in/nicolaskarp > # - - Viadeo : http://www.viadeo.com/fr/profile/ nicolas.karp > # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > - - - - - - - - - - - - - - - - - - - - > > > > _______________________________________________ > smokeping-users mailing list > [email protected] > https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users >
_______________________________________________ smokeping-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
