Disable SIP ALG on ZyXEL P661

Disabling SIP ALG – ZyXEL P661

 WARNING, deviating from these steps may cause the device to become non-responsive.

  1. Ensure the computer is connected to the router.
  2. From the Windows desktop open a Command Prompt window.
    Navigate: Start > All Programs > Accessories > Command Prompt.
  3. At the prompt type ipconfig then press the Enter key.
  4. From the Ethernet adapter Local Area Connection section, locate the Default Gateway address (e.g., 192.168.2.1).
    The Default Gateway address will vary depending upon the configuration.
  5. At the prompt type telnet 192.168.2.1 then press the Enter key.
    If telnet is not recognized, you may need to use something like Putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/)
  6. Enter the router password then press the Enter key.
    The default password is 1234.
  7. At the prompt type ‘ip nat service sip active 0′ without quotes, the last letter is a zero then press the Enter key.
  8. After being told that sip alg has been disabled, type in Exit.

How to Fix Task Scheduler: Error 0xC0000142

In Windows Server 2008, I was trying to work out why programs I’d made worked fine when executed manually, but when executed by Task Scheduler, the run failed and the run result said 0xC0000142.

It turns out its something to do with Desktop Heap. The desktop heap for each desktop that is associated with an interactive window station is much larger than the heap for non-interactive window station.

So tasks run in the non-interactive window station are running on of space. I have no clue what a desktop heap is and what its for, but I increased the non-interactive desktop heap and everythings great now.

Heres how…..

The size of each desktop heap allocation is controlled by the following registry value:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\SubSystems\Windows

 

The default data for this registry value will look something like the following (all on one line):

%SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows

SharedSection=1024,3072,512 Windows=On SubSystemType=Windows

ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3

ServerDll=winsrv:ConServerDllInitialization,2 ProfileControl=Off

MaxRequestThreads=16

 

The numeric values following “SharedSection=” control how desktop heap is allocated. These SharedSection values are specified in kilobytes.

The first SharedSection value (1024) is the shared heap size common to all desktops. This memory is not a desktop heap allocation, and the value should not be modified to address desktop heap problems.

The second SharedSection value (3072) is the size of the desktop heap for each desktop that is associated with an interactive window station, with the exception of the “Disconnect” and “Winlogon” desktops.

The third SharedSection value (512) is the size of the desktop heap for each desktop that is associated with a “non-interactive” window station. If this value is not present, the size of the desktop heap for non-interactive window stations will be same as the size specified for interactive window stations (the second SharedSection value).

Consider the two desktop heap exhaustion scenarios described above.  If the first scenario is encountered (session view space is exhausted), and most of the desktop heaps are non-interactive, then the third SharedSection can be decreased in an effort to allow more (smaller) non-interactive desktop heaps to be created.  Of course, this may not be an option if the processes using the non-interactive heaps require a full 512 KB.  If the second scenario is encountered (a single desktop heap allocation is full), then the second or third SharedSection value can be increased to allow each desktop heap to be larger than 3072 or 512 KB.  A potential problem with this is that fewer total desktop heaps can be created.

This and more information can be found here:-

http://blogs.msdn.com/b/ntdebugging/archive/2007/01/04/desktop-heap-overview.aspx

“BindingFailure was detected” in Visual Studio 2008

I just had an issue trying to connect to a web service with Visual Studio.

I received the following exception when I tried to start the application within VS.net 2008.

BindingFailure was detected Message: The assembly with display name 'company VoIP dd Code Importer.XmlSerializers' failed to load in the 'LoadFrom' binding context of the AppDomain with ID 1. The cause of the failure was: System.IO.FileNotFoundException: Could not load file or assembly 'company VoIP dd Code Importer.XmlSerializers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. File name: 'company VoIP dd Code Importer.XmlSerializers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' === Pre-bind state information === LOG: User = WEBSERVER1\Administrator LOG: DisplayName = company VoIP dd Code Importer.XmlSerializers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null, processorArchitecture=MSIL (Fully-specified) LOG: Appbase = file:///D:/HostingSpaces2/admin/companycommunications.com/Services/Source Files/company VoIP/company VoIP dd Code Importer/bin/Debug/ LOG: Initial PrivatePath = NULL Calling assembly : System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089. === LOG: This bind starts in default load context. LOG: Using application configuration file: D:\HostingSpaces2\admin\companycommunications.com\Services\Source Files\company VoIP\company VoIP dd Code Importer\bin\Debug\company VoIP dd Code Importer.vshost.exe.config LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config. LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///D:/HostingSpaces2/admin/companycommunications.com/Services/Source Files/company VoIP/company VoIP dd Code Importer/bin/Debug/company VoIP dd Code Importer.XmlSerializers.DLL. LOG: Attempting download of new URL file:///D:/HostingSpaces2/admin/companycommunications.com/Services/Source Files/company VoIP/company VoIP dd Code Importer/bin/Debug/company VoIP dd Code Importer.XmlSerializers/company VoIP dd Code Importer.XmlSerializers.DLL. LOG: Attempting download of new URL file:///D:/HostingSpaces2/admin/companycommunications.com/Services/Source Files/company VoIP/company VoIP dd Code Importer/bin/Debug/company VoIP dd Code Importer.XmlSerializers.EXE. LOG: Attempting download of new URL file:///D:/HostingSpaces2/admin/companycommunications.com/Services/Source Files/company VoIP/company VoIP dd Code Importer/bin/Debug/company VoIP dd Code Importer.XmlSerializers/company VoIP dd Code Importer.XmlSerializers.EXE.

I found the solution here: http://blog.unixwiz.net/2009/04/bindingfailure-was-detected-in-vs2008.html

The solution in my case was to turn this off by selecting Debug : Exceptions… and disabling Managed Debugging Assistants:

Microsoft Surface is Annoying me

Ok, so Microsoft need to improve. We all know that. But I don’t think they are going the right way about it.

Firstly, they’ve released the Windows RT version of their new Microsoft Surface. Sure, it looks cool. But if you can’t install any PC programs on it, whats the point? I’d just get an Ipad!

I also don’t understand why they delayed the Windows 8 version of the Surface that allows you to install programs that you’ve used on your PC.

Maybe they are hoping to fool people into buying the RT version thinking they can install the full version of Office etc. And once the customer realises their mistake, they’ll have to buy the Windows 8 version too.

Secondly, their emails are a little misleading. I just received this…

Surface is the beautiful new way to work and play from Microsoft. Loaded with Windows RT, Office Home & Student 2013 RT Preview, and fluid modern apps’

It says ‘work and play’, but without being able to install any PC software, how am I going to work? We use custom-written software to manage our clients accounts which will only work on PCs and Laptops. Not Windows RT. The version of Office that comes with Surface RT is a basic version. Not the full version you are used to.

It says ‘Loaded with…. fluid modern apps’. To me, ‘Loaded’ means full or plenty. But one of the main complaint ive heard so far is that there arent that many apps yet. Of course, that should be sorted over time.

My advice… if you really want windows…..wait for the Windows 8 version of the Surface…. or just get an ipad mini 🙂

And finally, the reason I wanted to write this post. I just saw a picture of a Microsoft store for the first time. Is it just me, or does it look surprisingly like an Apple store? I can’t see anything unique about it.

If not for the word MICROSOFT that was photoshoped in the background, I would have thought it was an Apple store.


p.s. Dont upgrade your non-touchscreen computer to Windows 8 if you don’t have to.

XLite 5 Dial plan not working properly

I had a problem recently with a user who upgraded to XLite 5 SIP Softphone.

Regardless of the numbers and settings, XLite 5 will force you to dial in the international format, regardless of whether that is correct.

 

To get around this issue, dial x before any number which will make xlite think you are dialling an internal extension and therefore won’t play with the number dialled.

For example, x001555123456

More information: http://www.keshercommunications.com