On SipXecs when you get a 404 not found, it does not only mean the user was not found, it means that the registrations string was not matched, so it is quite possible that the server aliases are not put under the Domain so strings do not match
XXXX@sip1.sip.company.com needs to match
add sip1.sip.company.com under Domain =>Alias
Thursday, August 16, 2012
Tuesday, August 14, 2012
add functionality to snmpd to report the output of a script
Add functionality to snmpd to report the output of a script
1. Create the script
cat /usr/local/check_reg.sh
#!/bin/bash
grep uri /var/sipxdata/sipdb/registration.xml | wc -l
2. Add it to snmpd.conf
cat /etc/snmp/snmpd.conf
...
extend check_reg /usr/local/check_reg.sh
....
3. now snmpwalk it
snmpwalk -v2c -c pub localhost NET-SNMP-AGENT-MIB::nsExtensions
1. Create the script
cat /usr/local/check_reg.sh
#!/bin/bash
grep uri /var/sipxdata/sipdb/registration.xml | wc -l
2. Add it to snmpd.conf
cat /etc/snmp/snmpd.conf
...
extend check_reg /usr/local/check_reg.sh
....
3. now snmpwalk it
snmpwalk -v2c -c pub localhost NET-SNMP-AGENT-MIB::nsExtensions
Monday, August 13, 2012
listen to g722 RTP streams in a PCAP file
The easiest way to listen to g722 RTP streams in a pcap file is to
1. Open the pcap file and just save the RTP packets (remove the RTCP using the filter rtp.ssrc!=0xBADBADBA)
2. Upload the file in http://pcap2wav.xplico.org/ and download the wav files
Many Thanks to http://pcap2wav.xplico.org/
Friday, June 15, 2012
Wednesday, May 30, 2012
Sunday, May 20, 2012
Windows VPN Connection with automatic routes added without default gateway option
type c:\windows\vpn.bat
@echo off
rasdial VPN_CONNECTION_NAME USERNAME PASSWORD
for /f "tokens=15 delims= " %%A in ('ipconfig ^| find "192.168.200"') do @set GW=%%A
route add 192.168.45.0 mask 255.255.255.0 %GW%
@echo off
rasdial VPN_CONNECTION_NAME USERNAME PASSWORD
for /f "tokens=15 delims= " %%A in ('ipconfig ^| find "192.168.200"') do @set GW=%%A
route add 192.168.45.0 mask 255.255.255.0 %GW%
Tuesday, May 15, 2012
DNS SRV records for SIP redundancy
DNS SRV records for SIP redundancy
http://blog.lithiumblue.com/2007/07/understanding-dns-srv-records-and-sip.html
http://blog.lithiumblue.com/2007/07/understanding-dns-srv-records-and-sip.html
Wednesday, May 02, 2012
SRV records for service redudnacy
You can use SRV records just like MX records for other services redundancy for services other than mail
Friday, April 06, 2012
rescue missing vmdk disk
recreate vmdk from *-flat.vmdk file
vmkfstool -c $SIZE -a lsilogic -d thin temp.vmdk
edit the temp file and replace temp-flat with your own flat file name
thanks to http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1002511
vmkfstool -c $SIZE -a lsilogic -d thin temp.vmdk
edit the temp file and replace temp-flat with your own flat file name
thanks to http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1002511
Wednesday, March 07, 2012
windows awk using for /f command
example:
C:\Documents and Settings\Ali>for /f "tokens=15 delims= " %A in ('ipconfig ^| find "192.168.7"') do @set GW=%A
windows extract ip address from command line
for /f "tokens=15 delims= " %A in ('ipconfig ^| find "192.168.7"') do @set GW=%A
Wednesday, February 29, 2012
Wednesday, February 22, 2012
Thursday, January 19, 2012
veeam scp problem windows 64 bit (x64)
download courflags from
http://www.virtualvcp.com/content/view/26/1/
then do a
courflags "C:\Program Files (x86)\Veeam\Veeam Backup and FastSCP\VeeamShell.exe" /32BIT+"
big thanks to
http://www.everything-virtual.com/?p=279
http://www.virtualvcp.com/content/view/26/1/
then do a
courflags "C:\Program Files (x86)\Veeam\Veeam Backup and FastSCP\VeeamShell.exe" /32BIT+"
big thanks to
http://www.everything-virtual.com/?p=279
Monday, January 16, 2012
vmware server 2 remote client problem on linux
goto somewhere like the below
cd ~/.mozilla/firefox/r1ejwkml.default/extensions/VMwareVMRC@vmware.com/plugins
and run
./vmware-vmrc -h "localhost:8333"
cd ~/.mozilla/firefox/r1ejwkml.default/extensions/VMwareVMRC@vmware.com/plugins
and run
./vmware-vmrc -h "localhost:8333"
Saturday, January 14, 2012
Tuesday, January 10, 2012
Friday, December 16, 2011
rsync vs scp
Remember not to try to rsync like scp, DO NOT SPECIFY PATH, instead look at the [] sections in rsyncd.conf called MODULES and use the below syntax
rsync * 192.168.1.1::MODULE_NAME
REMEMBER YOU ASS
rsync * 192.168.1.1::MODULE_NAME
REMEMBER YOU ASS
Subscribe to:
Posts (Atom)