sip-router
7 years agoREADME - converted to Kamailio
Olle E. Johansson [Fri, 18 Jan 2013 12:32:55 +0000 (13:32 +0100)]
README - converted to Kamailio

7 years agoUpdate to current module set for 4.0
Olle E. Johansson [Fri, 18 Jan 2013 08:41:42 +0000 (09:41 +0100)]
Update to current module set for 4.0

7 years agocarrierroute: fix cross-compilation
Ovidiu Sas [Fri, 18 Jan 2013 00:19:37 +0000 (19:19 -0500)]
carrierroute: fix cross-compilation

7 years agodialog: fix for is_in_profile()
Daniel-Constantin Mierla [Wed, 16 Jan 2013 21:37:08 +0000 (22:37 +0100)]
dialog: fix for is_in_profile()

- function was broken, reported by Klaus Darilion

7 years agoRevert "First commit (raw code) of new module: app_java (Java Native Interface suppor...
Daniel-Constantin Mierla [Wed, 16 Jan 2013 21:28:30 +0000 (22:28 +0100)]
Revert "First commit (raw code) of new module: app_java (Java Native Interface support for Kamailio)."

This reverts commit 3cc85a3915ed69471966cf741d7cf2adee4f3b0b.

- code in master is frozen for v4.0.0

7 years agoRevert "app_java:"
Daniel-Constantin Mierla [Wed, 16 Jan 2013 21:27:34 +0000 (22:27 +0100)]
Revert "app_java:"

This reverts commit db74e5230a26fdfebbf88f9575ea8a7636719743.

- code is master is fronzen for v4.0.0

7 years agoapp_java:
Konstantin Mosesov [Wed, 16 Jan 2013 19:08:42 +0000 (21:08 +0200)]
app_java:
    - code cleanup
    - changed all *alloc to pkg_*alloc
    - added examples module configuration file

7 years agoFirst commit (raw code) of new module: app_java (Java Native Interface support for...
Konstantin Mosesov [Wed, 16 Jan 2013 18:43:29 +0000 (20:43 +0200)]
First commit (raw code) of new module: app_java (Java Native Interface support for Kamailio).

7 years agoxhttp_pi: adding note about using the provisioning interface with db_text
Ovidiu Sas [Wed, 16 Jan 2013 16:38:18 +0000 (11:38 -0500)]
xhttp_pi: adding note about using the provisioning interface with db_text

7 years agoxhttp_pi: more documentation updates
Ovidiu Sas [Wed, 16 Jan 2013 15:48:25 +0000 (10:48 -0500)]
xhttp_pi: more documentation updates

7 years agoxhttp_pi: documentation updates
Ovidiu Sas [Wed, 16 Jan 2013 15:37:30 +0000 (10:37 -0500)]
xhttp_pi: documentation updates
 - reported by Philippe Sultan <philippe.sultan@gmail.com>

7 years agoStarting to prepare README/INSTALL files for release
Olle E. Johansson [Tue, 15 Jan 2013 08:46:22 +0000 (09:46 +0100)]
Starting to prepare README/INSTALL files for release

7 years agob/f: If no parameter is given, the "fixup_lir" method will never get called...
Carsten Bock [Tue, 15 Jan 2013 08:03:25 +0000 (09:03 +0100)]
b/f: If no parameter is given, the "fixup_lir" method will never get called...

7 years agob/f: Need to link librt (on OS non-Darwin)
Carsten Bock [Tue, 15 Jan 2013 07:18:52 +0000 (08:18 +0100)]
b/f: Need to link librt (on OS non-Darwin)

7 years agob/f: Modify IMS-Group Modulenames to reflect module-name changes.
Carsten Bock [Mon, 14 Jan 2013 18:28:27 +0000 (19:28 +0100)]
b/f: Modify IMS-Group Modulenames to reflect module-name changes.

7 years agob/f: Do not remove lib*, only "real" libs
Carsten Bock [Mon, 14 Jan 2013 16:46:08 +0000 (17:46 +0100)]
b/f: Do not remove lib*, only "real" libs

7 years agoregistrar: fix event route execution warning
Daniel-Constantin Mierla [Sat, 12 Jan 2013 12:10:18 +0000 (13:10 +0100)]
registrar: fix event route execution warning

7 years agoxmlrpc Modify doc structure to kamailio-like
Olle E. Johansson [Sat, 12 Jan 2013 07:45:11 +0000 (08:45 +0100)]
xmlrpc Modify doc structure to kamailio-like

7 years agousrloc(k) Fix compiler warnings
Olle E. Johansson [Sat, 12 Jan 2013 07:33:25 +0000 (08:33 +0100)]
usrloc(k) Fix compiler warnings

Thanks to juha for the reminder

7 years agoxhttp_pi: make sure that cfg directory exists during install
Ovidiu Sas [Sat, 12 Jan 2013 00:14:15 +0000 (19:14 -0500)]
xhttp_pi: make sure that cfg directory exists during install

7 years agolib/ims: fix cross compilation
Ovidiu Sas [Fri, 11 Jan 2013 20:59:31 +0000 (15:59 -0500)]
lib/ims: fix cross compilation

7 years agosqlops: remove unused variable `sv'
Ovidiu Sas [Fri, 11 Jan 2013 20:20:11 +0000 (15:20 -0500)]
sqlops: remove unused variable `sv'

7 years agopermissions: remove unused variable `count'
Ovidiu Sas [Fri, 11 Jan 2013 20:13:16 +0000 (15:13 -0500)]
permissions: remove unused variable `count'

7 years agooutbound: fix cross-compilation
Ovidiu Sas [Fri, 11 Jan 2013 19:13:53 +0000 (14:13 -0500)]
outbound: fix cross-compilation

7 years agoosp: fix cross-compilation
Ovidiu Sas [Fri, 11 Jan 2013 19:13:36 +0000 (14:13 -0500)]
osp: fix cross-compilation

7 years agowebsocket: fix cross-compilation
Ovidiu Sas [Fri, 11 Jan 2013 19:13:07 +0000 (14:13 -0500)]
websocket: fix cross-compilation

7 years agotls: fix ssl cross-compilation
Ovidiu Sas [Fri, 11 Jan 2013 19:12:49 +0000 (14:12 -0500)]
tls: fix ssl cross-compilation

7 years agoauth_identity: fix ssl cross-compilation
Ovidiu Sas [Fri, 11 Jan 2013 19:12:10 +0000 (14:12 -0500)]
auth_identity: fix ssl cross-compilation

7 years agomodules_k/uac: document RR append_fromtag requirement in auto mode
Klaus Darilion [Fri, 11 Jan 2013 13:22:57 +0000 (14:22 +0100)]
modules_k/uac: document RR append_fromtag requirement in auto mode

7 years agopkg/kamailio/(centos|fedora): updated release tag in .spec
Peter Dunkley [Fri, 11 Jan 2013 10:54:00 +0000 (10:54 +0000)]
pkg/kamailio/(centos|fedora): updated release tag in .spec

7 years agodialog: fix bug when detect_spirals enabled
Anca Vamanu [Fri, 11 Jan 2013 09:07:45 +0000 (11:07 +0200)]
dialog: fix bug when detect_spirals enabled

If detect_spirals enabled and the caller sent an Invite which received a
negative response and then immediately sent another Invite with the
same callid and tag, the module did not create a dialog record for the
second Invite. It wrongly concluded that the Invite is spiraled. This
resulted in missing CDR for that call.
Behavior observed if the first Invite has a small Session-Timer interval
and receives a 422 reply. When the phone sent the second Invite with a
larger Session-Timer, which could have been successful, it was not recorded
by the dialog module.

7 years agomodules/ims_qos: update to correct binding name for ims_usrloc_pcscf
Jason Penton [Fri, 11 Jan 2013 08:47:44 +0000 (10:47 +0200)]
modules/ims_qos: update to correct binding name for ims_usrloc_pcscf

7 years agoMakefile.defs: version set to 4.0.0-pre0
Daniel-Constantin Mierla [Fri, 11 Jan 2013 08:32:12 +0000 (09:32 +0100)]
Makefile.defs: version set to 4.0.0-pre0

- marking pre-release phase

7 years agoims_registrar_scscf: fix cross-compilation
Ovidiu Sas [Thu, 10 Jan 2013 21:53:12 +0000 (16:53 -0500)]
ims_registrar_scscf: fix cross-compilation

7 years agoims_registrar_pcscf: fic cross-compilation
Ovidiu Sas [Thu, 10 Jan 2013 21:43:29 +0000 (16:43 -0500)]
ims_registrar_pcscf: fic cross-compilation

7 years agoims_isc: fix cross-compilation
Ovidiu Sas [Thu, 10 Jan 2013 21:43:05 +0000 (16:43 -0500)]
ims_isc: fix cross-compilation

7 years agoims_icscf: fic cross-compilation
Ovidiu Sas [Thu, 10 Jan 2013 21:42:34 +0000 (16:42 -0500)]
ims_icscf: fic cross-compilation

7 years agoims_auth: fix cross-compilation
Ovidiu Sas [Thu, 10 Jan 2013 21:42:08 +0000 (16:42 -0500)]
ims_auth: fix cross-compilation

7 years agokamailio.cfg: describe log levels
Klaus Darilion [Thu, 10 Jan 2013 21:45:09 +0000 (22:45 +0100)]
kamailio.cfg: describe log levels

7 years agomtree Add RPC command mtree.summary
Olle E. Johansson [Thu, 10 Jan 2013 20:45:09 +0000 (21:45 +0100)]
mtree Add RPC command mtree.summary

7 years agomtree Bug fix - save number of nodes in mtree data structure at load
Olle E. Johansson [Thu, 10 Jan 2013 19:10:49 +0000 (20:10 +0100)]
mtree Bug fix - save number of nodes in mtree data structure at load

Otherwise MI function doesn't report anything but zero nodes and memory

7 years agomodules/rtpproxy: allowing rtpproxy_manage to take the flags parameter as a pseudo...
Peter Dunkley [Thu, 10 Jan 2013 19:01:47 +0000 (19:01 +0000)]
modules/rtpproxy: allowing rtpproxy_manage to take the flags parameter as a pseudo-variable

- Feature added by Hugh Waite @ Crocodile RCS

7 years agokamdbctl: new command - kamdbctl pframework create
Ovidiu Sas [Thu, 10 Jan 2013 17:50:06 +0000 (12:50 -0500)]
kamdbctl: new command - kamdbctl pframework create
 - creates a provisioning framework for the installed db tables

7 years agomodules_k/cfgutils: add locking around gflags
Alex Hermann [Thu, 29 Sep 2011 16:47:46 +0000 (18:47 +0200)]
modules_k/cfgutils: add locking around gflags

gflags are stored in shared memory and must thus be protected against
concurrent access.

Reads from an int are atomic on most (all?) real world hardware, so only
modification of the flags is placed under the protection of the lock, not
reads.

7 years agopkg/kamailio/(centos|fedora): updated .spec
Peter Dunkley [Thu, 10 Jan 2013 16:00:46 +0000 (16:00 +0000)]
pkg/kamailio/(centos|fedora): updated .spec

7 years agomodules/ims_qos: Added documentation
Richard Good [Thu, 10 Jan 2013 14:28:07 +0000 (16:28 +0200)]
modules/ims_qos: Added documentation

Added admin documentation and README for ims_qos module

7 years agomodules/ims_usrloc_pcscf: Updated documentation
Richard Good [Thu, 10 Jan 2013 14:08:54 +0000 (16:08 +0200)]
modules/ims_usrloc_pcscf: Updated documentation

Updated documentation and added README for ims_usrloc_pcscf module

7 years agomodules/ims_auth: Updated documentation
Richard Good [Thu, 10 Jan 2013 13:50:01 +0000 (15:50 +0200)]
modules/ims_auth:  Updated documentation

Updated documentation and added README for ims_auth modules

7 years agomodules/ims_icscf: documentation updated
Richard Good [Thu, 10 Jan 2013 13:40:00 +0000 (15:40 +0200)]
modules/ims_icscf: documentation updated

Documentation for IMS ICSCF modules updated and README added

7 years agomodules/ims_qos: Added IMS QoS module
Jason Penton [Thu, 10 Jan 2013 13:25:56 +0000 (15:25 +0200)]
modules/ims_qos: Added IMS QoS module
- This module provides Diameter Rx IMS interface between PCSCF and PCRF
  functions

7 years agoparser/sdp: fast-access pointer for raw SDP stream string
Jason Penton [Thu, 10 Jan 2013 12:33:54 +0000 (14:33 +0200)]
parser/sdp: fast-access pointer for raw SDP stream string
- basically a pointer to the raw SDP stream

7 years agomodules/ims_isc: documentation added
Richard Good [Thu, 10 Jan 2013 12:29:38 +0000 (14:29 +0200)]
modules/ims_isc: documentation added

Added documentation including README for ims_isc module

7 years agocore: make database version table name configurable from script
Alex Hermann [Tue, 8 Jan 2013 18:09:48 +0000 (19:09 +0100)]
core: make database version table name configurable from script

When kamailio is part of a bigger project and is sharing its database with
it, it is nice to have a less generic table name than "version".

Also usefull when upgrading kamailio, where the new version has (backwards
compatibel) changes in the database definition. If each kamailio version uses
its own version table, they can all use the same database.

7 years agomodules_k/kex: call pkg_proc_stats_destroy in module destroy function to free memory
Alex Hermann [Mon, 5 Nov 2012 12:33:27 +0000 (13:33 +0100)]
modules_k/kex: call pkg_proc_stats_destroy in module destroy function to free memory

7 years agomodules_k/tmx: Add $T_reply_last, returning last reply code
Alex Hermann [Mon, 29 Oct 2012 14:25:21 +0000 (15:25 +0100)]
modules_k/tmx: Add $T_reply_last, returning last reply code

Make the last/previous reply on a branch available to the script via
$T_reply_last. Only available in TM_ONREPLY_ROUTE.

7 years agomodules/rtpproxy: Add 'b' flag to add a branch specific string tot the call-id
Alex Hermann [Thu, 11 Oct 2012 16:43:07 +0000 (18:43 +0200)]
modules/rtpproxy: Add 'b' flag to add a branch specific string tot the call-id

In a forking call, sometimes it is needed that each branch uses different
options to the rtpproxy. This patch adds a parameter that makes each
rtpproxy session unique to a branch by appending the value of a PV to the
call-id rtpproxy parameter.

7 years agomodules/avpops: avp_db_query: treat BIGINT result as INT, disregarding the most signi...
Alex Hermann [Mon, 4 Jul 2011 15:33:50 +0000 (17:33 +0200)]
modules/avpops: avp_db_query: treat BIGINT result as INT, disregarding the most significant 32 bits.

7 years agomodules/tm: Remember per-branch onreply_route and onfailure_route settings
Alex Hermann [Thu, 11 Oct 2012 16:28:34 +0000 (18:28 +0200)]
modules/tm: Remember per-branch onreply_route and onfailure_route settings

The onreply and onfailure routes were set only per transaction. This means
that when the onreply and/or failure route is changed in failure route (serial
forking), late replies to earlier branches would use the new onreply and
failure route instead of the routes set for them.

This commit copies the transaction's onreply and failure routes to the branch,
so the route set when the request is sent out is always chosen, no matter
how late the reply arrives.

Because the per-branch setting is copied after running onbranch_route, it is
now also possible to set the routes per-branch instead of per-transaction.

7 years agomodules/tm: add option to check callid when matching transactions
Alex Hermann [Mon, 29 Aug 2011 16:44:20 +0000 (18:44 +0200)]
modules/tm: add option to check callid when matching transactions

Use this if you don't want replies/requests from broken clients, which
send a mangled Call-ID, to match the transaction. For example when
the UAC won't recognise the response anyway because of changed
Call-ID, this setting will prevent accounting records to be created
or failure_route to be skipped.

7 years agomodules_k/trusted: no not open DB connections if db_mode==1.
Alex Hermann [Thu, 25 Aug 2011 09:16:18 +0000 (11:16 +0200)]
modules_k/trusted: no not open DB connections if db_mode==1.

For cached operation, childs (except MI) do not need DB access

7 years agomodules_k/nathelper: add return value 2 to fix_nated_sdp() indicating no ip's have...
Alex Hermann [Fri, 26 Aug 2011 09:16:45 +0000 (11:16 +0200)]
modules_k/nathelper: add return value 2 to fix_nated_sdp() indicating no ip's have been replaced

7 years agomodules_k/pv: make individial flags accessible via $Mf(idx), $Bf(idx) and $Sf(idx)
Alex Hermann [Fri, 26 Aug 2011 11:08:39 +0000 (13:08 +0200)]
modules_k/pv: make individial flags accessible via $Mf(idx), $Bf(idx) and $Sf(idx)

The parameter is the flag number (or registered name). If present
allows setting and reading the corresponding flag. As each flag is
now available as separate PV, it can be used in logging, transformations
and, last but not least, in loading/storing individual flags
from/to a database with sql_pvquery().

When setting, any value != =0 will set the flag, 0 will clear it. When reading
a set flag returns 1, cleared flag 0.

example:

xlog("flags: 0x$mF / $Mf(15) / $Mf(16)");
setflag(15);
xlog("flags: 0x$mF / $Mf(15) / $Mf(16)");
$Mf(16) = 1;
xlog("flags: 0x$mF / $Mf(15) / $Mf(16)");
$Mf(15) = 0;
xlog("flags: 0x$mF / $Mf(15) / $Mf(16)");

output:

flags: 0x00000000 / 0 / 0
flags: 0x00008000 / 1 / 0
flags: 0x00018000 / 1 / 1
flags: 0x00010000 / 0 / 1

7 years agomodules_k/trusted: Free memory of old trusted list when the list has been reloaded
Alex Hermann [Tue, 30 Aug 2011 11:35:55 +0000 (13:35 +0200)]
modules_k/trusted: Free memory of old trusted list when the list has been reloaded

7 years agomodules/mtree: Do not log an error when prefix not found.
Alex Hermann [Fri, 16 Sep 2011 11:48:59 +0000 (13:48 +0200)]
modules/mtree: Do not log an error when prefix not found.

A not found prefix is already represented as a negative return code.
No need to log an error, as it may be perfectly valid that a prefix does not
exists.

7 years agolib/srdb1: store BIGINT result also as 32-bit integer if it fits
Alex Hermann [Thu, 22 Sep 2011 13:59:23 +0000 (15:59 +0200)]
lib/srdb1: store BIGINT result also as 32-bit integer if it fits

BIGINT is always converted to string. Additionally it is now stored as INT too.

MySQL (at least on 64-bit) is returning BIGINT for all "generated" INT values,
like COUNT(*). By storing thee results as INT (if possible), the config script
will be compatible with both 32-bit and 64-bit column values.

7 years agomodules_k/tmx: Add active_transactions statistics
Alex Hermann [Mon, 3 Oct 2011 13:55:42 +0000 (15:55 +0200)]
modules_k/tmx: Add active_transactions statistics

An active transaction is a transaction that is still waiting for a reply.
If it has seen a reply but is existing just to collect retransmissions,
it is not counted (in contrast to inuse_transactions).

7 years agomodules_k/dialog: Allow unset_dlg_profile also in REQUEST_ROUTE
Alex Hermann [Tue, 27 Mar 2012 14:44:23 +0000 (16:44 +0200)]
modules_k/dialog: Allow unset_dlg_profile also in REQUEST_ROUTE

even if the function has no use in normal REQUEST_ROUTE, the route block
may be called from other route blocks like failure_route.

7 years agomodules_k/sqlops: eleminate string copy in sql_exec_xquery()
Alex Hermann [Mon, 7 Jan 2013 14:35:46 +0000 (15:35 +0100)]
modules_k/sqlops: eleminate string copy in sql_exec_xquery()

xavp api will make a copy in shmem, no need to make a private copy first.

Thanks to Juha heinanen and Daniel-Constantin Mierla for finding this
inefficiency.

7 years agomodules/pv: Fix $snd(ip) for IPv6
Alex Hermann [Thu, 29 Nov 2012 10:47:10 +0000 (11:47 +0100)]
modules/pv: Fix $snd(ip) for IPv6

Result was always an empty string surrounded by []. Converted to use ip_addr2a().
This also prevents the surrounding [], which are not part of an IPv6 address.

7 years agomodules_k/htable: don't return expired values
Alex Hermann [Thu, 23 Feb 2012 22:48:16 +0000 (23:48 +0100)]
modules_k/htable: don't return expired values

If an item has expired, it will be treated as non-existent.

7 years agomodules_k/perl: Fix resetting of flags in sv2int_str
Alex Hermann [Mon, 27 Feb 2012 13:14:44 +0000 (14:14 +0100)]
modules_k/perl: Fix resetting of flags in sv2int_str

According to the functions comments and its usages in the same file, the flags would only be or'red, not reset

This fixes setting an string named avp with an integer value:

OpenSER::AVP::add("string", 12345);

7 years agomodules/sanity: Fail if request uri can't be parsed
Alex Hermann [Tue, 28 Feb 2012 10:39:10 +0000 (11:39 +0100)]
modules/sanity: Fail if request uri can't be parsed

7 years agomodules_k/pua_mi: when checking for 0-length string, check s.len, not s.s
Alex Hermann [Thu, 7 Jun 2012 12:20:01 +0000 (14:20 +0200)]
modules_k/pua_mi: when checking for 0-length string, check s.len, not s.s

7 years agomodules/auth: replace ser_time() wih time()
Alex Hermann [Mon, 16 Jul 2012 13:24:37 +0000 (15:24 +0200)]
modules/auth: replace ser_time() wih time()

The values returned by ser_time() deviate so much from time() (and thus
system time) that the module was creating expired nonces in challenges
and rejected valid nonces as being "from the future".

See also FS#243

7 years agomodules/rtpproxy: return -3 when no more rtpproxy nodes can be found
Alex Hermann [Tue, 15 May 2012 10:29:14 +0000 (12:29 +0200)]
modules/rtpproxy: return -3 when no more rtpproxy nodes can be found

Provide a unique error code for the case when no (more) proxy nodes
are availave in the set. This allows the script recognize it from
the more general errors (all -1) and do special processing (failover
to another set)

7 years agomodules_k/uac: regenerate README
Alex Hermann [Mon, 7 Jan 2013 14:16:27 +0000 (15:16 +0100)]
modules_k/uac: regenerate README

7 years agomodules_k/uac: uac_reg: add reg_retry_interval parameter
Alex Hermann [Tue, 10 Jul 2012 10:41:45 +0000 (12:41 +0200)]
modules_k/uac: uac_reg: add reg_retry_interval parameter

The new parameter allows to retry failed registration attempts.
Instead of unconditionally marking the entry as disabled, the
registration will be retried after the set interval. Setting it
to 0 (default) retains the old behaviour.

7 years agomodules_k/uac: uac_reg: skip realm checking if realm is empty
Alex Hermann [Tue, 28 Feb 2012 14:23:17 +0000 (15:23 +0100)]
modules_k/uac: uac_reg: skip realm checking if realm is empty

When realm is the empty string, do not check the realm, but accept anything
the UAS throws at us.

7 years agomodules_k/uac: skip realm matching when realm pv for uac_auth is empty or null
Alex Hermann [Tue, 28 Feb 2012 12:10:23 +0000 (13:10 +0100)]
modules_k/uac: skip realm matching when realm pv for uac_auth is empty or null

This can be used if the realm used by the upsteam UAS isn't known in advance.

7 years agomodules_k/uac: Add reg_db_table parameter to specify table name for registrations
Alex Hermann [Tue, 21 Feb 2012 11:35:18 +0000 (12:35 +0100)]
modules_k/uac: Add reg_db_table parameter to specify table name for registrations

7 years agomodules_k/tmx: add t_is_reply_route()
Alex Hermann [Fri, 2 Sep 2011 07:36:43 +0000 (09:36 +0200)]
modules_k/tmx: add t_is_reply_route()

Function to determine if the top executed route block is a reply.
In line with t_is_failure_route() and t_is_branch_route().

7 years agomodules_k/tmx: add $T_reply_reason PV
Alex Hermann [Thu, 1 Sep 2011 15:18:03 +0000 (17:18 +0200)]
modules_k/tmx: add $T_reply_reason PV

Especially for internally generated (faked) replies it was hard to
get the reason phrase. This PV provides just that.

7 years agoMakefile: add corex module to kstandard group
Alex Hermann [Mon, 7 Jan 2013 16:10:18 +0000 (17:10 +0100)]
Makefile: add corex module to kstandard group

7 years agomodules/tmx: set $T_branch_idx to sane values for more route types
Alex Hermann [Mon, 7 Jan 2013 13:04:57 +0000 (14:04 +0100)]
modules/tmx: set $T_branch_idx to sane values for more route types

$T_branch_idx will now return a branch number (0-based) in more route types.

BRANCH_ROUTE and TM_ON_REPLY_ROUTE: currently handled branch number
REQUEST_ROUTE and FAILURE_ROUTE: next branch number, will be increased by
    every append_branch

In FAILURE_ROUTE, the branch number of the winning reply can be retreived
with $T_rpl($T_branch_idx)

All other route types will result in (the invalid) branch number -1.

7 years agomodules/tm: Set branch_index to T_BR_UNDEFINED when outside BRANCH_ROUTE or TM_ONREPL...
Alex Hermann [Fri, 12 Oct 2012 12:06:33 +0000 (14:06 +0200)]
modules/tm: Set branch_index to T_BR_UNDEFINED when outside BRANCH_ROUTE or TM_ONREPLY_ROUTE.

The inconsistent value of $T_branch_idx between BRANCH_ROUTE and
TM_ON_REPLY_ROUTE was fixed in an earlier commit, but now the value 0 has a
double meaning (branch 0 or invalid branch). This patch makes the invalid
branch distinguishable by setting it to -1.

Now $T_branch_idx will return the branch number (0-based) in BRANCH_ROUTE
and TM_ON_REPLY_ROUTE and -1 in other route types or if the message is not
part of a transaction.

7 years agomodules/tm: Make branch_index consistent in all route types
Alex Hermann [Thu, 11 Oct 2012 14:53:55 +0000 (16:53 +0200)]
modules/tm: Make branch_index consistent in all route types

The branch index was set one to high in BRANCH_ROUTE, leading to
inconsistent branch numbers in reply routes.

7 years agosiptrace Typo after test compilations. Bad luck.
Olle E. Johansson [Wed, 9 Jan 2013 21:21:45 +0000 (22:21 +0100)]
siptrace Typo after test compilations. Bad luck.

7 years agocdp Documentation updates
Olle E. Johansson [Wed, 9 Jan 2013 20:20:17 +0000 (21:20 +0100)]
cdp  Documentation updates

Read my lips: It's configuration, not confiuaragion or confirtuaration... :-)

7 years agoavp XML doc updates
Olle E. Johansson [Wed, 9 Jan 2013 19:43:00 +0000 (20:43 +0100)]
avp XML doc updates

7 years agoavp Documentation typo fix and update (SER => Kamailio)
Olle E. Johansson [Wed, 9 Jan 2013 19:42:12 +0000 (20:42 +0100)]
avp  Documentation typo fix and update (SER => Kamailio)

7 years agooutbound(k) Minor edit of documentation.
Olle E. Johansson [Wed, 9 Jan 2013 19:18:42 +0000 (20:18 +0100)]
outbound(k) Minor edit of documentation.

Please ignore, keep calm and carry on.

7 years agosiptrace(k) Fixing a bad change in docs...
Olle E. Johansson [Wed, 9 Jan 2013 19:13:26 +0000 (20:13 +0100)]
siptrace(k) Fixing a bad change in docs...

7 years agosiptrace(k) Add RPC command for turning on/off
Olle E. Johansson [Wed, 9 Jan 2013 19:09:39 +0000 (20:09 +0100)]
siptrace(k) Add RPC command for turning on/off

Copying the functionality of the existing MI command.

Also, setting the value of the trace_flag to 0 by default, as
documented in the documentation.

7 years agosipcapture: Fix typo in XML markup
Olle E. Johansson [Wed, 9 Jan 2013 19:04:29 +0000 (20:04 +0100)]
sipcapture: Fix typo in XML markup

7 years agosipcapture Small cleanup in docs
Olle E. Johansson [Wed, 9 Jan 2013 18:50:12 +0000 (19:50 +0100)]
sipcapture Small cleanup in docs

7 years agosipcapture Small typo
Olle E. Johansson [Wed, 9 Jan 2013 17:38:54 +0000 (18:38 +0100)]
sipcapture  Small typo

7 years agosipcapture Add RPC command to turn on/off or check status
Olle E. Johansson [Wed, 9 Jan 2013 17:37:43 +0000 (18:37 +0100)]
sipcapture Add RPC command to turn on/off or check status

Kamailio RPC rocks - much more than IMS ;-)

7 years agopv(k): Remove read-only empty strings that might be attempted to be written to
Richard Fuchs [Wed, 9 Jan 2013 17:34:27 +0000 (12:34 -0500)]
pv(k): Remove read-only empty strings that might be attempted to be written to

7 years agousrloc(k) Add RPC for AOR lookup
Olle E. Johansson [Wed, 9 Jan 2013 15:53:07 +0000 (16:53 +0100)]
usrloc(k) Add RPC for AOR lookup

Copied from mi interface. RPC rocks!

7 years agousrloc(k) Reveal existing rpc command in README
Olle E. Johansson [Wed, 9 Jan 2013 14:29:48 +0000 (15:29 +0100)]
usrloc(k) Reveal existing rpc command in README