#!/usr/bin/perl # SIProvaSIP.pl # mangle with SIP stuff # Rocco Lucia $pid = open(SIPSAK, "-|"); if(!$pid) { open(SIPSAK,"|sipsak -n -v -l 34999 -G -f - -s sip:phone1\@10.0.0.66") || die "I will die\n"; printf SIPSAK <;tag=4686b5b0 To: "phone1" Contact: "asterisk" Call-ID: qPHqkuzHAP24\@10.0.0.2 CSeq: 1149 NOTIFY User-Agent: Asterisk PBX Event: message-summary Content-Type: application/simple-message-summary Content-Length: 37 Messages-Waiting: yes Voicemail: 3/2 EOF }