Emulator

Top  Previous  Next

 

Note:We recommend that SIP be deployed and tested to an actual device. As a rule, running multimedia applications that depend on tcp and upc is challenging on the emulator. Debugging and development are best done via real devices.

 

How to use Asta SIP VoIP library together with VS2003 and x86 emulator.

 

1. Please be sure you install PocketPC 2003 SDK at least. Asta SIP VoIP  doesn't support PocketPC 2000/2002.

 

2. Start VS2003

 

3. Change the test application in the following way to disable the microphone.

 

- uncomment line 127 and comment line 128.

- uncomment line 232 and comment line 231

This change runs Asta SIP library in no-microphone mode - as PocketPC 2003

emulator is too buggy for the microphone API.

 

4. Add the libsipnative.dll to test project (Context menu - Add, Add  existing item...)

 

5. Add the 2.wav to test project.

 

5. Start Deploy in VS2003. Do not start emulator application manually!

 

6. Copy 2.wav to root directory in emulator using File Explorer.

 

7. Remove libsipnative.dll and 2.wav from test project.

 

8. Run the test project.

 

9. Make call to itself (127.0.0.1) :)

 

Please be aware - emulator is very CPU intensive - so audio artefacts are possible.

 

How to call to another IP/remote peer?

 

The emulator must be connected to a network. By default it uses built in NAT  connection type with mapping to weird IP address. Unfortunately this disables all  incoming UDP traffic.

 

So you should use a fixed IP address for emulator.

 

Please see Platform manager, PocketPC 2003 emulator, Properties button,

Startup Server's Configure button, Ethernet combo box. You should have at

least 1 open active TCP/IP connection.

 

Hint 1: the Platform Manager (or emulator - didn't find precise answer)

are bugging. It cant find specified connection often. So please delete or

disable all remaining connections.

 

Hint 2: Don't forget to choose "Save Emulator state" when closing emulator.

 

Hint 3: Don't forget about firewall.

 

After going through all this, we believe you will want to deploy to an actual device also.