Commit 4176bf3f authored by Pekka Pessi's avatar Pekka Pessi

CVS checkout pessi-darcs-to-cvs-2005-09-19

darcs-hash:20050922123200-65a35-52c01c9e1d0abf874c3957257940351bafc19df5.gz
parent 9097e82c
......@@ -34,7 +34,7 @@
* for header X.
*
* In addition to this interface, the parser provider interface is
* documented in the <a href="group_sip_parser.html">SIP Parser module</a>.
* documented in the <a href="../sip/group__sip__parser.html">SIP Parser module</a>.
* The parser provider interface makes it possible to extend HTTP parser with
* new headers or extend existing ones.
*/
......@@ -29,13 +29,13 @@
* @author Martti Mela <Martti.Mela@nokia.com>
*
* @date Created: Wed Feb 14 18:37:04 EET 2001 ppessi
* $Date: 2005/08/08 19:10:01 $
* $Date: 2005/09/19 11:12:10 $
*/
#include "config.h"
const char nea_server_c_id[] =
"$Id: nea_server.c,v 1.2 2005/08/08 19:10:01 ppessi Exp $";
"$Id: nea_server.c,v 1.3 2005/09/19 11:12:10 kaiv Exp $";
#include <stddef.h>
#include <stdlib.h>
......
......@@ -30,13 +30,13 @@
* @author Pekka Pessi <Pekka.Pessi@nokia.com>
*
* @date Created: Tue Aug 21 15:18:26 2001 ppessi
* $Date: 2005/09/09 10:56:31 $
* $Date: 2005/09/19 11:12:10 $
*/
#include "config.h"
const char _nta_test_c_rcs_id[] =
"$Id: nta_test.c,v 1.5 2005/09/09 10:56:31 ppessi Exp $";
"$Id: nta_test.c,v 1.6 2005/09/19 11:12:10 kaiv Exp $";
#include <stddef.h>
#include <stdlib.h>
......
Using nua_cli
=============
The nua example application, nua_cli, is a command line tool for testing
NUA. It can be used to call, messaging, and as presence client. Currently,
it works properly only on Linux.
To run the program:
-------------------
At least two nua_cli is needed to talk to each other. You must specify each ip/port
as follows at startup (sip:ip_address:port) eg.
./nua_cli sip:10.0.0.1:5060
and
./nua_cli sip:10.0.0.2:5061
There is also a script NUA which sets some sip environment variables which nua_cli
reads on startup which you can edit by hand if needed.
The commands are as follows:
----------------------------
i - invite user, e.g., i sip:user@host
b - bye user, tear down call
c - cancel call request
m - send an instant message, e.g., m sip:user@host
ref - send a refer ref sip:user@host
r - register, e.g., r sip:registrar.com
u - unregister
s - subscribe, e.g., s sip:user@host
us - unsubscribe
q, x - quit, exit
When a call is received, it can be either answered or declined:
a - answer/accept
d - decline
#
# Media configuration file for nua_cli
#
# Root configuration 's=/' is used as default. Select the desired
# configuration from Surf settings 'media template'.
#
# ----------------------------------------------------------------------
# Explanation of parameters:
#
# ---
# media templates:
# m=* # match any media
# m=* 0 * # match any media
# m=* 0 RTP/AVP # match any media with RTP transport
# m=* 0 RTP/SAVP # match any media with SRTP transport
# m=* 0 TCP # match any media with TCP transport
# m=* 0 TCP * # match any media with TCP transport
#
# ---
# media address
#
# c=IN IP4 0.0.0.0 # Bind to any available IPv4 address
# c=IN IP4 172.21.40.40 # Bind to specific IPv4 address
# c=IN IP6 :: # Bind to any available IPv6 address
# c=IN IP6 FF1E:03AD::7F2E:172A:1E24 # Bind to specific IPv6 address
#
# ---
# session-level attributes
#
# a=mss-dev:foobar # set the MSS resource label (mr_label)
# a=mss-dev:loopback # Use loopback audio device
# a=mss-dev:oss # Use OSS audio instead of default
#
# ---
# session-level attributes; specific to audio
#
# a=mss-frame-len:20 # Audio device frame length
# a=mss-min-duration:80 # Audio device wakeup treshold
# a=mss-slot:slot # Set the 'slot' parameter when opening ad
#
# ---
# media-level attributes; specific to audio
#
# a=mss-delay:40 # Jitter buffer target delay in ms
# a=mss-max-delay:40 # Jitter buffer max delay in ms
# a=mss-mode:97 32 # Set the codec (pt 97) mode
#
#
# --------------------------------------------------------------------
#
# This file is part of the Sofia-SIP package
#
# Copyright (C) 2005 Nokia Corporation.
#
# Contact: Pekka Pessi <pekka.pessi@nokia.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public License
# as published by the Free Software Foundation; either version 2.1 of
# the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
# 02110-1301 USA
#
# --------------------------------------------------------------------
# --------------------------------------------------------------------
# Default templates
# Root configuration - only configured media
v=0
s=/
a=mss:#If you do not have ALSA drivers remove next line
a=mss:#mss-dev:loopback
m=*
# --------------------------------------------------------------------
# Single medium templates
# Audio only
v=0
s=/only_audio
m=audio 0 *
# Video only
v=0
s=/only_video
m=video 0 *
# Chat only
v=0
s=/only_chat
m=message 0 *
# Comedia only
v=0
s=/comedia
m=application 0 tcp vnd.nokia-test
# --------------------------------------------------------------------
# Mixed media templates
# All audio and video codecs explicitly iterated, plus chat
v=0
s=/all
m=audio 0 RTP/AVP 96 97 98 99 8 0 100 101
a=rtpmap:96 AMR/8000
a=rtpmap:97 AMR-WB/16000
a=rtpmap:98 GSM-EFR/8000
a=rtpmap:99 G723/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:100 L16/16000/2
a=rtpmap:101 L16/48000/2
m=video 0 RTP/AVP 96 97 98 34
a=rtpmap:96 H263-2000/90000
a=rtpmap:96 H263-1998/90000
a=rtpmap:97 MP4V-ES/90000
a=rtpmap:34 H263/90000
m=* 0 *
# All 16kHz audio codecs, plus other media
v=0
s=/all16kHz
m=audio 0 RTP/AVP 96 97
a=rtpmap:96 AMR-WB/16000
a=rtpmap:97 L16/16000
a=rtpmap:97 L16/16000/2
m=* 0 *
# All 8kHz codecs, plus other media, plus other media
v=0
s=/all8kHz
m=audio 0 RTP/AVP 96 97 98 99 8 0 99 100
a=rtpmap:96 AMR/8000
a=rtpmap:97 GSM-EFR/8000
a=rtpmap:98 G723/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:99 L16/8000
a=rtpmap:100 L16/8000/2
m=* 0 *
# PCM audio, plus other media
v=0
s=/pcm
m=audio 0 RTP/AVP 0 8
m=* 0 *
# L16 mono audio, plus other media
v=0
s=/l16mono16
m=audio 0 RTP/AVP 97
a=rtpmap:97 L16/16000
m=* 0 *
# L16 stereo audio, plus other media
v=0
s=/l16ste16
m=audio 0 RTP/AVP 97
a=rtpmap:97 L16/16000/2
m=* 0 *
# L16 48000Hz/stereo audio, plus other media
v=0
s=/l16ste48
m=audio 0 RTP/AVP 99
a=rtpmap:99 L16/48000/2
m=* 0 *
# AMR-wb audio, plus other media
v=0
s=/amr-wb
m=audio 0 RTP/AVP 96
a=rtpmap:96 AMR-WB/16000
m=* 0 *
# AMR-nb audio, plus other media
v=0
s=/amr-nb
m=audio 0 RTP/AVP 96
a=rtpmap:96 AMR/8000
m=* 0 *
# EFR audio, plus other media
v=0
s=/efr
m=audio 0 RTP/AVP 96
a=rtpmap:96 GSM-EFR/8000
m=* 0 *
# G723 audio, plus other media
v=0
s=/g723
m=audio 0 RTP/AVP 96
a=rtpmap:96 G723/8000
m=* 0 *
# AMR test audio, plus other media
v=0
s=/amrtest
m=audio 0 RTP/AVP 97 98
a=mss:# This is AMR format we desire
a=rtpmap:97 AMR/8000
a=fmtp:97 mode-set=4,5,6 mode-change-period=1 mode-change-neighbor=1 maxptime=20 crc=1 robust-sorting=1
a=mss-encpar:97 vad=on use-redundancy=1
a=mss-mode:97 32
a=mss-frame-len:20
a=mss-min-duration:80
m=* 0 *
# --------------------------------------------------------------------
# Templates with custom MSS parameters
# All codecs with loopback as mss-dev
v=0
s=/loopback
a=mss-dev:loopback
m=* 0 *
v=0
s=/loop-audio
a=mss-dev:loopback
m=audio 0 *
# OSS as mss-dev
v=0
s=/oss
a=mss-dev:oss
m=* 0 *
v=0
o=surf 0 0 IN IP4 0.0.0.0
c=IN IP4 0.0.0.0
s=/eap
a=mss-dev:eap
a=mss-frame-len:20 # 40 Audio device frame lenght
a=mss-min-duration:80 # 80 Audio device wakeup treshold
m=audio 0 RTP/AVP 0
a=mss-min-duration:80
a=mss-delay:80
a=mss-max-delay:400
# --------------------------------------------------------------------
# Testing templates
# Long test path
v=0
s=/long/test/path
......@@ -31,13 +31,13 @@
* @author Tat Chan <Tat.Chan@nokia.com>
*
* @date Created: Wed Feb 14 18:32:58 2001 ppessi
* $Date: 2005/09/09 10:56:31 $
* $Date: 2005/09/19 11:12:10 $
*/
#include "config.h"
const char _nua_stack_c_id[] =
"$Id: nua_stack.c,v 1.4 2005/09/09 10:56:31 ppessi Exp $";
"$Id: nua_stack.c,v 1.5 2005/09/19 11:12:10 kaiv Exp $";
#include <stddef.h>
#include <stdlib.h>
......
......@@ -29,12 +29,12 @@
* @author Kai Vehmanen <Kai.Vehmanen@nokia.com>
*
* @date Created: Wed Feb 14 17:09:44 2001 ppessi
* $Date: 2005/08/10 11:34:35 $
* $Date: 2005/09/19 11:12:10 $
*/
#ifndef NUA_STACK_H
/** Defined when <nua_stack.h> has been included. */
#define NUA_STACK_H "$Id: nua_stack.h,v 1.2 2005/08/10 11:34:35 ppessi Exp $"
#define NUA_STACK_H "$Id: nua_stack.h,v 1.3 2005/09/19 11:12:10 kaiv Exp $"
/* SOXXX: pthread doesn't seem to work...? */
#undef HAVE_PTHREAD_H
......
......@@ -27,13 +27,13 @@
* @author Pekka Pessi <Pekka.Pessi@nokia.com>
*
* @date Created: Wed Feb 21 10:13:29 2001 ppessi
* $Date: 2005/09/09 10:56:31 $
* $Date: 2005/09/19 11:12:10 $
*/
#include "config.h"
const char _nua_tag_c_id[] =
"$Id: nua_tag.c,v 1.4 2005/09/09 10:56:31 ppessi Exp $";
"$Id: nua_tag.c,v 1.5 2005/09/19 11:12:10 kaiv Exp $";
#define TAG_NAMESPACE "nua"
......
......@@ -23,7 +23,7 @@
*/
#ifndef NUA_TAG_H /** Defined when <nua_tag.h> has been included. */
#define NUA_TAG_H "$Id: nua_tag.h,v 1.3 2005/09/09 10:56:31 ppessi Exp $"
#define NUA_TAG_H "$Id: nua_tag.h,v 1.4 2005/09/19 11:12:10 kaiv Exp $"
/**@file nua_tag.h
* @brief Tags for Nokia User Agent Library
......@@ -31,7 +31,7 @@
* @author Pekka Pessi <Pekka.Pessi@nokia.com>
*
* @date Created: Mon Feb 19 18:54:26 EET 2001 ppessi
* $Date: 2005/09/09 10:56:31 $
* $Date: 2005/09/19 11:12:10 $
*/
#ifndef SU_TAG_H
......
......@@ -28,13 +28,13 @@
* @author Kai Vehmanen <kai.vehmanen@nokia.com>
*
* @date Created: Fri Feb 18 10:25:08 2000 ppessi
* $Date: 2005/07/20 20:35:36 $
* $Date: 2005/09/19 11:12:10 $
*/
#include "config.h"
const char sdp_c_id_[] =
"$Id: sdp.c,v 1.1.1.1 2005/07/20 20:35:36 kaiv Exp $";
"$Id: sdp.c,v 1.2 2005/09/19 11:12:10 kaiv Exp $";
#include <stddef.h>
#include <stdlib.h>
......
......@@ -23,14 +23,14 @@
*/
#ifndef SDP_H
#define SDP_H "$Id: sdp.h,v 1.3 2005/09/09 10:56:31 ppessi Exp $"
#define SDP_H "$Id: sdp.h,v 1.4 2005/09/19 11:12:10 kaiv Exp $"
/**@file sdp.h Simple SDP (RFC 2327) Interface.
*
* @author Pekka Pessi <Pekka.Pessi@nokia.com>
* @author Kai Vehmanen <kai.vehmanen@nokia.com>
*
* @date Created: Fri Feb 18 08:54:48 2000 ppessi
* $Date: 2005/09/09 10:56:31 $
* $Date: 2005/09/19 11:12:10 $
*/
#ifndef SU_ALLOC_H
......
......@@ -32,13 +32,13 @@
* @author Kai Vehmanen <kai.vehmanen@nokia.com>
*
* @date Created: Tue Mar 6 18:33:42 2001 ppessi
* $Date: 2005/07/20 20:35:37 $
* $Date: 2005/09/19 11:12:10 $
*/
#include "config.h"
const char sdp_torture_c_id[] =
"$Id: sdp_torture.c,v 1.1.1.1 2005/07/20 20:35:37 kaiv Exp $";
"$Id: sdp_torture.c,v 1.2 2005/09/19 11:12:10 kaiv Exp $";
#include <stdio.h>
#include <string.h>
......
......@@ -28,13 +28,13 @@
* @author Pekka Pessi <Pekka.Pessi@nokia.com>
*
* @date Created: Wed Aug 3 20:27:15 EEST 2005
* $Date: 2005/09/09 10:56:31 $
* $Date: 2005/09/19 11:12:10 $
*/
#include "config.h"
const char soa_c_id[] =
"$Id: soa.c,v 1.3 2005/09/09 10:56:31 ppessi Exp $";
"$Id: soa.c,v 1.4 2005/09/19 11:12:10 kaiv Exp $";
#include <stddef.h>
#include <stdlib.h>
......
......@@ -23,13 +23,13 @@
*/
#ifndef SOA_H
#define SOA_H "$Id: soa.h,v 1.3 2005/09/09 10:56:31 ppessi Exp $"
#define SOA_H "$Id: soa.h,v 1.4 2005/09/19 11:12:10 kaiv Exp $"
/**@file soa.h SDP Offer/Answer (RFC 3264) Interface.
*
* @author Pekka Pessi <Pekka.Pessi@nokia.com>
*
* @date Created: Fri Jul 15 15:43:53 EEST 2005 ppessi
* $Date: 2005/09/09 10:56:31 $
* $Date: 2005/09/19 11:12:10 $
*/
#ifndef SU_WAIT_H
......
......@@ -29,13 +29,13 @@
* @author Pekka Pessi <Pekka.Pessi@nokia.com>
*
* @date Created: Tue Aug 16 17:06:06 EEST 2005
* $Date: 2005/08/17 14:51:23 $
* $Date: 2005/09/19 11:12:10 $
*/
#include "config.h"
const char soa_asynch_c_id[] =
"$Id: soa_asynch.c,v 1.1 2005/08/17 14:51:23 ppessi Exp $";
"$Id: soa_asynch.c,v 1.2 2005/09/19 11:12:10 kaiv Exp $";
#include <stddef.h>
#include <stdlib.h>
......
......@@ -23,13 +23,13 @@
*/
#ifndef SOA_SESSION_H
#define SOA_SESSION_H "$Id: soa_session.h,v 1.2 2005/09/09 10:56:31 ppessi Exp $"
#define SOA_SESSION_H "$Id: soa_session.h,v 1.3 2005/09/19 11:12:10 kaiv Exp $"
/**@file soa_session.h Internal API for SDP Offer/Answer Interface.
*
* @author Pekka Pessi <Pekka.Pessi@nokia.com>
*
* @date Created: Mon Aug 1 15:43:53 EEST 2005 ppessi
* $Date: 2005/09/09 10:56:31 $
* $Date: 2005/09/19 11:12:10 $
*/
#ifndef SOA_H
......
......@@ -29,13 +29,13 @@
* @author Pekka Pessi <Pekka.Pessi@nokia.com>
*
* @date Created: Tue Aug 16 17:06:06 EEST 2005
* $Date: 2005/09/09 10:56:31 $
* $Date: 2005/09/19 11:12:10 $
*/
#include "config.h"
const char soa_static_c_id[] =
"$Id: soa_static.c,v 1.2 2005/09/09 10:56:31 ppessi Exp $";
"$Id: soa_static.c,v 1.3 2005/09/19 11:12:10 kaiv Exp $";
#include <stddef.h>
#include <stdlib.h>
......
......@@ -27,13 +27,13 @@
* @author Pekka Pessi <Pekka.Pessi@nokia.com>
*
* @date Created: Wed Aug 3 20:28:17 EEST 2005
* $Date: 2005/09/09 10:56:31 $
* $Date: 2005/09/19 11:12:10 $
*/
#include "config.h"
const char soa_tag_c_id[] =
"$Id: soa_tag.c,v 1.3 2005/09/09 10:56:31 ppessi Exp $";
"$Id: soa_tag.c,v 1.4 2005/09/19 11:12:10 kaiv Exp $";
#include <su.h>
......
......@@ -28,13 +28,13 @@
* @author Pekka Pessi <Pekka.Pessi@nokia.com>
*
* @date Created: Wed Aug 17 12:12:12 EEST 2005 ppessi
* $Date: 2005/09/09 10:56:31 $
* $Date: 2005/09/19 11:12:10 $
*/
#include "config.h"
const char test_soa_c_id[] =
"$Id: test_soa.c,v 1.2 2005/09/09 10:56:31 ppessi Exp $";
"$Id: test_soa.c,v 1.3 2005/09/19 11:12:10 kaiv Exp $";
#include <stddef.h>
#include <stdlib.h>
......
......@@ -29,7 +29,7 @@
* @author Mikko Haataja <ext-Mikko.A.Haataja@nokia.com>,
* @author Pekka Pessi <Pekka.Pessi@nokia.com>.
*
* $Date: 2005/08/08 19:10:15 $
* $Date: 2005/09/19 11:12:10 $
*/
#include "config.h"
......
......@@ -28,13 +28,13 @@
* @author Pekka Pessi <Pekka.Pessi@nokia.com>.
*
* @date Created: Thu Aug 19 01:12:25 1999 ppessi
* $Date: 2005/09/09 10:56:31 $
* $Date: 2005/09/19 11:12:10 $
*/
#include "config.h"
char const su_alloc_c_id[] =
"$Id: su_alloc.c,v 1.2 2005/09/09 10:56:31 ppessi Exp $";
"$Id: su_alloc.c,v 1.3 2005/09/19 11:12:10 kaiv Exp $";
/**@defgroup su_alloc Memory Management Tutorial
*
......
......@@ -30,13 +30,13 @@
*
* @date Created: Wed Mar 10 17:05:23 2004 ppessi
*
* $Date: 2005/07/20 20:36:00 $
* $Date: 2005/09/19 11:12:10 $
*/
#include "config.h"
const char torture_rbtree_c_id[] =
"$Id: torture_rbtree.c,v 1.1.1.1 2005/07/20 20:36:00 kaiv Exp $";
"$Id: torture_rbtree.c,v 1.2 2005/09/19 11:12:10 kaiv Exp $";
#include <stddef.h>
#include <string.h>
......
......@@ -32,7 +32,7 @@
* @author Pekka Pessi <Pekka.Pessi@nokia.com>
*
* @date Created: Wed Aug 22 13:53:24 2001 ppessi
* $Date: 2005/09/09 10:56:31 $
* $Date: 2005/09/19 11:12:10 $
*
* @par Example Program
*
......
......@@ -56,7 +56,7 @@ dnl =====================================================================
AC_DEFUN([SOFIA_M4_ID], [
AC_SUBST([SOFIA_M4_ID],
[$Id: sac-general.m4,v 1.1.1.1 2005/07/20 20:34:54 kaiv Exp $])])
[$Id: sac-general.m4,v 1.2 2005/09/19 11:12:10 kaiv Exp $])])
dnl ===================================================================
dnl Get host, target and build variables filled with appropriate info,
......
......@@ -9,7 +9,7 @@ dnl automake complains about missing su/su_configure.h.
AC_DEFUN([SAC_SOFIA_SU], [
# Beginning of SAC_SOFIA_SU
# $Id: sac-su2.m4,v 1.2 2005/09/09 10:56:41 ppessi Exp $
# $Id: sac-su2.m4,v 1.3 2005/09/19 11:12:10 kaiv Exp $
AC_REQUIRE([SAC_WITH_RT])
......
......@@ -29,13 +29,13 @@
* @author Pekka Pessi <Pekka.Pessi@nokia.com>
*
* @date Created: Wed Feb 14 18:37:04 EET 2001 ppessi
* $Date: 2005/09/07 13:59:54 $
* $Date: 2005/09/19 11:12:10 $
*/
#include "config.h"
const char _nua_cli_c_id[] =
"$Id: nua_cli.c,v 1.2 2005/09/07 13:59:54 kaiv Exp $";
"$Id: nua_cli.c,v 1.3 2005/09/19 11:12:10 kaiv Exp $";
#include <stddef.h>
#include <stdlib.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment