diff options
Diffstat (limited to 'web/attachments/349111-patch.txt')
-rw-r--r-- | web/attachments/349111-patch.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/web/attachments/349111-patch.txt b/web/attachments/349111-patch.txt new file mode 100644 index 0000000..2eae01d --- /dev/null +++ b/web/attachments/349111-patch.txt | |||
@@ -0,0 +1,21 @@ | |||
1 | --- check_asterisk.pl 2009-09-24 03:13:56.000000000 -0700 | ||
2 | +++ check_asterisk.pl.changed 2009-11-01 13:10:06.000000000 -0800 | ||
3 | @@ -31,7 +31,8 @@ | ||
4 | my $iax_timestamp = "00000000"; | ||
5 | my $iax_outbound_seq = "00"; | ||
6 | my $iax_inbound_seq = "00"; | ||
7 | -my $iax_type = "06"; #IAX_Control | ||
8 | +my $iax_type = "06"; #IAX_Control | ||
9 | +my $iax_frame_value = "1e"; #POKE | ||
10 | |||
11 | sub ok { | ||
12 | $s = shift; | ||
13 | @@ -224,7 +225,7 @@ | ||
14 | socket(PING, PF_INET, SOCK_DGRAM, getprotobyname("udp")); | ||
15 | |||
16 | $msg = pack "H24", $iax_src_call . $iax_dst_call . $iax_timestamp . | ||
17 | - $iax_outbound_seq . $iax_inbound_seq . $iax_type . $iax_type; | ||
18 | + $iax_outbound_seq . $iax_inbound_seq . $iax_type . $iax_frame_value ; | ||
19 | |||
20 | $ipaddr = inet_aton($host); | ||
21 | $sendto = sockaddr_in($port,$ipaddr); | ||