How to simulate SIP over Ethernet
This page describes the way to simulate a SIP User Agent with the following
features:
- connection to an Ethernet network
- establishment of signalling and medias channels by using SIP
- no registration from a Proxy
Connecting the unit
The Clarinet Book USB Ethernet 10/100 uses the RJ45 or AUI port and can be connected to a 10B2 BNC connector by using:
- an external transceiver (provided as an accessory) AUI-10B2
- the power supply of the Clarinet-Book which provide the power to the
transceiver
Setting the test conditions for Ethernet profile
A new profile can be created with the Wizard from the Template list by
selecting:
- LAN application.
- Profile with a description including LAN, Simu,
PH=10BT DL=SIP
- Filter with a description including DL= MAC802.3/Auto/SIP
Example using the wizard:
- ProfileèNewèLANèlan_simu_sip_ua.acpèFilter?èLan_auto_sip.acf
The IP-type simulation profile Sip_simu_mac_ua.aip
invoked by the Lan_simu_sip_ua.acp
is automatically copied in the same directory.
Both profiles (*.acp and *.aip) resulting from the wizard are ready for SIP simulation over an
Ethernet 10 Mbits interface.
Modifications can apply to the profile lan_simu_sip_ua.acp
- about physical interface:
- IEEE 802.3 Init: RJ45 10 Mbits or 100 Mbits.
see also item Monitor
Tx messages in Interface specification
- about IP call simulator name
- about acquisition limited to a set of MAC addresses
- Save the profile under a new name:
- ProfileèSave
asèfilename.acp.
Most of the modifications apply to the profile Sip_simu_mac_ua.aip
resulting
from the copy
Setting the addresses for basic SIP simulation profile
Profile Sip_simu_mac_ua.aip
needs to have some modifications of the default destination/source:
- Open the profile:
- ProfileèOpen
IP...èSip_simu_mac_ua.aip
-
Modifications to setup the Emulators of the SIP User Agent:
- Changing the MAC address: Initialize Initialize
Emulator èMAC
Setting the value of Own
Ethernet address (hex)
- Changing the IP address: Initialize Initialize
Emulator è
IP
Setting the value of Own
IP address
Optionally the subnet mask and the Gateway address should be added
That IP value will be used as IP source of
transmitted IP packets
- Changing the TCP hostname: Initialize Initialize
Emulator èTCP-IP
(use-sockets)
Setting the value of Hostname
That value will be used to "auto- update"
URI's host of headers (Via, From, To, Contact..) in SIP
messages
-
Modifications to setup the SIP parameters of the SIP User Agent :
- Setting the stack UDP / TCP to run SIP protocol Initialize
Emulator èSIP èSIP
Protocol Parameters
- Selecting TCP or USP
- Setting value of TCP
address port or UDP
address port
-
Modifications to setup the SIP messages used by the SIP-UA :
- Changing the content of INVITE Generator
èSIPDestination1 èEdit
Setting the content of INVITE:
- URI of destination is set in the To
field (start line will be automaticaly updated)
- setting the content of body with sdp fields
That value and field "Content-sdp"
will be automatically added if the line is removed
- Changing the conditions for terminating calls Responder
èSIPSource1 èEdit
Setting the matching condition if
find :
- by default the string is set the the beginning of the INVITE set
into Generator
If the conditions matches, it allows to reply
to the first INVITE; the other ones with the same content will be
discarded .
- Save the profile under a new name:
- ProfileèSave
asèfilename.aip.
- Select this new name in the LAN profile and save it.
- ProfileèSave
asèfilename.acp.
Running the profile
The profile is ready to generate one outgoing call and to terminate any
incoming call for 30 seconds.
To launch the profile:
- Select Profile->Run or click over
. It allows to select the name of profile. See Running
a test
- The windows of the Event-Editor is automatically opened.
To stop the profile
- Click over
See: Stopping
a test
- The window of the Event-Editor is automatically close
Troubleshooting over Ethernet
- No messages displayed on the Event-Editor windows. Check if the LED of the
Clarinet Book show activity over LAN interface
|