Commit 98cbe065 authored by Pekka Pessi's avatar Pekka Pessi

nua_cli example add removed (kv)

darcs-hash:20060215183842-65a35-b9e538707f3a096463e0d9f7f938f2903c7bd470.gz
parent 3c877e7e
......@@ -35,15 +35,21 @@ and specifically the libsofia-sip-ua library component.
There are also multiple example clients under
the "sofia-sip/utils" directory:
- nua_cli, console mode test application for Sofia-SIP
- sip-options, query SIP OPTIONS
- sip-options, query using SIP OPTIONS method
- sip-date, SIP date printer/parser
The Sofia-SIP su submodule also provides some small utils:
- addrinfo (libsofia-sip-ua/su), resolve host names
- localinfo (libsofia-sip-ua/su), prints information about
local network interfaces
References
----------
Project website:
http://sofia-sip.sourceforge.net
http://www.sourceforge.net/projects/sofia-sip
Mailing list:
......
2006-02-08 Kai Vehmanen <kai.vehmanen@nokia.com>
* Makefile.am, nua_cli.c: nua_cli example add removed from the
distribution package.
2005-09-29 Pekka Pessi <Pekka.Pessi@nokia.com>
* Printing all events.
......
......@@ -32,6 +32,6 @@ INCLUDES = -I$(sofiasrc)/features -I$(sofiabld)/features \
noinst_HEADERS = apps_utils.h
bin_PROGRAMS = nua_cli sip-options sip-date
bin_PROGRAMS = sip-options sip-date
LDADD = ../libsofia-sip-ua/libsofia-sip-ua.la $(GLIB_LIBS)
......@@ -5,7 +5,7 @@
* @nofile apps_utils.h
* @brief
*
* Copyright (C) 2005 Nokia Research Center.
* Copyright (C) 2005 Nokia Corporation.
*
* Written by Pekka Pessi <pekka -dot pessi -at- nokia -dot- com>
*
......
This diff is collapsed.
#! /bin/sh
#
# Startup script for nua_cli
#
# This uses proxy on local host (port 5060) by default
#
# --------------------------------------------------------------------
#
# 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
#
# --------------------------------------------------------------------
#
# If you dont't want to have proxy, start NUA with command
# env sip_proxy="-" ./NUA
# If you want to use default port, start NUA with command
# env sip_proxy="-" p=- ./NUA
# Export non-null variables
function xport # [env_var...]
{
local v
for v
do
if eval test -z '"$'$v'"' || eval test X- = '"X$'$v'"'
then
eval export -n $v
else
eval export $v
fi
done
}
# Search for a command from path list
# Assign $command as full path
function search # command [path list]
{
local p x
x=$1; shift;
for p
do
test -n "$p" && p="$p/"
if type -t "$p$x" >/dev/null; then
eval $x="$p$x"
break;
fi
done
}
# Search for more exotic binaries
search ifconfig /sbin /usr/sbin
search nua_cli . ${0%/NUA*} "" /opt/iptel/bin
true ${user:=`whoami`}
true ${name:=`finger $user | awk '/^Login:.*Name: / { sub(/.*Name: /, ""); print $0; }'`}
true ${dn:=`hostname`}
test ${p:=:*} = '-' && p=
true ${ip:=`$ifconfig eth0 | awk '/inet addr:/ { sub(/addr:/, "", $2); print $2; }'`}
#
# Set signaling parameters
#
# Dump all signaling messages to specified file
true ${TPORT_DUMP:=}
# If non-empty, nua_cli prints all signaling messages
true ${TPORT_LOG:=}
# This address is used in From (and To of REGISTER)
true ${SIPADDRESS:="$name<sip:$user@$dn>"}
# This is our Call-info (defaults to icon found on local host)
true ${SIPCALLINFO:="<http://$dn:$p/image.img>;purpose=icon"}
# This is our contact
true ${contact:="sip:$user@$ip$p;maddr=*"}
# This is our proxy
# This defaults to a proxy at 5060 port in local host
# Note: This requires that a separate proxy process is run
# and we register to it.
true ${sip_proxy:="sip:$ip"}
# Our product name
true ${USERAGENT:=NUA 0.2/NTA 1.1}
export TPORT_DUMP TPORT_LOG SIPADDRESS SIPCALLINFO sip_proxy
#
# Media parameters
#
# Address used by SDP
true ${HOSTADDRESS:=$ip}
# Media codecs in use
true ${SMM_AUDIO_CODECS=PCMA,PCMU,L16}
xport HOSTADDRESS SMM_AUDIO_CODECS
exec $nua_cli $contact
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