[SR-Users] SIP Ping utility with kamailio

2010-10-15 Thread JR Richardson
Hi All, Can someone point me in the right direction of a command line SIP Ping utility or how to invoke from Kamailio? I see there is a sip_ping.pl script in voip-hacks, does anyone have copy-paste text version of that, all I can find is the PDF? Thanks. JR -- JR Richardson Engineering for the

[SR-Users] SIP Ping utility with kamailio

2010-10-15 Thread Juha Heinanen
JR Richardson writes: > Can someone point me in the right direction of a command line SIP Ping > utility or how to invoke from Kamailio? you can use sipsak as command line ping tool. tm module has t_uac function that you can invoke via mi interface. i do not have any scripts for you. -- juha

Re: [SR-Users] SIP Ping utility with kamailio

2010-10-15 Thread Fred Posner
Hey JR... I use this: #! /usr/bin/perl -w use IO::Socket; use POSIX 'strftime'; my ($msg,$remotehost,$callid,$socket,$date,$branch,$localip,$dest); $remotehost = $ARGV[0] or die "FAIL \(no host defined\)\n"; if ($ARGV[1]) { $remoteport = $ARGV[1]; } else {

Re: [SR-Users] SIP Ping utility with kamailio

2010-10-15 Thread JR Richardson
On Fri, Oct 15, 2010 at 10:22 AM, Fred Posner wrote: > Hey JR... > > I use this: > > #! /usr/bin/perl -w > use IO::Socket; > use POSIX 'strftime'; > > my ($msg,$remotehost,$callid,$socket,$date,$branch,$localip,$dest); > > $remotehost = $ARGV[0] >        or die "FAIL \(no host defined\)\n"; > > if

Re: [SR-Users] SIP Ping utility with kamailio

2010-10-15 Thread Fred Posner
On Oct 15, 2010, at 11:42 AM, JR Richardson wrote: > On Fri, Oct 15, 2010 at 10:22 AM, Fred Posner wrote: >> Hey JR... >> >> I use this: >> >> #! /usr/bin/perl -w >> use IO::Socket; >> use POSIX 'strftime'; >> >> my ($msg,$remotehost,$callid,$socket,$date,$branch,$localip,$dest); >> >> $remot

Re: [SR-Users] SIP Ping utility with kamailio

2010-10-15 Thread JR Richardson
On Fri, Oct 15, 2010 at 10:50 AM, Fred Posner wrote: > On Oct 15, 2010, at 11:42 AM, JR Richardson wrote: > >> On Fri, Oct 15, 2010 at 10:22 AM, Fred Posner wrote: >>> Hey JR... >>> >>> I use this: >>> >>> #! /usr/bin/perl -w >>> use IO::Socket; >>> use POSIX 'strftime'; >>> >>> my ($msg,$remoteh

Re: [SR-Users] SIP Ping utility with kamailio

2010-10-16 Thread Olle E. Johansson
15 okt 2010 kl. 17.42 skrev JR Richardson: > On Fri, Oct 15, 2010 at 10:22 AM, Fred Posner wrote: >> Hey JR... >> >> I use this: >> >> #! /usr/bin/perl -w >> use IO::Socket; >> use POSIX 'strftime'; >> >> my ($msg,$remotehost,$callid,$socket,$date,$branch,$localip,$dest); >> >> $remotehost =

Re: [SR-Users] SIP Ping utility with kamailio

2010-10-16 Thread JR Richardson
> > JR, if you don't already know SIPSAK, go download it. It's what I use in > Nagios and many other scripts. > Nils has done a great job with it. > > /O= Thanks Olle, I'll check it out. JR ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-use