« Previous - Version 64/150 (diff) - Next » - Current version
Adrian Georgescu, 03/12/2009 07:42 pm


= Testing the library =

<acronym title="WikiStart, Sip*, depth=2">TOC</acronym>

Included with the library, a set of command line tools are available for setting up audio, instant messaging (IM), file transfer and desktop sharing sessions, publication and subscription to presence and other type of SIP events.

The requirements for using the command line tools are:

1. A valid configuration. See [wiki:SipConfiguration Configuration] chapter for more information.  
1. A SIP account, read below for how to obtain one.
SIP account

The simplest way to start is to register a free SIP account at http://sip2sip.info. Fill in the form below, the account information will be e-mailed to you: {{{
#!html
<form method=POST action='https://secure.dns-hosting.info/register_sip_account.phtml'>
<table border=0 width=550>

&lt;tr&gt;
&lt;td valign=top&gt;
First name
&lt;/td&gt;
&lt;td colspan=2 valign=top&gt;
&lt;input type=text name=firstName value=''&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td valign=top&gt;
Last name
&lt;/td&gt;
&lt;td colspan=2 valign=top&gt;
&lt;input type=text name=lastName value=''&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;    
&lt;td valign=top&gt;
E-mail
&lt;/td&gt;
&lt;td colspan=2 valign=top&gt;
&lt;input type=text name=email value=''&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td valign=top&gt;
Timezone
&lt;/td&gt;
&lt;td colspan=2 valign=top&gt;
&lt;select name=timezone&gt;&lt;option&gt;&lt;option &gt;Africa/Abidjan&lt;option &gt;Africa/Accra&lt;option &gt;Africa/Addis_Ababa&lt;option &gt;Africa/Algiers&lt;option &gt;Africa/Asmera&lt;option &gt;Africa/Bamako&lt;option &gt;Africa/Bangui&lt;option &gt;Africa/Banjul&lt;option &gt;Africa/Bissau&lt;option &gt;Africa/Blantyre&lt;option &gt;Africa/Brazzaville&lt;option &gt;Africa/Bujumbura&lt;option &gt;Africa/Cairo&lt;option &gt;Africa/Casablanca&lt;option &gt;Africa/Ceuta&lt;option &gt;Africa/Conakry&lt;option &gt;Africa/Dakar&lt;option &gt;Africa/Dar_es_Salaam&lt;option &gt;Africa/Djibouti&lt;option &gt;Africa/Douala&lt;option &gt;Africa/El_Aaiun&lt;option &gt;Africa/Freetown&lt;option &gt;Africa/Gaborone&lt;option &gt;Africa/Harare&lt;option &gt;Africa/Johannesburg&lt;option &gt;Africa/Kampala&lt;option &gt;Africa/Khartoum&lt;option &gt;Africa/Kigali&lt;option &gt;Africa/Kinshasa&lt;option &gt;Africa/Lagos&lt;option &gt;Africa/Libreville&lt;option &gt;Africa/Lome&lt;option &gt;Africa/Luanda&lt;option &gt;Africa/Lubumbashi&lt;option &gt;Africa/Lusaka&lt;option &gt;Africa/Malabo&lt;option &gt;Africa/Maputo&lt;option &gt;Africa/Maseru&lt;option &gt;Africa/Mbabane&lt;option &gt;Africa/Mogadishu&lt;option &gt;Africa/Monrovia&lt;option &gt;Africa/Nairobi&lt;option &gt;Africa/Ndjamena&lt;option &gt;Africa/Niamey&lt;option &gt;Africa/Nouakchott&lt;option &gt;Africa/Ouagadougou&lt;option &gt;Africa/Porto-Novo&lt;option &gt;Africa/Sao_Tome&lt;option &gt;Africa/Timbuktu&lt;option &gt;Africa/Tripoli&lt;option &gt;Africa/Tunis&lt;option &gt;Africa/Windhoek&lt;option &gt;America/Adak&lt;option &gt;America/Anchorage&lt;option &gt;America/Anguilla&lt;option &gt;America/Antigua&lt;option &gt;America/Araguaina&lt;option &gt;America/Aruba&lt;option &gt;America/Asuncion&lt;option &gt;America/Atka&lt;option &gt;America/Barbados&lt;option &gt;America/Belem&lt;option &gt;America/Belize&lt;option &gt;America/Boa_Vista&lt;option &gt;America/Bogota&lt;option &gt;America/Boise&lt;option &gt;America/Buenos_Aires&lt;option &gt;America/Cambridge_Bay&lt;option &gt;America/Cancun&lt;option &gt;America/Caracas&lt;option &gt;America/Catamarca&lt;option &gt;America/Cayenne&lt;option &gt;America/Cayman&lt;option &gt;America/Chicago&lt;option &gt;America/Chihuahua&lt;option &gt;America/Cordoba&lt;option &gt;America/Costa_Rica&lt;option &gt;America/Cuiaba&lt;option &gt;America/Curacao&lt;option &gt;America/Danmarkshavn&lt;option &gt;America/Dawson&lt;option &gt;America/Dawson_Creek&lt;option &gt;America/Denver&lt;option &gt;America/Detroit&lt;option &gt;America/Dominica&lt;option &gt;America/Edmonton&lt;option &gt;America/Eirunepe&lt;option &gt;America/El_Salvador&lt;option &gt;America/Ensenada&lt;option &gt;America/Fort_Wayne&lt;option &gt;America/Fortaleza&lt;option &gt;America/Glace_Bay&lt;option &gt;America/Godthab&lt;option &gt;America/Goose_Bay&lt;option &gt;America/Grand_Turk&lt;option &gt;America/Grenada&lt;option &gt;America/Guadeloupe&lt;option &gt;America/Guatemala&lt;option &gt;America/Guayaquil&lt;option &gt;America/Guyana&lt;option &gt;America/Halifax&lt;option &gt;America/Havana&lt;option &gt;America/Hermosillo&lt;option &gt;America/Indiana&lt;option &gt;America/Indianapolis&lt;option &gt;America/Inuvik&lt;option &gt;America/Iqaluit&lt;option &gt;America/Jamaica&lt;option &gt;America/Jujuy&lt;option &gt;America/Juneau&lt;option &gt;America/Kentucky&lt;option &gt;America/Knox_IN&lt;option &gt;America/La_Paz&lt;option &gt;America/Lima&lt;option &gt;America/Los_Angeles&lt;option &gt;America/Louisville&lt;option &gt;America/Maceio&lt;option &gt;America/Managua&lt;option &gt;America/Manaus&lt;option &gt;America/Martinique&lt;option &gt;America/Mazatlan&lt;option &gt;America/Mendoza&lt;option &gt;America/Menominee&lt;option &gt;America/Merida&lt;option &gt;America/Mexico_City&lt;option &gt;America/Miquelon&lt;option &gt;America/Monterrey&lt;option &gt;America/Montevideo&lt;option &gt;America/Montreal&lt;option &gt;America/Montserrat&lt;option &gt;America/Nassau&lt;option &gt;America/New_York&lt;option &gt;America/Nipigon&lt;option &gt;America/Nome&lt;option &gt;America/Noronha&lt;option &gt;America/North_Dakota&lt;option &gt;America/Panama&lt;option &gt;America/Pangnirtung&lt;option &gt;America/Paramaribo&lt;option &gt;America/Phoenix&lt;option &gt;America/Port-au-Prince&lt;option &gt;America/Port_of_Spain&lt;option &gt;America/Porto_Acre&lt;option &gt;America/Porto_Velho&lt;option &gt;America/Puerto_Rico&lt;option &gt;America/Rainy_River&lt;option &gt;America/Rankin_Inlet&lt;option &gt;America/Recife&lt;option &gt;America/Regina&lt;option &gt;America/Rio_Branco&lt;option &gt;America/Rosario&lt;option &gt;America/Santiago&lt;option &gt;America/Santo_Domingo&lt;option &gt;America/Sao_Paulo&lt;option &gt;America/Scoresbysund&lt;option &gt;America/Shiprock&lt;option &gt;America/St_Johns&lt;option &gt;America/St_Kitts&lt;option &gt;America/St_Lucia&lt;option &gt;America/St_Thomas&lt;option &gt;America/St_Vincent&lt;option &gt;America/Swift_Current&lt;option &gt;America/Tegucigalpa&lt;option &gt;America/Thule&lt;option &gt;America/Thunder_Bay&lt;option &gt;America/Tijuana&lt;option &gt;America/Tortola&lt;option &gt;America/Vancouver&lt;option &gt;America/Virgin&lt;option &gt;America/Whitehorse&lt;option &gt;America/Winnipeg&lt;option &gt;America/Yakutat&lt;option &gt;America/Yellowknife&lt;option &gt;Antarctica/Casey&lt;option &gt;Antarctica/Davis&lt;option &gt;Antarctica/DumontDUrville&lt;option &gt;Antarctica/Mawson&lt;option &gt;Antarctica/McMurdo&lt;option &gt;Antarctica/Palmer&lt;option &gt;Antarctica/South_Pole&lt;option &gt;Antarctica/Syowa&lt;option &gt;Antarctica/Vostok&lt;option &gt;Arctic/Longyearbyen&lt;option &gt;Asia/Aden&lt;option &gt;Asia/Almaty&lt;option &gt;Asia/Amman&lt;option &gt;Asia/Anadyr&lt;option &gt;Asia/Aqtau&lt;option &gt;Asia/Aqtobe&lt;option &gt;Asia/Ashgabat&lt;option &gt;Asia/Ashkhabad&lt;option &gt;Asia/Baghdad&lt;option &gt;Asia/Bahrain&lt;option &gt;Asia/Baku&lt;option &gt;Asia/Bangkok&lt;option &gt;Asia/Beirut&lt;option &gt;Asia/Bishkek&lt;option &gt;Asia/Brunei&lt;option &gt;Asia/Calcutta&lt;option &gt;Asia/Choibalsan&lt;option &gt;Asia/Chongqing&lt;option &gt;Asia/Chungking&lt;option &gt;Asia/Colombo&lt;option &gt;Asia/Dacca&lt;option &gt;Asia/Damascus&lt;option &gt;Asia/Dhaka&lt;option &gt;Asia/Dili&lt;option &gt;Asia/Dubai&lt;option &gt;Asia/Dushanbe&lt;option &gt;Asia/Gaza&lt;option &gt;Asia/Harbin&lt;option &gt;Asia/Hong_Kong&lt;option &gt;Asia/Hovd&lt;option &gt;Asia/Irkutsk&lt;option &gt;Asia/Istanbul&lt;option &gt;Asia/Jakarta&lt;option &gt;Asia/Jayapura&lt;option &gt;Asia/Jerusalem&lt;option &gt;Asia/Kabul&lt;option &gt;Asia/Kamchatka&lt;option &gt;Asia/Karachi&lt;option &gt;Asia/Kashgar&lt;option &gt;Asia/Katmandu&lt;option &gt;Asia/Krasnoyarsk&lt;option &gt;Asia/Kuala_Lumpur&lt;option &gt;Asia/Kuching&lt;option &gt;Asia/Kuwait&lt;option &gt;Asia/Macao&lt;option &gt;Asia/Macau&lt;option &gt;Asia/Magadan&lt;option &gt;Asia/Manila&lt;option &gt;Asia/Muscat&lt;option &gt;Asia/Nicosia&lt;option &gt;Asia/Novosibirsk&lt;option &gt;Asia/Omsk&lt;option &gt;Asia/Oral&lt;option &gt;Asia/Phnom_Penh&lt;option &gt;Asia/Pontianak&lt;option &gt;Asia/Pyongyang&lt;option &gt;Asia/Qatar&lt;option &gt;Asia/Qyzylorda&lt;option &gt;Asia/Rangoon&lt;option &gt;Asia/Riyadh&lt;option &gt;Asia/Riyadh87&lt;option &gt;Asia/Riyadh88&lt;option &gt;Asia/Riyadh89&lt;option &gt;Asia/Saigon&lt;option &gt;Asia/Sakhalin&lt;option &gt;Asia/Samarkand&lt;option &gt;Asia/Seoul&lt;option &gt;Asia/Shanghai&lt;option &gt;Asia/Singapore&lt;option &gt;Asia/Taipei&lt;option &gt;Asia/Tashkent&lt;option &gt;Asia/Tbilisi&lt;option &gt;Asia/Tehran&lt;option &gt;Asia/Tel_Aviv&lt;option &gt;Asia/Thimbu&lt;option &gt;Asia/Thimphu&lt;option &gt;Asia/Tokyo&lt;option &gt;Asia/Ujung_Pandang&lt;option &gt;Asia/Ulaanbaatar&lt;option &gt;Asia/Ulan_Bator&lt;option &gt;Asia/Urumqi&lt;option &gt;Asia/Vientiane&lt;option &gt;Asia/Vladivostok&lt;option &gt;Asia/Yakutsk&lt;option &gt;Asia/Yekaterinburg&lt;option &gt;Asia/Yerevan&lt;option &gt;Atlantic/Azores&lt;option &gt;Atlantic/Bermuda&lt;option &gt;Atlantic/Canary&lt;option &gt;Atlantic/Cape_Verde&lt;option &gt;Atlantic/Faeroe&lt;option &gt;Atlantic/Jan_Mayen&lt;option &gt;Atlantic/Madeira&lt;option &gt;Atlantic/Reykjavik&lt;option &gt;Atlantic/South_Georgia&lt;option &gt;Atlantic/St_Helena&lt;option &gt;Atlantic/Stanley&lt;option &gt;Australia/ACT&lt;option &gt;Australia/Adelaide&lt;option &gt;Australia/Brisbane&lt;option &gt;Australia/Broken_Hill&lt;option &gt;Australia/Canberra&lt;option &gt;Australia/Darwin&lt;option &gt;Australia/Hobart&lt;option &gt;Australia/LHI&lt;option &gt;Australia/Lindeman&lt;option &gt;Australia/Lord_Howe&lt;option &gt;Australia/Melbourne&lt;option &gt;Australia/NSW&lt;option &gt;Australia/North&lt;option &gt;Australia/Perth&lt;option &gt;Australia/Queensland&lt;option &gt;Australia/South&lt;option &gt;Australia/Sydney&lt;option &gt;Australia/Tasmania&lt;option &gt;Australia/Victoria&lt;option &gt;Australia/West&lt;option &gt;Australia/Yancowinna&lt;option &gt;Brazil/Acre&lt;option &gt;Brazil/DeNoronha&lt;option &gt;Brazil/East&lt;option &gt;Brazil/West&lt;option &gt;Canada/Atlantic&lt;option &gt;Canada/Central&lt;option &gt;Canada/East-Saskatchewan&lt;option &gt;Canada/Eastern&lt;option &gt;Canada/Mountain&lt;option &gt;Canada/Newfoundland&lt;option &gt;Canada/Pacific&lt;option &gt;Canada/Saskatchewan&lt;option &gt;Canada/Yukon&lt;option &gt;Chile/Continental&lt;option &gt;Chile/EasterIsland&lt;option selected&gt;Europe/Amsterdam&lt;option &gt;Europe/Andorra&lt;option &gt;Europe/Athens&lt;option &gt;Europe/Belfast&lt;option &gt;Europe/Belgrade&lt;option &gt;Europe/Berlin&lt;option &gt;Europe/Bratislava&lt;option &gt;Europe/Brussels&lt;option &gt;Europe/Bucharest&lt;option &gt;Europe/Budapest&lt;option &gt;Europe/Chisinau&lt;option &gt;Europe/Copenhagen&lt;option &gt;Europe/Dublin&lt;option &gt;Europe/Gibraltar&lt;option &gt;Europe/Helsinki&lt;option &gt;Europe/Istanbul&lt;option &gt;Europe/Kaliningrad&lt;option &gt;Europe/Kiev&lt;option &gt;Europe/Lisbon&lt;option &gt;Europe/Ljubljana&lt;option &gt;Europe/London&lt;option &gt;Europe/Luxembourg&lt;option &gt;Europe/Madrid&lt;option &gt;Europe/Malta&lt;option &gt;Europe/Minsk&lt;option &gt;Europe/Monaco&lt;option &gt;Europe/Moscow&lt;option &gt;Europe/Nicosia&lt;option &gt;Europe/Oslo&lt;option &gt;Europe/Paris&lt;option &gt;Europe/Prague&lt;option &gt;Europe/Riga&lt;option &gt;Europe/Rome&lt;option &gt;Europe/Samara&lt;option &gt;Europe/San_Marino&lt;option &gt;Europe/Sarajevo&lt;option &gt;Europe/Simferopol&lt;option &gt;Europe/Skopje&lt;option &gt;Europe/Sofia&lt;option &gt;Europe/Stockholm&lt;option &gt;Europe/Tallinn&lt;option &gt;Europe/Tirane&lt;option &gt;Europe/Tiraspol&lt;option &gt;Europe/Uzhgorod&lt;option &gt;Europe/Vaduz&lt;option &gt;Europe/Vatican&lt;option &gt;Europe/Vienna&lt;option &gt;Europe/Vilnius&lt;option &gt;Europe/Warsaw&lt;option &gt;Europe/Zagreb&lt;option &gt;Europe/Zaporozhye&lt;option &gt;Europe/Zurich&lt;option &gt;Indian/Antananarivo&lt;option &gt;Indian/Chagos&lt;option &gt;Indian/Christmas&lt;option &gt;Indian/Cocos&lt;option &gt;Indian/Comoro&lt;option &gt;Indian/Kerguelen&lt;option &gt;Indian/Mahe&lt;option &gt;Indian/Maldives&lt;option &gt;Indian/Mauritius&lt;option &gt;Indian/Mayotte&lt;option &gt;Indian/Reunion&lt;option &gt;Mexico/BajaNorte&lt;option &gt;Mexico/BajaSur&lt;option &gt;Mexico/General&lt;option &gt;Mideast/Riyadh87&lt;option &gt;Mideast/Riyadh88&lt;option &gt;Mideast/Riyadh89&lt;option &gt;Pacific/Apia&lt;option &gt;Pacific/Auckland&lt;option &gt;Pacific/Chatham&lt;option &gt;Pacific/Easter&lt;option &gt;Pacific/Efate&lt;option &gt;Pacific/Enderbury&lt;option &gt;Pacific/Fakaofo&lt;option &gt;Pacific/Fiji&lt;option &gt;Pacific/Funafuti&lt;option &gt;Pacific/Galapagos&lt;option &gt;Pacific/Gambier&lt;option &gt;Pacific/Guadalcanal&lt;option &gt;Pacific/Guam&lt;option &gt;Pacific/Honolulu&lt;option &gt;Pacific/Johnston&lt;option &gt;Pacific/Kiritimati&lt;option &gt;Pacific/Kosrae&lt;option &gt;Pacific/Kwajalein&lt;option &gt;Pacific/Majuro&lt;option &gt;Pacific/Marquesas&lt;option &gt;Pacific/Midway&lt;option &gt;Pacific/Nauru&lt;option &gt;Pacific/Niue&lt;option &gt;Pacific/Norfolk&lt;option &gt;Pacific/Noumea&lt;option &gt;Pacific/Pago_Pago&lt;option &gt;Pacific/Palau&lt;option &gt;Pacific/Pitcairn&lt;option &gt;Pacific/Ponape&lt;option &gt;Pacific/Port_Moresby&lt;option &gt;Pacific/Rarotonga&lt;option &gt;Pacific/Saipan&lt;option &gt;Pacific/Samoa&lt;option &gt;Pacific/Tahiti&lt;option &gt;Pacific/Tarawa&lt;option &gt;Pacific/Tongatapu&lt;option &gt;Pacific/Truk&lt;option &gt;Pacific/Wake&lt;option &gt;Pacific/Wallis&lt;option &gt;Pacific/Yap&lt;option &gt;US/Alaska&lt;option &gt;US/Aleutian&lt;option &gt;US/Arizona&lt;option &gt;US/Central&lt;option &gt;US/East-Indiana&lt;option &gt;US/Eastern&lt;option &gt;US/Hawaii&lt;option &gt;US/Indiana-Starke&lt;option &gt;US/Michigan&lt;option &gt;US/Mountain&lt;option &gt;US/Pacific&lt;option &gt;US/Samoa&lt;/select&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align=left valign=top colspan=3&gt;
&lt;input type=submit name=action value='Submit'&gt;
&lt;/td&gt;&lt;td align=right valign=bottom&gt;&lt;input type=hidden name=action value='add'&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/form&gt;
}}}

If you plan to offer a SIP service, you can setup your own SIP infrastructure using the following elements:

OpenSIPS SIP Proxy/Registrar/Presence http://opensips.org
MediaProxy RTP media relay http://mediaproxy-ng.org
OpenXCAP Presence policy server http://openxcap.org
MSRP Relay IM media relay http://msrprelay.org
SIP chatserver Multi-party chat server http://chatserver.ag-projects.com
Register * [wiki:sip_register sip_register] - REGISTER a SIP end-point with a SIP Registrar Audio sessions * [wiki:sip_audio_session sip_audio_session] - Setup audio sessions (Voice over IP) * [wiki:sip_message sip_message] - Send/receive text in page mode using SIP MESSAGE method Instant messaging * [wiki:sip_im_session sip_im_session] - Setup IM sessions using MSRP protocol * [wiki:sip_message sip_message] - Send/receive text in paging mode using SIP MESSAGE method File transfer * [wiki:sip_im_session sip_im_session] - Receive files using MSRP protocol * [wiki:sip_send_file sip_send_file] - Send files using MSRP protocol Presence * [wiki:sip_publish_presence sip_publish_presence] - PUBLISH presence to a Presence Agent * [wiki:sip_subscribe_presence sip_subscribe_presence] - SUBSCRIBE to presence information * [wiki:sip_subscribe_winfo sip_subscribe_winfo] - SUBSCRIBE to the watcher list on the Presence Agent XCAP policy * [wiki:xcapclient xcapclient] - PUT/GET/DELETE full or partial documents on an XCAP server * [wiki:xcap_pres_rules xcap_pres_rules] - Manage the content of the pres-rules XCAP document RLS services * [wiki:sip_subscribe_rls sip_subscribe_rls] - SUBSCRIBE to lists managed by a Resource List Server * [wiki:xcap_rls_services] - Manage the content of a RLS services XCAP document Desktop sharing * [wiki:sip_desktop_sharing sip_desktop_sharing] - Share desktop using VNC protocol