sip-router
9 years agoregistrar(k): reset local interator to contacts headers
Daniel-Constantin Mierla [Sat, 4 Jun 2011 08:22:09 +0000 (10:22 +0200)]
registrar(k): reset local interator to contacts headers

- when the REGISTER request had more than one Contact header and
  max_contacts parameter was set, there were two iterations through the
  list fo Contacts header without reseting the iterator, resulting in
  not processing all Contact headers in save() - reported by Andreas Granig
- instead of parsing the fist contact header as parameter to several
  functions, take it from sip msg structure hook

9 years agomodules_k/htable: include stddef.h to let sip-router compile on old distros
Ovidiu Sas [Fri, 3 Jun 2011 17:43:32 +0000 (13:43 -0400)]
modules_k/htable: include stddef.h to let sip-router compile on old distros

9 years agomodules_k/dispatcher: include stddef.h to let sip-router compile on old distros
Ovidiu Sas [Fri, 3 Jun 2011 17:31:35 +0000 (13:31 -0400)]
modules_k/dispatcher: include stddef.h to let sip-router compile on old distros

9 years agocore: include stddef.h to let sip-router compile on old distros
Ovidiu Sas [Fri, 3 Jun 2011 17:02:00 +0000 (13:02 -0400)]
core: include stddef.h to let sip-router compile on old distros

9 years agoMerge branch 'tteras/db_sqlite'
Timo Teräs [Fri, 3 Jun 2011 15:31:21 +0000 (18:31 +0300)]
Merge branch 'tteras/db_sqlite'

9 years agoimc: fix announcing attepts to join private rooms
Daniel-Constantin Mierla [Fri, 3 Jun 2011 08:25:19 +0000 (10:25 +0200)]
imc: fix announcing attepts to join private rooms

- if an user cannot join a private room, the announcement was wrong,
  using invalid structure
- reported by Ozren Lapcevic

9 years agoimc: keep db handle open for main process
Daniel-Constantin Mierla [Wed, 1 Jun 2011 10:36:09 +0000 (12:36 +0200)]
imc: keep db handle open for main process

- the module sync's back to database at shutdown
- dicovered based on an email by Ozren Lapcevic

9 years agoipops: use INET6_ADDRSTRLEN constant for IPv4/IPv6 maximun size.
Iñaki Baz Castillo [Tue, 31 May 2011 23:30:03 +0000 (01:30 +0200)]
ipops: use INET6_ADDRSTRLEN constant for IPv4/IPv6 maximun size.

9 years agocore: added new preprocessor directive: substdef
Daniel-Constantin Mierla [Mon, 30 May 2011 21:57:18 +0000 (23:57 +0200)]
core: added new preprocessor directive: substdef

- prototype
  !!substdef '/regexp/replacement/flags'
- separator char '/' can be replaced with any other character to avoid
  conflicts
- it adds a preprocessor substitution like '!!subst' and in addition
  defines the regexp to replacement, like
  !!define regexp replacement
- useful when you need to replace tokens present as ID and inside string
  values

9 years agocore: updated man page
Daniel-Constantin Mierla [Mon, 30 May 2011 21:03:42 +0000 (23:03 +0200)]
core: updated man page

9 years agokamialio.cfg: sample usage of speed dialing
Daniel-Constantin Mierla [Mon, 30 May 2011 12:20:39 +0000 (14:20 +0200)]
kamialio.cfg: sample usage of speed dialing

- can be enabled by define WITH_SPEEDDIAL

9 years agodeb pkg: add start suggestions for mysql, postgresql and radius, suggested from Rick...
Henning Westerholt [Mon, 30 May 2011 12:17:32 +0000 (14:17 +0200)]
deb pkg: add start suggestions for mysql, postgresql and radius, suggested from Rick Aldred

9 years agokamailio.cfg: reworked nat traversal config
Daniel-Constantin Mierla [Sat, 28 May 2011 21:30:43 +0000 (23:30 +0200)]
kamailio.cfg: reworked nat traversal config

- groupped the nat traversal login in NATDETECT and NATMANAGE route
  blocks, simplifying by using rtpproxy_manage() function
- nat traversal logic for requests is applied in branch_route for proper
  optimization of serial/parallel forking

9 years agortpproxy: safety check for T_UNDEFINED
Daniel-Constantin Mierla [Sat, 28 May 2011 21:25:56 +0000 (23:25 +0200)]
rtpproxy: safety check for T_UNDEFINED

- be sure the T is valid before setting SDP flag in uas.request

9 years agortpproxy: close rtpproxy session for INVITE req in failure route
Daniel-Constantin Mierla [Sat, 28 May 2011 16:36:19 +0000 (18:36 +0200)]
rtpproxy: close rtpproxy session for INVITE req in failure route

- update of rtpproxy_manage() to close rtp relay session when executed
  in failure route

9 years agortpproxy: aliased rtpproxy_destroy() to unforce_rtp_proxy()
Daniel-Constantin Mierla [Sat, 28 May 2011 15:40:58 +0000 (17:40 +0200)]
rtpproxy: aliased rtpproxy_destroy() to unforce_rtp_proxy()

9 years agomodules/auth: new flag 16 to add stale=true to challenge response
Juha Heinanen [Sat, 28 May 2011 08:43:41 +0000 (11:43 +0300)]
modules/auth: new flag 16 to add stale=true to challenge response

9 years agoMakefile: version set to 3.2.0-dev5
Daniel-Constantin Mierla [Sat, 28 May 2011 08:11:09 +0000 (10:11 +0200)]
Makefile: version set to 3.2.0-dev5

9 years agortpproxy: documented rtpproxy_manage()
Daniel-Constantin Mierla [Sat, 28 May 2011 08:09:19 +0000 (10:09 +0200)]
rtpproxy: documented rtpproxy_manage()

9 years agorpproxy: new function rtpproxy_manage()
Daniel-Constantin Mierla [Sat, 28 May 2011 06:57:19 +0000 (08:57 +0200)]
rpproxy: new function rtpproxy_manage()

- auto-pilot function to handle rtp proxy session management
- it can take same kind of parameters as rtpproxy_offer()
- embeds the functionality of rtpproxy_offer(), rtpproxy_answer() and
  unfroce_rtp_proxy():
  - if INVITE with SDP, then do rtpproxy offer
  - if INVITE with sdp, when tm is loaded, mark transaction with
internal flag FL_SDP_BODY to know that the 1xx and 2xx are for rtp
answer
  - if ACK with SDP, then do rtpproxy answer
  - if BYE or CANCEL, then do unforce rtpproxy
  - if reply to INVITE with code >= 300 do unfrce rtp proxy
  - if reply with SDP to INVITE having code 1xx and 2xx, then do rtpproxy
answer if the request had SDP or tm is not loaded, otherwise do
rtpproxy offer

9 years agoparser: new internal msg flag FL_SDP_BODY
Daniel-Constantin Mierla [Sat, 28 May 2011 06:55:02 +0000 (08:55 +0200)]
parser: new internal msg flag FL_SDP_BODY

- mark the request if there is an sdp body (useful for multi-part bodies
  or to quickly check in tm routes as the msg body is not cloned in shm
  and will require parsing again)

9 years agortpproxy: changed the list of allowed route blocks with ANY_ROUTE
Daniel-Constantin Mierla [Fri, 27 May 2011 20:29:11 +0000 (22:29 +0200)]
rtpproxy: changed the list of allowed route blocks with ANY_ROUTE

- functions could be used in all routes, updated the bitmask to
  ANY_ROUTE

9 years agokamailio.cfg: replaced force_rtp_proxy()
Daniel-Constantin Mierla [Fri, 27 May 2011 18:34:02 +0000 (20:34 +0200)]
kamailio.cfg: replaced force_rtp_proxy()

- the function has been removed, replaced with rtpproxy_offer() and
  rtpproxy_offer()

9 years agotmx: documented the new functions
Daniel-Constantin Mierla [Fri, 27 May 2011 11:31:35 +0000 (13:31 +0200)]
tmx: documented the new functions

- t_is_failure_route() and t_is_branch_route()

9 years agotmx: two helper functions to detect route block type
Daniel-Constantin Mierla [Fri, 27 May 2011 11:21:52 +0000 (13:21 +0200)]
tmx: two helper functions to detect route block type

- t_is_failure_route() - return true if it is a failure_route execution
- t_is_branch_route() - return true if it is a branch_route execution
- useful to check in sub-routes executed from different points of config

9 years agop_usrloc: fix compile warning, reported from Ovidiu
Henning Westerholt [Fri, 27 May 2011 08:44:13 +0000 (10:44 +0200)]
p_usrloc: fix compile warning, reported from Ovidiu

9 years agosdpops: fix gcc warning, reported from Juha
Henning Westerholt [Thu, 26 May 2011 16:22:23 +0000 (18:22 +0200)]
sdpops: fix gcc warning, reported from Juha

9 years agoutils: Install the sqlite scripts
Natanael Copa [Thu, 26 May 2011 14:44:33 +0000 (14:44 +0000)]
utils: Install the sqlite scripts

Fix the makefiles to actually install the sqlite scripts

9 years agodb_sqlite: add support for autogeneration of db scheme (make dbschema)
Henning Westerholt [Thu, 26 May 2011 10:18:16 +0000 (12:18 +0200)]
db_sqlite: add support for autogeneration of db scheme (make dbschema)

9 years agodb_sqlite(k): add docbook docs
Timo Teräs [Thu, 26 May 2011 10:07:10 +0000 (13:07 +0300)]
db_sqlite(k): add docbook docs

9 years agodb_sqlite(k): add README
Timo Teräs [Thu, 26 May 2011 08:36:17 +0000 (11:36 +0300)]
db_sqlite(k): add README

With information about author and module dependencies.

9 years agoutils: add sqlite support to kamctl/kamdbctl
Natanael Copa [Thu, 26 May 2011 07:18:44 +0000 (07:18 +0000)]
utils: add sqlite support to kamctl/kamdbctl

 - sql scripts copied from postgres versions and converted to sqlite
   (only major change was: sed s/SERIAL/INTEGER/)
 - kamdbctl.sqlite based on kamdbctl.postgres with permissions stuff
   removed (sqlite has unix file permissions only) and some mysql
   emulation removed too
 - no real ro-mode

9 years agohtable: adjust item array size
Daniel-Constantin Mierla [Thu, 26 May 2011 05:09:14 +0000 (07:09 +0200)]
htable: adjust item array size

- it was 1 too much, reported by Juha Heinanen

9 years agokamailio.cfg: added two new define options
Daniel-Constantin Mierla [Wed, 25 May 2011 21:44:22 +0000 (23:44 +0200)]
kamailio.cfg: added two new define options

- WITH_BLOCK3XX - block 3xx replies
- WITH_VOICEMAIL - redirect call to voicemail server on not found, busy
  or no answer

9 years agokamailio.cfg: removed append_branch() from failure_route
Daniel-Constantin Mierla [Wed, 25 May 2011 20:54:53 +0000 (22:54 +0200)]
kamailio.cfg: removed append_branch() from failure_route

- it is no longer necessary

9 years agohtable: set the size of item arrays
Daniel-Constantin Mierla [Wed, 25 May 2011 19:59:14 +0000 (21:59 +0200)]
htable: set the size of item arrays

- it was not computed properly, reported by Juha Henanen

9 years agocore: also include newline in error msg..
Henning Westerholt [Wed, 25 May 2011 10:00:41 +0000 (12:00 +0200)]
core: also include newline in error msg..

9 years agocore: spelling fix in error msg, reported from Bret McDanel, trixter at 0xdecafbad...
Henning Westerholt [Wed, 25 May 2011 09:28:20 +0000 (11:28 +0200)]
core: spelling fix in error msg, reported from Bret McDanel, trixter at 0xdecafbad dot com

9 years agoutils: updated vim syntx highlighting file
Daniel-Constantin Mierla [Tue, 24 May 2011 20:45:01 +0000 (22:45 +0200)]
utils: updated vim syntx highlighting file

- added new aliased route blocks names and pre-processor start sequences

9 years agoStress that DLGCB_CONFIRMED includes reception of the call-concluding ACK message.
Timo Reimann [Mon, 23 May 2011 11:58:33 +0000 (13:58 +0200)]
Stress that DLGCB_CONFIRMED includes reception of the call-concluding ACK message.

9 years agohtable: spelling fix in htable table definition docs
Henning Westerholt [Mon, 23 May 2011 11:06:49 +0000 (13:06 +0200)]
htable: spelling fix in htable table definition docs

9 years agohtable: check if hash table entries are initialized in detroy function
Daniel-Constantin Mierla [Sun, 22 May 2011 15:21:54 +0000 (17:21 +0200)]
htable: check if hash table entries are initialized in detroy function

- one of last updates to htable changed initialization to be directly in
  shared memory, while hash table slots are initialied in mod init
  funtion, causing crash of the module if config file has errors and
  proper starting does not happen
- reported by Juha Heinanen

9 years agocore: defined preprocessor directive start token in lex
Daniel-Constantin Mierla [Sun, 22 May 2011 13:20:21 +0000 (15:20 +0200)]
core: defined preprocessor directive start token in lex

- PREP_START defined as '#!' or '!!'
- '!!' can be used as alternative to '#!' for preprocessor directive,
  being easier to distinguish it out of commented lines

9 years agocore: reply_route aliased to main onreply_route block
Daniel-Constantin Mierla [Sun, 22 May 2011 13:02:09 +0000 (15:02 +0200)]
core: reply_route aliased to main onreply_route block

- reply_route { ... } can be used instead of main onreply_route { ... }
- easier to refer to core reply routing actions, avoiding naming
  confusion with tm reply routing blocks

9 years agocore: request_route alised to main route block
Daniel-Constantin Mierla [Sun, 22 May 2011 12:48:05 +0000 (14:48 +0200)]
core: request_route alised to main route block

- request_route { ... } can be used instead of main route { ... }
- more suggestive in relation with its purpose and easier to spot and
  refer to it

9 years agocore: added some binary operators
Daniel-Constantin Mierla [Sat, 21 May 2011 10:33:00 +0000 (12:33 +0200)]
core: added some binary operators

- not, xor, left shift and right shift

9 years agocore: fixed via branch value in ack to 200 ok
Juha Heinanen [Fri, 20 May 2011 20:08:24 +0000 (23:08 +0300)]
core: fixed via branch value in ack to 200 ok

- By default, sr was using non-rfc3261 compliant via branch value when
  it generated ack to 200 ok.

9 years agomodules/mediaproxy: Fixed crash in mediaproxy due to insufficient buffer size.
Juha Heinanen [Fri, 20 May 2011 19:39:49 +0000 (22:39 +0300)]
modules/mediaproxy: Fixed crash in mediaproxy due to insufficient buffer size.
- Credits to giti.

9 years agoRevert "tm: add warning about t_newtran behaviour (pointed out from Iñaki"
Henning Westerholt [Tue, 17 May 2011 11:05:01 +0000 (13:05 +0200)]
Revert "tm: add warning about t_newtran behaviour (pointed out from Iñaki"

This reverts commit 9f27cb55a1b4def4f393def6170430cbf70e6615.

9 years agocore: added rpc command core.psx
Daniel-Constantin Mierla [Mon, 16 May 2011 15:27:07 +0000 (17:27 +0200)]
core: added rpc command core.psx

- similar to core.ps but prints the details in RPC structure along with
  process index, like:

sercmd> core.psx
{
IDX: 0
PID: 73408
DSC: attendant
}
{
IDX: 1
PID: 73409
DSC: udp receiver child=0 sock=127.0.0.1:5060
}

9 years agogeoip: also include URL in docs
Henning Westerholt [Mon, 16 May 2011 16:21:09 +0000 (18:21 +0200)]
geoip: also include URL in docs

9 years agogeoip: extend docs after discussion with Francesco Castellano
Henning Westerholt [Mon, 16 May 2011 13:48:53 +0000 (15:48 +0200)]
geoip: extend docs after discussion with Francesco Castellano

9 years agotm: add warning about t_newtran behaviour (pointed out from Iñaki
Henning Westerholt [Mon, 16 May 2011 13:22:15 +0000 (15:22 +0200)]
tm: add warning about t_newtran behaviour (pointed out from Iñaki

9 years agoxcap_client: removed invalid 'include' in lib path
Daniel-Constantin Mierla [Sat, 14 May 2011 08:45:35 +0000 (10:45 +0200)]
xcap_client: removed invalid 'include' in lib path

9 years agoxcap_server: added oma user-profile and pres-content (avatar) support
Daniel-Constantin Mierla [Sat, 14 May 2011 08:44:05 +0000 (10:44 +0200)]
xcap_server: added oma user-profile and pres-content (avatar) support

- patch by Peter Dunkley

9 years agoxcap_client: defined internal types for USER_PROFILE and PRES_CONTENT
Daniel-Constantin Mierla [Sat, 14 May 2011 08:42:40 +0000 (10:42 +0200)]
xcap_client: defined internal types for USER_PROFILE and PRES_CONTENT

- part of patch by Peter Dunkley

9 years agolib/srdb1/schema/lcr_gw.xml: updated table index
Juha Heinanen [Sat, 14 May 2011 08:24:11 +0000 (11:24 +0300)]
lib/srdb1/schema/lcr_gw.xml:  updated table index
- lcr gw lcr_id, ip_addr, port, hostname do not need to be unique

9 years agomodules/carrieroute: fixed a bug in carrieroute
Marius Bucur [Wed, 11 May 2011 10:43:08 +0000 (13:43 +0300)]
modules/carrieroute: fixed a bug in carrieroute

the bug caused carrieroute to crash when an invalid SIP message is received (e.g. with no callid)

9 years agomodules_k/siputils: added set_uri_host script function
Juha Heinanen [Tue, 10 May 2011 06:50:14 +0000 (09:50 +0300)]
modules_k/siputils: added set_uri_host script function

9 years agopkg: deb lib dir name is set by variable LIBDIR
Daniel-Constantin Mierla [Fri, 6 May 2011 04:42:51 +0000 (06:42 +0200)]
pkg: deb lib dir name is set by variable LIBDIR

- fixes the check for duplicate libs to variants of deb distros
- reported in FS#130 and FS#128

9 years agopkg: lib dir name is set by variable LIBDIR
Daniel-Constantin Mierla [Fri, 6 May 2011 03:42:21 +0000 (05:42 +0200)]
pkg: lib dir name is set by variable LIBDIR

- fixes the check for duplicate libs
- reported in FS#130 and FS#128

9 years agotcp: fix send2child() error case
Andrei Pelinescu-Onciul [Wed, 4 May 2011 22:43:48 +0000 (00:43 +0200)]
tcp: fix send2child() error case

If send2child() fails don't decrement the refcnt if the connection
was already removed from the hash due to some other previous
error (very unlikely, but possible).

9 years agotcp: fix tcp_*_destroy() bug case
Andrei Pelinescu-Onciul [Wed, 4 May 2011 22:35:31 +0000 (00:35 +0200)]
tcp: fix tcp_*_destroy() bug case

Mark unhashed connections in the "bug" code path to avoid
attempting to remove them twice.

9 years agotcp: fix multiple hash removal attempts
Andrei Pelinescu-Onciul [Wed, 4 May 2011 22:13:36 +0000 (00:13 +0200)]
tcp: fix multiple hash removal attempts

In some corner cases (pending new tcp connection created in async
mode, other processes try to append data to it but fail and the
initial send fails after that) it was possible to attempt removing
the connection from the hash and the local timer multiple times.

9 years agotm: allow t_on_reply() in branch_route
Daniel-Constantin Mierla [Wed, 4 May 2011 17:25:36 +0000 (19:25 +0200)]
tm: allow t_on_reply() in branch_route

- same for t_on_failure()
- reported by Sebastian Damm

9 years agosdpops: added sdpops_remove_codecs_by_name(list)
Daniel-Constantin Mierla [Sun, 1 May 2011 15:36:38 +0000 (17:36 +0200)]
sdpops: added sdpops_remove_codecs_by_name(list)

- it takes as parameter a csv list with codec names
- works for now with codecs that have ID assigned by IANA, the rest will
  follow

9 years agohtable: readme was regenerated
Daniel-Constantin Mierla [Sun, 1 May 2011 13:11:34 +0000 (15:11 +0200)]
htable: readme was regenerated

9 years agohtable: added missing PVs to short listing in the docs
Daniel-Constantin Mierla [Sat, 30 Apr 2011 17:54:46 +0000 (19:54 +0200)]
htable: added missing PVs to short listing in the docs

9 years agohtable: added two new PVs
Daniel-Constantin Mierla [Sat, 30 Apr 2011 17:50:32 +0000 (19:50 +0200)]
htable: added two new PVs

- $shtinc(htable=>key) - add atomically 1 to the value of the item
- $shtdec(htable=>key) - decrement atomically 1 to the value of the item
- both return the new value of the item
- they work only with items having iteger values

9 years agohtable: documented the new 'initval' attribute for htable parameter
Daniel-Constantin Mierla [Sat, 30 Apr 2011 17:13:09 +0000 (19:13 +0200)]
htable: documented the new 'initval' attribute for htable parameter

9 years agohtable: new attribute 'initval' to hash table definition
Daniel-Constantin Mierla [Sat, 30 Apr 2011 17:06:21 +0000 (19:06 +0200)]
htable: new attribute 'initval' to hash table definition

- initval can set init integer value for hash table keys, meaning that
  if the key is not set, the init value is returned by $sht(htable=>key)
- useful for hash tables holding counters - the value can default to 0,
  avoiding extra check for $null value

9 years agohtable: init tables directly in shm
Daniel-Constantin Mierla [Sat, 30 Apr 2011 10:10:14 +0000 (12:10 +0200)]
htable: init tables directly in shm

- initial developed version didn't have access to shared memory during
  parameter setting, starting with 3.0 shm is initialized before module
  parameter section, thus code was simplified getting rid of the
  temporary clone in pkg
- helper structure and functions to store and parse 'key=>value' strings
  added
- parsing of 'htable' parameter format was simplified reusing the
  parse_params() function

9 years agop_usrloc: casted parameter to int to get rid of compile warning
Daniel-Constantin Mierla [Sat, 30 Apr 2011 08:22:04 +0000 (10:22 +0200)]
p_usrloc: casted parameter to int to get rid of compile warning

9 years agoratelimit: set macro to cast pointers diff to int
Daniel-Constantin Mierla [Sat, 30 Apr 2011 08:21:07 +0000 (10:21 +0200)]
ratelimit: set macro to cast pointers diff to int

9 years agocore: fixed compile warnings on mac os x
Daniel-Constantin Mierla [Sat, 30 Apr 2011 08:20:42 +0000 (10:20 +0200)]
core: fixed compile warnings on mac os x

9 years agop_usrloc: include <time.h> to make compiler happy on mac os x
Daniel-Constantin Mierla [Sat, 30 Apr 2011 07:57:44 +0000 (09:57 +0200)]
p_usrloc: include <time.h> to make compiler happy on mac os x

9 years agopv: fixed compile warning
Daniel-Constantin Mierla [Sat, 30 Apr 2011 07:55:22 +0000 (09:55 +0200)]
pv: fixed compile warning

- solve: dereferencing type-punned pointer will break strict-aliasing rules

9 years ago- ipops module: fix in documentation.
Iñaki Baz Castillo [Sat, 30 Apr 2011 14:15:56 +0000 (16:15 +0200)]
- ipops module: fix in documentation.

9 years agoMakefile: fix gcc 4.5 support for all archs
Andrei Pelinescu-Onciul [Fri, 29 Apr 2011 22:48:12 +0000 (00:48 +0200)]
Makefile: fix gcc 4.5 support for all archs

Commit c925278 split gcc 4.5 support from the generic 4.2+ support,
but it handled gcc 4.5 only for x86_64 (trying to compile on other
architectures with gcc 4.5 resulted in warnings and common gcc
optimization options).

9 years agostun: fix attribute padded length outside the packet case
Andrei Pelinescu-Onciul [Fri, 29 Apr 2011 22:11:02 +0000 (00:11 +0200)]
stun: fix attribute padded length outside the packet case

- check if the attribute padded length points still inside the
  packet (only the un-padded value was checked before)
-  use an integer and not an UINT for the remainder part of the
   packet
- fix padded length computation in copy_str_to_buffer()

Closes: FS#129
Reported-by: Francesco Castellano
9 years agostun: fix padd macros
Andrei Pelinescu-Onciul [Fri, 29 Apr 2011 22:08:11 +0000 (00:08 +0200)]
stun: fix padd macros

The PADDED_TO_* macros did not work when the length was a multiple
of the pad value.
(FS#129)

Reported-by: Francesco Castellano
9 years agotm: recursive hash locks
Andrei Pelinescu-Onciul [Fri, 29 Apr 2011 17:40:36 +0000 (19:40 +0200)]
tm: recursive hash locks

The hash locks are now recursive/re-entrant.
This removes some of the TMCB_REQUEST_IN and TMCB_LOCAL_REQUEST_IN
callback restrictions (like do not create new transactions,
do not  call t_lookup_*()) solving problems like the one
described in
http://lists.sip-router.org/pipermail/sr-users/2011-April/068331.html

9 years agodebian(k): set version to devel 3.2.0
Daniel-Constantin Mierla [Fri, 29 Apr 2011 15:53:34 +0000 (17:53 +0200)]
debian(k): set version to devel 3.2.0

9 years agoMakefile.defs: moved setting of dirs after target ARCH detection
Daniel-Constantin Mierla [Fri, 29 Apr 2011 15:38:29 +0000 (17:38 +0200)]
Makefile.defs: moved setting of dirs after target ARCH detection

- should fix FS#128 - error building deb packages on chroot systems
  reported by Ali Onur Uyar

9 years agosdpops: added mapping table with codecs names and ids
Daniel-Constantin Mierla [Fri, 29 Apr 2011 10:14:42 +0000 (12:14 +0200)]
sdpops: added mapping table with codecs names and ids

9 years agoxmlops: use xml2-config to detect compile flags and libs
Daniel-Constantin Mierla [Fri, 29 Apr 2011 10:01:24 +0000 (12:01 +0200)]
xmlops: use xml2-config to detect compile flags and libs

9 years agoxmlops: removed invalid lib path
Daniel-Constantin Mierla [Fri, 29 Apr 2011 08:23:01 +0000 (10:23 +0200)]
xmlops: removed invalid lib path

9 years ago- new module 'ipops' for operations with IPv4 and IPv6.
Iñaki Baz Castillo [Thu, 28 Apr 2011 14:42:26 +0000 (16:42 +0200)]
- new module 'ipops' for operations with IPv4 and IPv6.

9 years agomodule_k/pv Changed the nameaddr transformation by relaxing the requirements on the...
Marius Zbihlei [Thu, 28 Apr 2011 07:30:55 +0000 (10:30 +0300)]
module_k/pv Changed the nameaddr transformation by relaxing the requirements on the input.

As some headers might be either uri or nameaddr form, using a single transformation for parsing them was
impossible, as nameaddr.uri returns "" on an uri input(e.g. sip:12345@example.com). With this change, the
nameaddr transformation succedes and the resulting transformation places the whole string in the .uri field,
.name field being empty. A transformation chaning like the one below will work as expected on both SIP URIs and
SIP Nameaddr
$(val(test){nameaddr.uri}{uri.domain})

9 years agomodules_k/sqlops Passed by value variable modified in function causes no effects...
Marius Zbihlei [Wed, 27 Apr 2011 13:24:42 +0000 (16:24 +0300)]
modules_k/sqlops Passed by value variable modified in function causes no effects in calling code

Modify instead the value pointed by the pointer.

9 years agomodules_k/htable $shtex(htable=>key) caused a segfault when reading (null pointer...
Marius Zbihlei [Wed, 27 Apr 2011 12:32:18 +0000 (15:32 +0300)]
modules_k/htable $shtex(htable=>key) caused a segfault when reading (null pointer deref)
(cherry picked from commit e506dae55f1c5011fe3b7f05e94ba9f02a13dc8b)

9 years agopresence_conference: changed include order to fix comilation on mac os x
Daniel-Constantin Mierla [Wed, 27 Apr 2011 10:44:16 +0000 (12:44 +0200)]
presence_conference: changed include order to fix comilation on mac os x

9 years agoFixed definitions for presence related tables. Size of callid and contact should...
Marius Zbihlei [Wed, 27 Apr 2011 10:26:13 +0000 (13:26 +0300)]
Fixed definitions for presence related tables. Size of callid and contact should be larger than 64.

9 years agopresence modules: removed invalid lib path
Daniel-Constantin Mierla [Wed, 27 Apr 2011 09:34:48 +0000 (11:34 +0200)]
presence modules: removed invalid lib path

- invalid /usr/include/lib was removed from lib path
- cleaned commented headers

9 years agomodules_k/presence : Fixed a bug caused by an incorrect Macro
Marius Zbihlei [Wed, 27 Apr 2011 09:21:11 +0000 (12:21 +0300)]
modules_k/presence : Fixed a bug caused by an incorrect Macro

the macro expanded to incorrect results when called in statements like
if(cond) COND_COPY(...);

9 years agoutils/kamctl/presence-create.sql Increased size of contact and callid in presence...
Marius Zbihlei [Wed, 27 Apr 2011 08:48:46 +0000 (11:48 +0300)]
utils/kamctl/presence-create.sql Increased size of contact and callid in presence tables

Some CPE (e.g. FritzBox,Samsung) issue larger contacts that 64 chars, thus resulting in a truncation in the
DB backend
(cherry picked from commit ac679cf5093f99931da6aeea4b40c1215e295a4b)

9 years agomodules_k/kex: renamed \91get_stat_val_long\92 to \91get_stat_val\92
Juha Heinanen [Wed, 27 Apr 2011 07:11:44 +0000 (10:11 +0300)]
modules_k/kex: renamed \91get_stat_val_long\92 to \91get_stat_val\92
- I don't know if this is correct fix, but I need to get master that
  starts up.

9 years agorls(k): removed invalid lib path
Daniel-Constantin Mierla [Mon, 25 Apr 2011 11:05:03 +0000 (13:05 +0200)]
rls(k): removed invalid lib path

9 years agokex: added mi cmd clear_statistics
Daniel-Constantin Mierla [Mon, 25 Apr 2011 10:23:46 +0000 (12:23 +0200)]
kex: added mi cmd clear_statistics

- return the values and rested the counters for statistics
- patch by Paul Pankhurst

9 years agorls(k): few fixes
Daniel-Constantin Mierla [Mon, 25 Apr 2011 09:45:12 +0000 (11:45 +0200)]
rls(k): few fixes

- string comparison that fails because sometimes one of the strings
  is '\0' terminated and the other never is.
- fix for when some non-RLS SUBSCRIBEs are not identified as such.
- fix for a small typo in an error diagnostic.
- patch by Peter Dunkley