Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated to 2.1 #6

Merged
merged 1,892 commits into from Jul 30, 2016
Merged

Updated to 2.1 #6

merged 1,892 commits into from Jul 30, 2016
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Sep 23, 2015

  1. Fix usage of t_reply_with_body() with reply lumps.

    Force pushing all reply lumps (headers added to the reply) when using t_reply_with_body() - the function takes the msg from the transaction, not the real msg; so we need to be sure that the msg in transaction was fully cloned.
    
    Reported by Giuseppe Cardone on mailing list.
    bogdan-iancu committed Sep 23, 2015
    Configuration menu
    Copy the full SHA
    783a18a View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2015

  1. Check if at least one DB URL is provided in avpops

    Reported by David Sanders (@dsanders11).
    Closes #644 .
    bogdan-iancu committed Sep 24, 2015
    Configuration menu
    Copy the full SHA
    34fab0d View commit details
    Browse the repository at this point in the history
  2. Dialplan module should honor db_default_url

    (cherry picked from commit 566d4db)
    dsanders11 authored and bogdan-iancu committed Sep 24, 2015
    Configuration menu
    Copy the full SHA
    de7bcfc View commit details
    Browse the repository at this point in the history
  3. Dispatcher module should honor db_default_url

    (cherry picked from commit 684846d)
    dsanders11 authored and bogdan-iancu committed Sep 24, 2015
    Configuration menu
    Copy the full SHA
    4963c7c View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2015

  1. memset all connection memory to 0 to avoid unwanted values

    ionutrazvanionita committed Sep 29, 2015
    Configuration menu
    Copy the full SHA
    ad8011a View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2015

  1. on DB error: avoid double free;release only in destroy function

    ionutrazvanionita committed Sep 30, 2015
    Configuration menu
    Copy the full SHA
    76e9809 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2015

  1. fix compression module bugs

    * proper error messages on compress
    * correct buffer size aproximation on gzip compress(10% + 12)
    * fix bug on decompression
    ionutrazvanionita committed Oct 5, 2015
    Configuration menu
    Copy the full SHA
    ca3895d View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2015

  1. Updated to support CNAM diversion use case.

    Di-Shi Sun committed Oct 6, 2015
    Configuration menu
    Copy the full SHA
    a43ccca View commit details
    Browse the repository at this point in the history
  2. ratelimit: avoid deadlock if counter is not updated

    (cherry picked from commit ec25c07)
    razvancrainea committed Oct 6, 2015
    Configuration menu
    Copy the full SHA
    fe654e4 View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2015

  1. Fix make menuconfig compile warnings

    (cherry picked from commit b9fe3c2)
    liviuchircu authored and ovidiusas committed Oct 7, 2015
    Configuration menu
    Copy the full SHA
    844fae5 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2015

  1. fix: some sh(busybox) do not support syntax of `$(< file)'

    (cherry picked from commit ffb2554)
    wxf authored and liviuchircu committed Oct 20, 2015
    Configuration menu
    Copy the full SHA
    4c0c371 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2015

  1. Fixed ACKs CSEQ number when doing in-dialog pinging

    The ACK CSEQ number does not depend on the number of pings or other in-dialog requests since the INVITE transaction, it must be the same as the INVITE
    Closes issue #680
    
    (cherry picked from commit 26a0a62)
    vladpaiu committed Oct 22, 2015
    Configuration menu
    Copy the full SHA
    f8c424d View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2015

  1. exec: Clarify what not to do with exec().

    wdoekes authored and ionutrazvanionita committed Oct 23, 2015
    Configuration menu
    Copy the full SHA
    7901324 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2015

  1. fix context reusage if async is made

    This affects timers and failure routes that are supposed to reuse a static context
    razvancrainea committed Oct 26, 2015
    Configuration menu
    Copy the full SHA
    440ab21 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fdf38ed View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2015

  1. Fix potential memory corruption on TCP write errors

    This patch fixes a well-hidden TCP connection referencing bug which
    would only reveal itself upon running into failed TCP send() operations
    due to various reasons (e.g. full send buffer) in high-traffic environments.
    
    Credits to Hieu Ta and Don Steul from Jibe Mobile for detailed reporting
    and providing an adequate replication environment
    
    (cherry picked from commit 3e1a1a7)
    liviuchircu committed Oct 27, 2015
    Configuration menu
    Copy the full SHA
    34eaede View commit details
    Browse the repository at this point in the history
  2. TCP aliases: Fix more race conditions (issue #589)

    _tcpconn_find() returns a pointer which should never be used outside of
    TCP lock. This patch completes commit 22f4c1a by fixing two
    additional issues of the same type in tcpconn_add_alias()
    
    (cherry picked from commit cb5eebe)
    liviuchircu committed Oct 27, 2015
    Configuration menu
    Copy the full SHA
    17255b2 View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2015

  1. Fix compiler warnings with NO_DEBUG, NO_LOG

    Also add a handy macro for future usage
    
    (cherry picked from commit 48b88bd)
    
    Conflicts:
    	modules/emergency/emergency_methods.c
    	modules/emergency/subscriber_emergency.c
    	modules/usrloc/udomain.c
    liviuchircu committed Oct 28, 2015
    Configuration menu
    Copy the full SHA
    ac557ff View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2015

  1. run destroy context when the message is sent

    Credits go to 46Labs for discovering and providing test scenarios
    
    (cherry picked from commit 28bcadf)
    razvancrainea committed Oct 29, 2015
    Configuration menu
    Copy the full SHA
    e37bdab View commit details
    Browse the repository at this point in the history
  2. properly handle async functions when reactor cannot fullfil the request

    Credits go to 46labs for debugging this
    
    (cherry picked from commit c18c8ea)
    razvancrainea committed Oct 29, 2015
    Configuration menu
    Copy the full SHA
    025eb66 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2015

  1. fix mem leak in permissions

    ionutrazvanionita committed Nov 2, 2015
    Configuration menu
    Copy the full SHA
    a836064 View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2015

  1. Fixed Post Script callbacks triggering in Async.

    If the async engine in TM detects a SIP retransmission, break script and run the Post Script callbacks, othewise the transaction will stay ref'ed for ever.
    Credits for spotting this problem go to Razvan Crainea.
    bogdan-iancu committed Nov 3, 2015
    Configuration menu
    Copy the full SHA
    6735c27 View commit details
    Browse the repository at this point in the history
  2. topo_hiding: replace LM_INFO with LM_DBG for debugging logs

    (cherry picked from commit 3ae7e37172b5ce3142e8448972a84a49d0faa53a)
    razvancrainea committed Nov 3, 2015
    Configuration menu
    Copy the full SHA
    cfc1092 View commit details
    Browse the repository at this point in the history
  3. async: store cancelled and e2eack transactions in async ctx

    This fix prevents transactions from being unrefferenced when dangling
    transaction pointers remain stored in static variables.
    
    (cherry picked from commit 3f3b6fd)
    razvancrainea committed Nov 3, 2015
    Configuration menu
    Copy the full SHA
    da1b8c3 View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2015

  1. tm: free async context when resuming

    This commit fixes context_alloc memory leak
    
    (cherry picked from commit d69d085)
    razvancrainea committed Nov 5, 2015
    Configuration menu
    Copy the full SHA
    01e93c9 View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2015

  1. dialog: increase ref when setting dialog

    (cherry picked from commit 5286558)
    razvancrainea committed Nov 6, 2015
    Configuration menu
    Copy the full SHA
    2526521 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2015

  1. check if startup_done var is allocated before trying to set it

    ionutrazvanionita committed Nov 13, 2015
    Configuration menu
    Copy the full SHA
    0f82238 View commit details
    Browse the repository at this point in the history
  2. fix str2int and str2sint input params check

    * if a void string was given to the function ("") 0 value was returned which was not correct
    * input values should be checked for NULL
    ionutrazvanionita committed Nov 13, 2015
    Configuration menu
    Copy the full SHA
    96ec5ee View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2015

  1. fix warnings reported by Ovidiu Sas

    (cherry picked from commit 19edf61)
    razvancrainea committed Nov 17, 2015
    Configuration menu
    Copy the full SHA
    8fe69f1 View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2015

  1. acc:evi: if the request failed send a missed event

    In case the acc_evi_request() function was used on a failed request
    (code < 300), send a missed event rather than the normal one.
    
    Reported by Trevor Francis from 46Labs
    
    (cherry picked from commit 18f5da0)
    razvancrainea committed Nov 19, 2015
    Configuration menu
    Copy the full SHA
    7f570e7 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2015

  1. RPM spec: remove excess rest client package

    Nick Altmann committed Nov 23, 2015
    Configuration menu
    Copy the full SHA
    21b2728 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2015

  1. dialplan: enhance debug probe

    (cherry picked from commit f0a75d9)
    ovidiusas committed Nov 25, 2015
    Configuration menu
    Copy the full SHA
    8ce36d3 View commit details
    Browse the repository at this point in the history
  2. dialplan: after inserting a new partition, set the pointer to the nex…

    …t record to NULL
    
    (cherry picked from commit fb3923d)
    ovidiusas committed Nov 25, 2015
    Configuration menu
    Copy the full SHA
    511269f View commit details
    Browse the repository at this point in the history
  3. dialplan: memset to 0 newly alocated memory for dp partition

     - suggested by Liviu Chircu
    
    (cherry picked from commit 1cf5dd8)
    ovidiusas committed Nov 25, 2015
    Configuration menu
    Copy the full SHA
    ba0ea01 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    120e6e2 View commit details
    Browse the repository at this point in the history
  5. dialplan: check if memory is properly allocated when updateing partit…

    …ion records
    
    (cherry picked from commit 889f353)
    ovidiusas committed Nov 25, 2015
    Configuration menu
    Copy the full SHA
    d1177fe View commit details
    Browse the repository at this point in the history
  6. fix dangling db conns bug

    * database are now started in child_init
    * avoid opening db conns in mod_init and leaving them in the db pool because
    when fork() shall be done all the processes will use the same db
    structure therefore the same tcp connection
    
    (cherry picked from commit 47b5dc9)
    ionutrazvanionita authored and ovidiusas committed Nov 25, 2015
    Configuration menu
    Copy the full SHA
    139415b View commit details
    Browse the repository at this point in the history
  7. Fix bug in populating the PIDs

    (cherry picked from commit eccbf8d)
    bogdan-iancu committed Nov 25, 2015
    Configuration menu
    Copy the full SHA
    13c6043 View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2015

  1. Fix proper reporting for the statistics types.

    This fixes the charting of SHMEM related stats in Control Panel
    
    (cherry picked from commit 52d5ef5)
    bogdan-iancu committed Nov 27, 2015
    Configuration menu
    Copy the full SHA
    b188bff View commit details
    Browse the repository at this point in the history
  2. Reduce the amount of "useless" DBG's

    (cherry picked from commit 0dca32b)
    bogdan-iancu committed Nov 27, 2015
    Configuration menu
    Copy the full SHA
    1535a27 View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2015

  1. RPM spec: increase max files limit and add dependencies

    Nick Altmann committed Dec 3, 2015
    Configuration menu
    Copy the full SHA
    98b76ee View commit details
    Browse the repository at this point in the history
  2. RPM spec: move ulimit to init-script

    Nick Altmann committed Dec 3, 2015
    Configuration menu
    Copy the full SHA
    abc82d4 View commit details
    Browse the repository at this point in the history
  3. properly handle epoll events

    ionutrazvanionita committed Dec 3, 2015
    Configuration menu
    Copy the full SHA
    b6cd61b View commit details
    Browse the repository at this point in the history

Commits on Dec 4, 2015

  1. b2b_logic: parameters cannot be lower than 1

    (cherry picked from commit 152f22e63cc3f045492367b18ed5357cf5a89f2b)
    razvancrainea committed Dec 4, 2015
    Configuration menu
    Copy the full SHA
    4a06a71 View commit details
    Browse the repository at this point in the history
  2. Return <null> value for missing AVPS.

    Maintain database result integrity by supporting null column values.
    Closes #693 and #677
    bogdan-iancu committed Dec 4, 2015
    Configuration menu
    Copy the full SHA
    88bd36b View commit details
    Browse the repository at this point in the history
  3. Merge pull request #681 from shiningstarj/dialoginfo-memory-leak

    Presence_dialoginfo: Fix memory leaks in notify_body.c
    (cherry picked from commit ab5cd61)
    bogdan-iancu committed Dec 4, 2015
    Configuration menu
    Copy the full SHA
    ee99ac7 View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2015

  1. Fix DB key when updating the destination state.

    Beside SIP URI, use the SET ID too when performing FB updates to set the destination state.
    (a SIP URI may be present in multiple SET IDs)
    Closes  #711 , reported by @mishehu
    bogdan-iancu committed Dec 8, 2015
    Configuration menu
    Copy the full SHA
    68b202e View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2015

  1. b2b_logic: set late SDP negociation flag

    For the entity that initiates a call, late SDP negociation is used, because
    the SDP of the first entity is not known. This patch sets the late_sdp flag
    for that entity, to flag the b2b logic to send the ACK with SDP.
    
    This bug was reported on the mailing list by Sebastian Sastre.
    
    (cherry picked from commit 20df836)
    razvancrainea committed Dec 9, 2015
    Configuration menu
    Copy the full SHA
    a173499 View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2015

  1. Usrloc: modify invalid contacts behaviour

    * stop inserting a contact even though received is OK
    (call parse_uri() for each contact)
    * at startup, if a bogus contact is found continue processing,
    letting the user know that he has to remove that contact from
    the database
    ionutrazvanionita committed Dec 21, 2015
    Configuration menu
    Copy the full SHA
    ef76542 View commit details
    Browse the repository at this point in the history

Commits on Dec 22, 2015

  1. comparse_uris: unescape all characters in user field

    ionutrazvanionita committed Dec 22, 2015
    Configuration menu
    Copy the full SHA
    62e2969 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a95341a View commit details
    Browse the repository at this point in the history

Commits on Dec 23, 2015

  1. strip_body(): check if content-type exists

    ionutrazvanionita committed Dec 23, 2015
    Configuration menu
    Copy the full SHA
    c11af55 View commit details
    Browse the repository at this point in the history
  2. avpops: start without db_url if no func is using DB

    Conflicts:
    	modules/avpops/avpops.c
    ionutrazvanionita committed Dec 23, 2015
    Configuration menu
    Copy the full SHA
    7df8a1a View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2016

  1. Merge pull request #746 from lemenkov/remove_has_sdp

    rtpproxy: patch: has_sdp() does not exist
    (cherry picked from commit 2e59ba9)
    bogdan-iancu committed Jan 8, 2016
    Configuration menu
    Copy the full SHA
    7f933a5 View commit details
    Browse the repository at this point in the history
  2. cachedb_mongodb: Fix crash when losing DB connection

    Tested with mongo-c-driver v0.6. It turns out that the driver's
    mongo_cmd_get_last_error() does not always return an iterable bson
    structure. This patch adds a safety check, so that iteration is skipped.
    
    Reported by Sasmita Panda
    Closes issue #747
    
    (cherry picked from commit 2e5160e)
    liviuchircu committed Jan 8, 2016
    Configuration menu
    Copy the full SHA
    5d1d634 View commit details
    Browse the repository at this point in the history
  3. regex: Fix implicit declaration of 'isspace'

    (cherry picked from commit 3607208)
    liviuchircu committed Jan 8, 2016
    Configuration menu
    Copy the full SHA
    a752c53 View commit details
    Browse the repository at this point in the history
  4. Fix several print formatting bugs

    %*.s is a format specifier for string width
    %.*s is a format specifier for string length
    
    99% of the time, we want the latter one and _not_ the former.
    
    (cherry picked from commit e0c0a54)
    
    Conflicts:
    	modules/event_flatstore/event_flatstore.c
    	modules/proto_tls/tls_params.c
    	modules/usrloc/dlist.c
    liviuchircu committed Jan 8, 2016
    Configuration menu
    Copy the full SHA
    f4b81d3 View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2016

  1. redis: add timeout for connect and query

    This prevents OpenSIPS from blocking waiting for a connection to be
    established.
    
    Fixes #753 reported by Nick Altmann
    
    (cherry picked from commit 76034ad)
    razvancrainea committed Jan 13, 2016
    Configuration menu
    Copy the full SHA
    5d32b84 View commit details
    Browse the repository at this point in the history
  2. Fix pinging partitioning from nat_traversal.

    Do not use the static counter as the timer routine gets executed in various processes now - better use a shm counter.
    See all the details in #751
    Based on the PR #751
    Closing / outdating #751
    Credits for finding the fix and comming up with a solutoin go to @aerringer.
    bogdan-iancu committed Jan 13, 2016
    Configuration menu
    Copy the full SHA
    4395575 View commit details
    Browse the repository at this point in the history
  3. Fix race condition between retransmission and wait timer in TM.

    Overlapping of retransmission timer and wait timer may lead to inconsistent timer list -> various crashes around TM timer lists.
    Related to #749, #732, #723.
    Many thanks for Trevor Francis ( @46labs )  for helping with the troubleshooting.
    
    IMPORTANT NOTE: this is a temporary fix as it simply avoid the collision between the two timer routines - normally the routines themselves should be safe to run in parallel (more digging is required here).
    
    (cherry picked from commit ea6e1fa)
    bogdan-iancu committed Jan 13, 2016
    Configuration menu
    Copy the full SHA
    5f486bb View commit details
    Browse the repository at this point in the history
  4. Allow retransmissions and wait for reply/timeout on canceled branches.

    Do not do anything about branches with no received reply; better continue the retransmission hoping to get something back; if still not, we will generate the 408 Timeout based on FR timer; this helps with better coping with missed/lated provisional replies in the context of cancelling the transaction
    
    Many thanks to Maxim Sobolev for bringing this under discussion.
    More to be read:
    http://lists.opensips.org/pipermail/devel/2015-November/018623.html
    http://lists.opensips.org/pipermail/devel/2015-December/018810.html
    
    (cherry picked from commit 0dfb46d)
    bogdan-iancu committed Jan 13, 2016
    Configuration menu
    Copy the full SHA
    f267746 View commit details
    Browse the repository at this point in the history
  5. [snmpstats]more hints for setting up in the docs

    (cherry-picked from 6e7535207d5531e0fc2562d05b874acd30488368)
    ionutrazvanionita committed Jan 13, 2016
    Configuration menu
    Copy the full SHA
    4c775f2 View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2016

  1. [sipcapture]mi_cmds were registered twice

    (cherry picked from commit e36453e)
    ionutrazvanionita committed Jan 14, 2016
    Configuration menu
    Copy the full SHA
    d2f90b6 View commit details
    Browse the repository at this point in the history
  2. [sipcapture]completely remove mod_init mi_cmds registration

    (cherry picked from commit 02defafe421fa1ff4ab0f05f63cc490fa1717ff3)
    ionutrazvanionita committed Jan 14, 2016
    Configuration menu
    Copy the full SHA
    548eb53 View commit details
    Browse the repository at this point in the history
  3. ws: release TCP connection if not static

    This should fix a memory leak (reported in #743 by Eric Tamme)
    
    (cherry picked from commit 29190f3)
    razvancrainea committed Jan 14, 2016
    Configuration menu
    Copy the full SHA
    5d813f6 View commit details
    Browse the repository at this point in the history
  4. tm: remove unused variables

    (cherry picked from commit 666cf83)
    ovidiusas committed Jan 14, 2016
    Configuration menu
    Copy the full SHA
    9608063 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4b011be View commit details
    Browse the repository at this point in the history
  6. fixing coverity found defects - invalid memory access / memory corrup…

    …tions
    
    (cherry picked from commit c537cb8)
    
    Conflicts:
    	modules/dialog/dlg_tophiding.c
    ph4r05 authored and liviuchircu committed Jan 14, 2016
    Configuration menu
    Copy the full SHA
    57a7bf0 View commit details
    Browse the repository at this point in the history
  7. fixing coverity found defects - resource leakage

    (cherry picked from commit e09f09a)
    ph4r05 authored and liviuchircu committed Jan 14, 2016
    Configuration menu
    Copy the full SHA
    21083e8 View commit details
    Browse the repository at this point in the history
  8. fixing coverity found defects - processing initialized variables, con…

    …trol flow, invalid expressions
    
    (cherry picked from commit b22844e)
    
    Conflicts:
    	modules/drouting/drouting.c
    ph4r05 authored and liviuchircu committed Jan 14, 2016
    Configuration menu
    Copy the full SHA
    50737ff View commit details
    Browse the repository at this point in the history
  9. fixing coverity found defects - logical fix in ul callback check type…

    …, null dereference
    
    (cherry picked from commit aeedb7d)
    
    Conflicts:
    	modules/dispatcher/dispatcher.c
    ph4r05 authored and liviuchircu committed Jan 14, 2016
    Configuration menu
    Copy the full SHA
    a152bdf View commit details
    Browse the repository at this point in the history
  10. fixing coverity found defects - null dereference, break missing

    (cherry picked from commit c004967)
    
    Conflicts:
    	db/db.c
    ph4r05 authored and liviuchircu committed Jan 14, 2016
    Configuration menu
    Copy the full SHA
    ed699bf View commit details
    Browse the repository at this point in the history
  11. fixing coverity found defects - null dereference, invalid e164 number…

    … check
    
    (cherry picked from commit b8e2318)
    ph4r05 authored and liviuchircu committed Jan 14, 2016
    Configuration menu
    Copy the full SHA
    c48773c View commit details
    Browse the repository at this point in the history
  12. fixing coverity found defects - copying into fixed size buffer

    (cherry picked from commit 92a7361)
    ph4r05 authored and liviuchircu committed Jan 14, 2016
    Configuration menu
    Copy the full SHA
    c9aaae3 View commit details
    Browse the repository at this point in the history
  13. fixing coverity found defects - copying into fixed size buffer withou…

    …t check, db_http
    
    (cherry picked from commit d471234)
    ph4r05 authored and liviuchircu committed Jan 14, 2016
    Configuration menu
    Copy the full SHA
    20004e4 View commit details
    Browse the repository at this point in the history
  14. fixing coverity found defects - null dereference

    (cherry picked from commit b578dda)
    ph4r05 authored and liviuchircu committed Jan 14, 2016
    Configuration menu
    Copy the full SHA
    19e5188 View commit details
    Browse the repository at this point in the history
  15. fixing coverity found defects - null dereference

    (cherry picked from commit 906bb91)
    
    Conflicts:
    	cachedb/cachedb_id.c
    ph4r05 authored and liviuchircu committed Jan 14, 2016
    Configuration menu
    Copy the full SHA
    37a7466 View commit details
    Browse the repository at this point in the history
  16. fixing coverity found defects - null dereference & broken logic

    (cherry picked from commit 81aeba4)
    ph4r05 authored and liviuchircu committed Jan 14, 2016
    Configuration menu
    Copy the full SHA
    6b4a327 View commit details
    Browse the repository at this point in the history
  17. fixing coverity found defects - memory corruption, null dereference

    (cherry picked from commit fd57609)
    ph4r05 authored and liviuchircu committed Jan 14, 2016
    Configuration menu
    Copy the full SHA
    56a7230 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    83f4597 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    02fde2a View commit details
    Browse the repository at this point in the history
  20. RPM spec: update version to 2.1.2

    Nick Altmann committed Jan 14, 2016
    Configuration menu
    Copy the full SHA
    7023ade View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2016

  1. [avpops]check if asyn funcs used in separate loop(on acmds struct)

    (cherry picked from commit 939b343)
    ionutrazvanionita committed Jan 15, 2016
    Configuration menu
    Copy the full SHA
    69aad41 View commit details
    Browse the repository at this point in the history
  2. function search: properly search through switch st

    (cherry picked from commit 446dd58)
    razvancrainea committed Jan 15, 2016
    Configuration menu
    Copy the full SHA
    c0a0408 View commit details
    Browse the repository at this point in the history
  3. [avpops]fix acmds instead of cmds

    (cherry picked from commit 9bd4c77)
    ionutrazvanionita committed Jan 15, 2016
    Configuration menu
    Copy the full SHA
    ad32566 View commit details
    Browse the repository at this point in the history
  4. [siptrace]fix proto issues

    leave IPPROTO_* format in hep header(which is returned by
    pipport2su() function) and after setting it use OpenSIPS
    format for sending(PROTO_UDP)
    ionutrazvanionita committed Jan 15, 2016
    Configuration menu
    Copy the full SHA
    5a28baf View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2016

  1. RPM spec: prepare for new build system

    - remove obsolete triggers
    - change tarball name and url
    Nick Altmann committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    44cc594 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2016

  1. uac_registrant: update timer handling

     - closes #758 - uac_registrant wrong hash sequence
    
    (cherry picked from commit be371da)
    ovidiusas committed Jan 18, 2016
    Configuration menu
    Copy the full SHA
    bd3751b View commit details
    Browse the repository at this point in the history
  2. fix calls per minute for fraud_detection module

    Now the calls per minute parameter is build as consisting of an initial
    time(t0) and a 60 seconds window(as was before). Each window slot holds the
    calls received in that second(as before). The difference is that now
    these parameters are updated based on three conditions:
    * we receive the call between [t0; t0 + WINDOW_SIZE(60s)] - we only update
    the number of calls for that slot(t0 + current time) and the calls per minute
    parameter
    * we receive the call in the interval of [t0+WINDOW_SIZE; t0+2*WINDOW_SIZE] -
    we do the following: move t0 in current call time - WINDOW_SIZE, invalidate
    all the calls we knew of from t0 to current t0 (current call time - WINDOW_SIZE)
    * we receive a call after 2 * WINDOW_SIZE(60 seconds) + t0 - this invalidates
    all the calls we knew of since the window is not does not contains calls newer
    than the last 60 seconds;
    
    (cherry picked from commit dd25c63)
    ionutrazvanionita committed Jan 18, 2016
    Configuration menu
    Copy the full SHA
    0c26f91 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bb37439 View commit details
    Browse the repository at this point in the history
  4. uri: fix e164_check overflow checking

    Reported by @ferrored on github
    Closes #762
    
    (cherry picked from commit 70e5a65)
    razvancrainea committed Jan 18, 2016
    Configuration menu
    Copy the full SHA
    0a642c5 View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2016

  1. db in string or int pvar for avp_db_query()

    (cherry picked from commit 8a51273)
    
    Conflicts:
    	modules/avpops/avpops.c
    ionutrazvanionita committed Jan 19, 2016
    Configuration menu
    Copy the full SHA
    d0f5c3d View commit details
    Browse the repository at this point in the history
  2. Fix restoring leg route set.

    Reported by Søren Andersen.
    bogdan-iancu committed Jan 19, 2016
    Configuration menu
    Copy the full SHA
    b602a7f View commit details
    Browse the repository at this point in the history
  3. Merge pull request #664 from wdoekes/wjd-allow_unset_dlg_in_req_route

    dialog: Document that unset_dlg_profile can be used from request_route.
    (cherry picked from commit 8d23d9b)
    bogdan-iancu committed Jan 19, 2016
    Configuration menu
    Copy the full SHA
    fbb4aac View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2016

  1. Coverity PR: minor refactorings

    (cherry picked from commit 9750241)
    
    Conflicts:
    	modules/ldap/iniparser.c
    	modules/usrloc/dlist.c
    
    Credits to Ognjen Seslija for the bug report
    liviuchircu committed Jan 21, 2016
    Configuration menu
    Copy the full SHA
    fbb97b8 View commit details
    Browse the repository at this point in the history
  2. Missing module "emergency" in extra list.

    This was braking the creation of extra tables (at least in postgres is did).
    Reported by Nathaniel L. Keeling III on mailing.
    bogdan-iancu committed Jan 21, 2016
    Configuration menu
    Copy the full SHA
    d9af15b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7de5534 View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2016

  1. Fix double free in case of errors when running MI command

    (cherry picked from commit ce6e844)
    vladpaiu committed Jan 25, 2016
    Configuration menu
    Copy the full SHA
    2641feb View commit details
    Browse the repository at this point in the history
  2. Fix STANDARD and EXTRA list of tables.

    Permissions (in postgres) were not granted for the missing tables.
    Reported by Nathaniel L. Keeling III on mailing list
    bogdan-iancu committed Jan 25, 2016
    Configuration menu
    Copy the full SHA
    aebf41f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    58ba97b View commit details
    Browse the repository at this point in the history
  4. Fix bugs in modules-readm target.

    (cherry picked from commit 0042b94)
    bogdan-iancu committed Jan 25, 2016
    Configuration menu
    Copy the full SHA
    9b42ff6 View commit details
    Browse the repository at this point in the history
  5. README files regenerated

    bogdan-iancu committed Jan 25, 2016
    Configuration menu
    Copy the full SHA
    16b63fd View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2016

  1. Fix codec handling functions when faulty streams are defined.

    Bogus test on the return code of stream_process() (using bitwise OR for -1, 0 and 1 values :O ), leads to a generic failure to find any codec in any stream if there is an invalid stream in the SDP.
    For example, if a video stream is defined but with no codecs, stream_process() will return -1 for it (as it is a bogus stream). While iterating through all the stream (including the valid audio stream), the -1 ret code will discard any 1 future ret code due the bogus bitwise OR.
    
    (cherry picked from commit ef82ca2)
    
    Conflicts:
    	modules/sipmsgops/codecs.c
    bogdan-iancu committed Jan 26, 2016
    Configuration menu
    Copy the full SHA
    41c8902 View commit details
    Browse the repository at this point in the history
  2. Fixed wrong warning on memory leak.

    Set the auth_hdr buffer to NULL after moving the buffer into the lump.
    Reported by Colin Martin on mailing list
    bogdan-iancu committed Jan 26, 2016
    Configuration menu
    Copy the full SHA
    bbaf821 View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2016

  1. Fix the sizing of the Async Reactors.

    Adjust the size of the reactor accroding the limit of opens files.
    Closing #765.
    
    (cherry picked from commit 2efdbf8)
    bogdan-iancu committed Jan 28, 2016
    Configuration menu
    Copy the full SHA
    bce5306 View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2016

  1. Fix calculation of timer set on 32b

    A bogus bitwise operation broke the calculation of the timer set on 32bits arch.
    Reported by @mshary (Muhammad Shahzad Shafi)
    Closes #732.
    bogdan-iancu committed Feb 1, 2016
    Configuration menu
    Copy the full SHA
    5b7b5f7 View commit details
    Browse the repository at this point in the history
  2. Fixed autodetection of the reactor size (open files)

    If we auto-detect the size of the reactor(via rulimit), be sure we have enough pkg memory (and do the necessary correction).
    If the open files limit is given, warn if the reactor will use too much memory.
    Thanks to MAxim Sobolev for reporting it via mailing list and to @cepehutu
    Closes #778
    
    (cherry picked from commit 6dd88ab)
    bogdan-iancu committed Feb 1, 2016
    Configuration menu
    Copy the full SHA
    12d27ab View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2016

  1. fix async: context shall be destroyed only at the last async call

    (cherry picked from commit 672cb13)
    ionutrazvanionita authored and bogdan-iancu committed Feb 2, 2016
    Configuration menu
    Copy the full SHA
    eb586ee View commit details
    Browse the repository at this point in the history
  2. Fix freeing processing context after a second async jump.

    If thw processing ctx was stored back into transaction (due a new async call), do not free the current ctx (as it became NULL).
    Reported by Minh PHAN (@qmphan).
    Closes #780 .
    
    (cherry picked from commit 031304a)
    bogdan-iancu committed Feb 2, 2016
    Configuration menu
    Copy the full SHA
    a3f84d5 View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2016

  1. Fixed improper setting of Missed column's type.

    Credits go to Pete Kelly (@petekelly).
    Closes #703 .
    bogdan-iancu committed Feb 4, 2016
    Configuration menu
    Copy the full SHA
    c846598 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2016

  1. Fix IPv6 insertion in fix_nated_contact()

    Add the [ ]  around IPv6 in the newly built contact URI.
    Reported by Jonathan Hunter on the mailing list
    
    (cherry picked from commit ce89e29)
    bogdan-iancu committed Feb 5, 2016
    Configuration menu
    Copy the full SHA
    0a3c97b View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2016

  1. proper compile on gcc 4.8

    (cherry picked from commit 421e3e3)
    razvancrainea committed Feb 11, 2016
    Configuration menu
    Copy the full SHA
    ad44a05 View commit details
    Browse the repository at this point in the history
  2. Fix proper callig in local cancels with TH.

    Extend the coverage of the preocessing context and TM context over the cancel_branch() function (in the timeout handler) so the TH callbacks can reach back the dialog and do the TH related changes.
    Reported by Julian Santer on mailing list.
    bogdan-iancu committed Feb 11, 2016
    Configuration menu
    Copy the full SHA
    8133656 View commit details
    Browse the repository at this point in the history
  3. Don't push throug RTPProxy streams with port 0 in SDP

    (cherry picked from commit 5dec43a)
    vladpaiu committed Feb 11, 2016
    Configuration menu
    Copy the full SHA
    135a0d6 View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2016

  1. arm: unforce thumb mode

    (cherry picked from commit c24b587)
    razvancrainea committed Feb 15, 2016
    Configuration menu
    Copy the full SHA
    96f6c77 View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2016

  1. Improve qvalue parsing

    * accept qvalues with no decimal digits (e.g. "1." and "0.")
      (this removes E_Q_DEC_MISSING from error.h)
    * improve bad qvalue error reporting
    
    (cherry picked from commit ed60363)
    liviuchircu committed Feb 17, 2016
    Configuration menu
    Copy the full SHA
    f84cc83 View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2016

  1. Fix contact DB delete in CONTACT_ONLY macthing.

    Do not use the callid as part of the key during the DB delete as it may changed (can be updated) in the meanwhile.
    Reported by @ferrored.
    Closing #764
    Many thanks to @ferrored for his support in troubleshooting this issue.
    
    (cherry picked from commit 23155e5)
    bogdan-iancu committed Feb 18, 2016
    Configuration menu
    Copy the full SHA
    b055320 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2016

  1. SIP forking engine: Fix async-related issues

    Previously (on OpenSIPS...), doing _any_ async operation at script level
    after a destination set had been built (by lookup(), append_branch(), etc)
    would have lead to unpredictable results.
    
    This patch addresses the problem by moving the destination set storage
    into the current processing context (from static mem to pkg mem).
    
    Impact on memory usage at worst (12 branches for each request) is
    an extra 30 MB of PKG memory per every 1000 cps.
    
    (cherry picked from commit a7b287f)
    
    Conflicts:
    	main.c
    liviuchircu committed Feb 23, 2016
    Configuration menu
    Copy the full SHA
    12817d4 View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2016

  1. Blacklisting logic: Fix async-related issues

    Similar issue to the one behind commit a7b287f. Static memory
    holders are no longer compatible with async operations and need
    to be moved into dynamic mem (pkg in our case) so that data can
    be properly restored before resuming the script.
    
    (cherry picked from commit 2e7588b)
    
    Conflicts:
    	blacklists.c
    liviuchircu committed Feb 24, 2016
    Configuration menu
    Copy the full SHA
    bedecc4 View commit details
    Browse the repository at this point in the history
  2. Order target dependencies to avoid FTBFS in parallel builds.

    Julián Moreno Patiño authored and razvancrainea committed Feb 24, 2016
    Configuration menu
    Copy the full SHA
    9fc407d View commit details
    Browse the repository at this point in the history
  3. SIP forking logic: Add extra NULL checks

    This prevents a crash when no branches are pushed yet, but a branch
    management function is called (e.g. t_replicate() or a write to
    $(branch(uri)[0]) is done)
    
    Issue reported by Trevor Francis
    
    (cherry picked from commit 5e3f068)
    liviuchircu committed Feb 24, 2016
    Configuration menu
    Copy the full SHA
    b25c8aa View commit details
    Browse the repository at this point in the history
  4. sync with latest debian package

    Julián Moreno Patiño authored and razvancrainea committed Feb 24, 2016
    Configuration menu
    Copy the full SHA
    8b30865 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    29028cf View commit details
    Browse the repository at this point in the history
  6. build: change variables for other OSes

    (cherry picked from commit cec0c72)
    razvancrainea committed Feb 24, 2016
    Configuration menu
    Copy the full SHA
    3ea83ce View commit details
    Browse the repository at this point in the history
  7. destination sets: Add yet another NULL check

    Reported by Ovidiu Sas
    Fixes #806
    
    (cherry picked from commit 5718e24)
    liviuchircu committed Feb 24, 2016
    Configuration menu
    Copy the full SHA
    1eeb44d View commit details
    Browse the repository at this point in the history

Commits on Feb 25, 2016

  1. Configuration menu
    Copy the full SHA
    6ce7676 View commit details
    Browse the repository at this point in the history
  2. update changelog and add berkeley deb

    Julián Moreno Patiño authored and razvancrainea committed Feb 25, 2016
    Configuration menu
    Copy the full SHA
    04b2eba View commit details
    Browse the repository at this point in the history
  3. support reproducible builds

    Julián Moreno Patiño authored and razvancrainea committed Feb 25, 2016
    Configuration menu
    Copy the full SHA
    d04e3b7 View commit details
    Browse the repository at this point in the history
  4. update spelling checks

    Julián Moreno Patiño authored and razvancrainea committed Feb 25, 2016
    Configuration menu
    Copy the full SHA
    e6b7395 View commit details
    Browse the repository at this point in the history
  5. other spellchecks

    (cherry picked from commit a547af5)
    razvancrainea committed Feb 25, 2016
    Configuration menu
    Copy the full SHA
    e615552 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    39b517d View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2016

  1. Updated to support STIR.

    Di-Shi Sun committed Feb 26, 2016
    Configuration menu
    Copy the full SHA
    41e2b38 View commit details
    Browse the repository at this point in the history
  2. loop: declare fd_map for devpoll

    Reported by Nathaniel L. Keeling III
    
    (cherry picked from commit fe785bf)
    razvancrainea committed Feb 26, 2016
    Configuration menu
    Copy the full SHA
    7dadebb View commit details
    Browse the repository at this point in the history

Commits on Feb 29, 2016

  1. Deprecate 'use UNIVERSAL'

    (cherry picked from commit e5f0b55)
    Julián Moreno Patiño authored and razvancrainea committed Feb 29, 2016
    Configuration menu
    Copy the full SHA
    8dce547 View commit details
    Browse the repository at this point in the history
  2. rename s_addr to avoid overlapping with Solaris structs

    Discovered by Nathaniel L. Keeling
    
    (cherry picked from commit 6c99004)
    razvancrainea committed Feb 29, 2016
    Configuration menu
    Copy the full SHA
    aa4b580 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2016

  1. Configuration menu
    Copy the full SHA
    b0e5fab View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2016

  1. tcp: prevent invalid mem access

    Reported by Saúl Ibarra Corretgé
    
    (cherry picked from commit a607aa8)
    razvancrainea committed Mar 4, 2016
    Configuration menu
    Copy the full SHA
    cde7bd4 View commit details
    Browse the repository at this point in the history
  2. Allow setting branch flags when no branches are yet appended

    Commit 5e3f068 was too restrictive, since flags for "branch 0"
    (a special branch, stored in current struct sip_msg) may be set regardless of
    the number of append_branch() operations done previously!
    
    Reported by Dragomir Haralambiev
    
    (cherry picked from commit 6d1704c)
    liviuchircu authored and ionutrazvanionita committed Mar 4, 2016
    Configuration menu
    Copy the full SHA
    2555c5e View commit details
    Browse the repository at this point in the history
  3. tm: Refactor some hardcoded static string lengths

    This also fixes a couple of chopped MI error strings in "t_uac_dlg"
    
    (cherry picked from commit 60d4d4b)
    liviuchircu committed Mar 4, 2016
    Configuration menu
    Copy the full SHA
    6d126a1 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2016

  1. Merge pull request #814 from sippy/master_rtpp_ip6_fix

    Fix an issue with IPv6 in the rtpproxy module
    (cherry picked from commit f906d93)
    bogdan-iancu committed Mar 7, 2016
    Configuration menu
    Copy the full SHA
    172009c View commit details
    Browse the repository at this point in the history
  2. Fixed leak due wrong return code handling.

    Based on a patch provided by Jarrod Baumann (@jarrodb)
    Closes #822
    
    (cherry picked from commit 3b37b82)
    bogdan-iancu committed Mar 7, 2016
    Configuration menu
    Copy the full SHA
    f89dfc7 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2016

  1. t_newtran() automatically sends a 100 Tryting for INVITE.

    TO have a consistent behavior between:
    	t_newtran();
    	t_relay();
    and
    	t_relay();
    
    (where in the first case a 100 Trying will not be auto generated), we do not sent the 100 Trying on r_relay (when transaction is built) but on t_newtan().
    Reported by MAxim Sobolev.
    
    (cherry picked from commit 0db7789)
    bogdan-iancu committed Mar 8, 2016
    Configuration menu
    Copy the full SHA
    054836a View commit details
    Browse the repository at this point in the history
  2. dialog: Lower log level of state change errors

    Out-of-order SIP requests are a frequent occurence in high-traffic
    environments. The dialog module should not consider these events as
    being critical, but rather as warnings, so they can be easily
    filtered out from the logs.
    
    (cherry picked from commit e403a2b)
    liviuchircu committed Mar 8, 2016
    Configuration menu
    Copy the full SHA
    e2bdb30 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #823 from jarrodb/db_postgres

    Add JSONOID to pg_type.h for supporting JSON return types as DB_STRING
    (cherry picked from commit e6bb7ac)
    bogdan-iancu committed Mar 8, 2016
    Configuration menu
    Copy the full SHA
    e48bc6f View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2016

  1. Fixed memory leak on checking disposition hdr.

    Free the parsed disposition body all the time (on success and failure) as it is not attached to any structure, so it will leak if not explicitly be freed.
    Credits for reporting this go to Jarrod Baumann.
    Based on an original fix from Jarrod Baumann
    Closes PR #825
    
    (cherry picked from commit 4601e56)
    bogdan-iancu committed Mar 11, 2016
    Configuration menu
    Copy the full SHA
    1a194ad View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2016

  1. Fixed async jump for end2end ACKs.

    As end2end ACKs do not create a sip transaction, force sync for all async operations (as we cannot suspend and resume).
    Closes #819
    bogdan-iancu committed Mar 15, 2016
    Configuration menu
    Copy the full SHA
    b2bc43e View commit details
    Browse the repository at this point in the history
  2. Fix crash when using $si in non SIP routes.

    If using $si in event, timer or startup routes, return a NULL value.
    Use a dummy AF_INET from src and dst IPs.
    Prevent crashing while evaluating $si by checking return code of ip_addr2a()
    Closes #817
    Outdates #828
    
    (cherry picked from commit 2d0cebc)
    bogdan-iancu committed Mar 15, 2016
    Configuration menu
    Copy the full SHA
    981e354 View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2016

  1. Configuration menu
    Copy the full SHA
    dc229a1 View commit details
    Browse the repository at this point in the history
  2. topology_hiding: prefent crash at shutdown

    (cherry picked from commit 00632a0b5a93f84531bb391bda2939b2ba351013)
    razvancrainea committed Mar 16, 2016
    Configuration menu
    Copy the full SHA
    a759574 View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2016

  1. Reset to 0 the whole branch if failed.

    If we do not reset, on trying to add the next branch (on the same position), we will end up with dangling pointers.
    
    (cherry picked from commit d5c3bd1)
    bogdan-iancu committed Mar 17, 2016
    Configuration menu
    Copy the full SHA
    847805e View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2016

  1. Fix extracting TO hdr.

    Do not add '@' if username is not present.
    Reported by @DMOsipov on GITHUB.
    Closes #818
    bogdan-iancu committed Mar 18, 2016
    Configuration menu
    Copy the full SHA
    e74f665 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2016

  1. Fixed usage of Prep Statement on failed CDRs.

    The number of inserted columns is variable (n+m or n+m+2), so we need different statements for each.
    Reported by @apsaras (on GITHUB)
    Closes #821
    bogdan-iancu committed Mar 19, 2016
    Configuration menu
    Copy the full SHA
    e49e2e8 View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2016

  1. Fixed port param for lb_is_destination().

    It must accept integer values also, not only variables.
    Reported by @telephone-man on GITHUB
    Closes #808.
    bogdan-iancu committed Mar 20, 2016
    Configuration menu
    Copy the full SHA
    143328f View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2016

  1. Accept XMLRPC requests without params node.

    If there are no parameters, the params XML node is not required.
    Repored by Nick Altmann
    Closes #826
    
    (cherry picked from commit d20b3d0)
    bogdan-iancu committed Mar 21, 2016
    Configuration menu
    Copy the full SHA
    c4cc161 View commit details
    Browse the repository at this point in the history
  2. Prevent async in local route.

    The way local route is implemented (triggered and terminated in TM module) does not allow async resumes, so, for the moment, we simply force all the async triggers to be executed in a sync way in local route.
    bogdan-iancu committed Mar 21, 2016
    Configuration menu
    Copy the full SHA
    940996f View commit details
    Browse the repository at this point in the history
  3. scripts/opensipsctl: complete support for optional database port

    (cherry picked from commit 04d8a84)
    ovidiusas committed Mar 21, 2016
    Configuration menu
    Copy the full SHA
    ef2a42f View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2016

  1. Fixed 491 Pending scenario in B2B.

    Generate 491 Pending reply to the correct transaction (the new incoming one) and drop the requests (do not forward it).
    Credits for debugging, reporting and fixing go to @DMOsipov .
    Closes #679
    
    (cherry picked from commit ec7b4e5)
    bogdan-iancu committed Mar 22, 2016
    Configuration menu
    Copy the full SHA
    8002174 View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2016

  1. Proper handling of isolated EPOLLHUP events.

    capture and handle EPOLLHUP or EPOLLERR events even if they are not in conjunction with EPOLLIN or EPOLLOUT.
    Many thanks to @santhosh-kumar for reporting and helping with troubleshooting.
    
    Closes #829
    bogdan-iancu committed Mar 24, 2016
    Configuration menu
    Copy the full SHA
    92245fd View commit details
    Browse the repository at this point in the history
  2. Improve robustness of core URI copying functions

    Namely set_ruri(), set_dst_uri(), set_path_vector().
    
    This patch corrects the behaviour of the above functions when they are
    fed strange/corrupt strings, such as {NULL, 5} or {0x7fb..., 0}.
    
    There are still plenty of pieces of OpenSIPS code which assume such
    strings should be correctly processed, e.g. next_branches(), which may
    lead to a whole world of problems ranging from segfaults, double free
    operations and dangling pointers all the way up to intermixed shm/pkg
    memory pointers.
    
    The best way of addressing this issue is to simply accept such input and
    zeroize (and free) the concerned sip_msg attributes.
    
    Many thanks to Ovidiu Sas <osas@voipembedded.com> for in-depth error
    reporting and assistance in fixing this issue
    
    (cherry picked from commit 2787308)
    liviuchircu committed Mar 24, 2016
    Configuration menu
    Copy the full SHA
    f1f67d9 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2016

  1. drouting api: Fix a double free bug

    Crashes / memory corruptions could ensue after running "fraud_reload" MI
    commands or during OpenSIPS shutdown, if fraud_detection had some data
    to work with.
    
    (cherry picked from commit 2380bbd)
    liviuchircu committed Mar 29, 2016
    Configuration menu
    Copy the full SHA
    15bf627 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2016

  1. TLS: Fix misleading error logs on accept() failures

    OpenSIPS would always log SSL_accept() failures as being "rejected by
    client". This is entirely not the case, as the errors may as very well be
    server-side, due to cipher mismatches, failed peer verifications, etc.
    
    Reported by Nabeel Shikder on the "users" mailing list
    liviuchircu committed Mar 30, 2016
    Configuration menu
    Copy the full SHA
    e925732 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2016

  1. Fix bogus log

    bogdan-iancu committed Mar 31, 2016
    Configuration menu
    Copy the full SHA
    87c93b8 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2016

  1. cachedb_redis: Prevent crash when re-connect keeps failing

    (cherry picked from commit b501df7)
    khoegh authored and liviuchircu committed Apr 7, 2016
    Configuration menu
    Copy the full SHA
    44d2748 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2016

  1. pi_http: return "200 OK" instead of "0 Unknown"

    (cherry picked from commit 73f8117)
    ovidiusas committed Apr 11, 2016
    Configuration menu
    Copy the full SHA
    36c4c63 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2016

  1. Fixed bogus pkg_free on pointer in data segment

    Reported by @dzhou121
    Closes #854
    bogdan-iancu committed Apr 20, 2016
    Configuration menu
    Copy the full SHA
    b9aa873 View commit details
    Browse the repository at this point in the history
  2. MI library: Add comments regarding a known issue

    Currently, MI arrays cannot contain objects with non-identical
    "name" attributes.
    
    This patch also quickfixes this issue in mi_list_all_profiles() by dropping
    the array idea altogether, in favour of a top-most object.
    
    (cherry picked from commit 6c10501)
    liviuchircu committed Apr 20, 2016
    Configuration menu
    Copy the full SHA
    4358451 View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2016

  1. [tls_mgm] properly handle SSL_ERROR_SYSCALL on SSL_shutdown

    (cherry picked from commit bdcee39)
    ionutrazvanionita committed Apr 26, 2016
    Configuration menu
    Copy the full SHA
    5600997 View commit details
    Browse the repository at this point in the history

Commits on May 3, 2016

  1. regex: fix spell-check in package

    (cherry picked from commit 647ea21)
    razvancrainea committed May 3, 2016
    Configuration menu
    Copy the full SHA
    25b6041 View commit details
    Browse the repository at this point in the history

Commits on May 4, 2016

  1. ratelimit: initialize the length of the algorithm

    (cherry picked from commit 0eebf10)
    razvancrainea committed May 4, 2016
    Configuration menu
    Copy the full SHA
    d273ced View commit details
    Browse the repository at this point in the history
  2. Updated opensipsctl.base to also search /sbin

    The md5 utility is located at /sbin/md5 on FreeBSD 8.3. An additional common location was added to allow the script to accommodate this.
    (cherry picked from commit ca87f55)
    renicok authored and liviuchircu committed May 4, 2016
    Configuration menu
    Copy the full SHA
    c25b6b2 View commit details
    Browse the repository at this point in the history

Commits on May 11, 2016

  1. [dispatcher] fix double allocation issue

    (cherry picked from commit d6891363e3b3b4047a1948eb03fb6b6bab285885)
    ionutrazvanionita committed May 11, 2016
    Configuration menu
    Copy the full SHA
    4f0dce9 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2016

  1. Fixed bogus memory operations.

    Fixed bogus free (of uninit pointer) if parse_contact() fails
    Fixed shm leak on errors after print_rr_body
    Fixed shm leak on success if record_route is present.
    Reported by John Nash.
    bogdan-iancu committed May 18, 2016
    Configuration menu
    Copy the full SHA
    4b0fca5 View commit details
    Browse the repository at this point in the history

Commits on May 19, 2016

  1. Fixed preserving 3xx Contacts in TH without dialog

    Reported by Pete Kelly.
    Closes #656.
    
    (cherry picked from commit 6184b96)
    bogdan-iancu committed May 19, 2016
    Configuration menu
    Copy the full SHA
    80a1c31 View commit details
    Browse the repository at this point in the history
  2. Fix bogus timer ref counter during expire update.

    Many thanks to Trevor Francis for reporting and helping with troubleshooting and testing.
    
    (cherry picked from commit 047b1b3)
    bogdan-iancu committed May 19, 2016
    Configuration menu
    Copy the full SHA
    d94885a View commit details
    Browse the repository at this point in the history

Commits on May 20, 2016

  1. Process sequential messages received in CONFIRMED_NA state

    Due to UDP race conditions, sequential messages may be received
    before the ACK confirming the initial INVITE ( eg. Re-INVITE sent
    immediately as the call is established in order to force
    a specific codec ) - also push these requests through the whole
    dialog processing in order to avoid any future issues ( eg. CSEQ
    updating which, if left unprocessed, will lead to generating out
    of order sequentials by OpenSIPS )
    
    (cherry picked from commit bfaf022)
    vladpaiu committed May 20, 2016
    Configuration menu
    Copy the full SHA
    eacc39c View commit details
    Browse the repository at this point in the history
  2. Fix a string concatenation operator bug

    This patch fixes an issue with string concatenation where any NULL
    operand would cause all operands to its left to be ignored when
    computing the result of the expression.
    
    Reported by Ovidiu Sas
    Closes #870
    
    (cherry picked from commit a420752)
    liviuchircu committed May 20, 2016
    Configuration menu
    Copy the full SHA
    bab109f View commit details
    Browse the repository at this point in the history
  3. re-register topo hiding callbacks after restart

    Thanks to Pete Kelly for reporting this
    
    (cherry picked from commit 4c84bd8)
    razvancrainea committed May 20, 2016
    Configuration menu
    Copy the full SHA
    2a3d31e View commit details
    Browse the repository at this point in the history
  4. th: fix dlg flag check

    (cherry picked from commit 1b5802d)
    razvancrainea committed May 20, 2016
    Configuration menu
    Copy the full SHA
    351d85b View commit details
    Browse the repository at this point in the history

Commits on May 23, 2016

  1. Configuration menu
    Copy the full SHA
    5c3f7ff View commit details
    Browse the repository at this point in the history
  2. Added extra log message on openssl 1.0.1e-fips bug.

    If CRYPTO_set_mem_functions() fails, make a note on the openssl 1.0.1e-fips bug, so users may have a hint on the actual issue.
    See more  #834.
    Closing  #834.
    bogdan-iancu committed May 23, 2016
    Configuration menu
    Copy the full SHA
    1c07f61 View commit details
    Browse the repository at this point in the history
  3. [mmgeoip] allow chosing memory caching type

    	Before GEOIP_MMAP_CACHE was used causing a segmentation
    fault when database file was changed. Now users can choose between
    reading the database directly from file, cahing it into memory with
    the possibility to change the database file at runtime.
    
    (cherry picked from commit ecf5032aaafbe5a93bbfc3562c4b3358548839e7)
    ionutrazvanionita committed May 23, 2016
    Configuration menu
    Copy the full SHA
    0735d51 View commit details
    Browse the repository at this point in the history

Commits on May 24, 2016

  1. Revert "Accept TCP aliases by default"

    This reverts commit d62bc96.
    
    Firstly, TCP connection reusage (RFC 5923) should only be employed between
    TLS endpoints - only TLS allows the endpoints to authenticate each other
    during connection setup, preventing unauthorized connection hijacking.
    
    Secondly, aside from any security considerations, RFC 5923 must
    not be employed fanatically (Proxy-Proxy, Edge-UA, UA-Proxy) on any TCP
    connection (especially disregarding the ";alias" Via parameter!), but
    rather only between adjacent SIP entities who can both initiate a
    connection towards each other, and also support the RFC. In the real
    world, we're basically only talking about the Proxy-Proxy usage case, as
    any SIP UA scenario will most likely involve some form of NAT and a
    Proxy that cannot open connections backwards, towards the UA. In these
    cases, TCP connection reusage is _completely_ out of the question, as a
    single UA might end up receiving all calls of all users behind their
    public IP.
    
    Thanks to Jonas Borjesson for reporting the problem in the first place.
    
    (cherry picked from commit 715339f)
    liviuchircu committed May 24, 2016
    Configuration menu
    Copy the full SHA
    3a7f90e View commit details
    Browse the repository at this point in the history
  2. TCP connection lookup: Add matching by transport

    The fact that all currently supported TCP-oriented protocols have different
    standard ports is not an excuse for not including the transport into the
    match condition (i.e. dest IP address + dest port + dest transport).
    
    This may very well prevent issues with messages being sent out over the
    wrong TCP connection in a number of scenarios where we employ TCP connection
    reusage over both plain TCP and TLS with a Proxy that specifies the same port
    in the topmost Via header when it establishes each of the two connections.
    
    (cherry picked from commit 13970bb)
    
    Conflicts:
    	modules/proto_bin/proto_bin.c
    	modules/proto_hep/proto_hep.c
    	modules/proto_wss/proto_wss.c
    	modules/tls_mgm/tls_mgm.c
    liviuchircu committed May 24, 2016
    Configuration menu
    Copy the full SHA
    5937884 View commit details
    Browse the repository at this point in the history
  3. TCP alias lookup: Add matching by transport

    Further improving commit 13970bb.
    
    (cherry picked from commit ea699f0)
    liviuchircu committed May 24, 2016
    Configuration menu
    Copy the full SHA
    dfda90a View commit details
    Browse the repository at this point in the history

Commits on May 25, 2016

  1. mi_xmlrpc_ng: Fix a shared memory leak

    (cherry picked from commit d047e10)
    liviuchircu committed May 25, 2016
    Configuration menu
    Copy the full SHA
    3e5fe64 View commit details
    Browse the repository at this point in the history
  2. mi_xmlrpc_ng: Remove an incorrect free operation

    Completes commit d047e10
    
    (cherry picked from commit 99f039e)
    
    Conflicts:
    	modules/mi_xmlrpc_ng/http_fnc.c
    liviuchircu committed May 25, 2016
    Configuration menu
    Copy the full SHA
    d1e0989 View commit details
    Browse the repository at this point in the history
  3. Obey USE_SYSV_SEM and USE_PTHREAD_MUTEX.

    If USE_SYSV_SEM or USE_PTHREAD_MUTEX are defined via Makefile.conf, do you force autodetection (based on arch type) of the locking support.
    
    (cherry picked from commit 39592dc)
    bogdan-iancu committed May 25, 2016
    Configuration menu
    Copy the full SHA
    c0c9eaa View commit details
    Browse the repository at this point in the history
  4. Fix bogus destroy of a RW lock.

    (cherry picked from commit 83f3945)
    bogdan-iancu committed May 25, 2016
    Configuration menu
    Copy the full SHA
    0c9c688 View commit details
    Browse the repository at this point in the history
  5. Proper support for USE_POSIX_SEM option in Makefile

    (cherry picked from commit 5e40aaf)
    bogdan-iancu committed May 25, 2016
    Configuration menu
    Copy the full SHA
    c6df63a View commit details
    Browse the repository at this point in the history
  6. Fix bogus set locking functions.

    It is used for SYSTEM V locking only, looks like a copy'n'paste error.
    
    (cherry picked from commit 4bcdf4e)
    bogdan-iancu committed May 25, 2016
    Configuration menu
    Copy the full SHA
    a18183f View commit details
    Browse the repository at this point in the history
  7. Fix warning in SYSTEM V locking functions

    (cherry picked from commit 53b3f40)
    bogdan-iancu committed May 25, 2016
    Configuration menu
    Copy the full SHA
    f663dd3 View commit details
    Browse the repository at this point in the history
  8. call_center: obey lock_set interface

    (cherry picked from commit 4a226ce)
    razvancrainea committed May 25, 2016
    Configuration menu
    Copy the full SHA
    a645657 View commit details
    Browse the repository at this point in the history

Commits on May 26, 2016

  1. dialplan: Fix a rule tie-breaking bug

    When an input string would match both a "string" rule and a "regex"
    rule, the priority based tie-breaking was incorrect (now favouring
    the bigger priority instead - opposite to default module behavior).
    
    Thanks to @paolodepa for suggesting this fix
    Fixes issue #696
    
    (cherry picked from commit cbdd79a)
    liviuchircu committed May 26, 2016
    Configuration menu
    Copy the full SHA
    9c66491 View commit details
    Browse the repository at this point in the history
  2. fix bin crash if no listener defined

    When using usrloc and dialog replication, if no bin_listen is defined,
    OpenSIPS crashes. This fix ensures that if there are any replication
    destinations defined, the binary listener exists.
    
    Thanks go to Stas Kobzar for reporting this
    Closes #652
    razvancrainea committed May 26, 2016
    Configuration menu
    Copy the full SHA
    8f46c2f View commit details
    Browse the repository at this point in the history
  3. dialplan: Improve documentation

    Added paragraphs regarding rule types along with explanations on
    they way priorities and rule tie-breaking work.
    
    (cherry picked from commit 46894f8)
    
    Conflicts:
    	modules/dialplan/doc/dialplan_admin.xml
    liviuchircu committed May 26, 2016
    Configuration menu
    Copy the full SHA
    4ef316b View commit details
    Browse the repository at this point in the history
  4. dbtext: convert DBG to ERR for better debugging

    (cherry picked from commit 0f08b26)
    razvancrainea committed May 26, 2016
    Configuration menu
    Copy the full SHA
    7697fba View commit details
    Browse the repository at this point in the history
  5. Improve error reporting for unknown script vars

    Fixes #574
    
    (cherry picked from commit 97ace29)
    liviuchircu committed May 26, 2016
    Configuration menu
    Copy the full SHA
    2b57eaf View commit details
    Browse the repository at this point in the history

Commits on May 27, 2016

  1. Fixed missing MI reply on pua_publish.

    Properly send an MI reply for the async pua_publish with Expires 0.
    Many thanks to Damien Sandrs for invetigating and reporting.
    
    Closing #657
    
    (cherry picked from commit 60d01ef)
    bogdan-iancu committed May 27, 2016
    Configuration menu
    Copy the full SHA
    1a38656 View commit details
    Browse the repository at this point in the history
  2. add license to rw_locking.h header

    (cherry picked from commit e3a57ac)
    razvancrainea committed May 27, 2016
    Configuration menu
    Copy the full SHA
    4c18d31 View commit details
    Browse the repository at this point in the history
  3. Link the dialog cell into internally generated requests from the dial…

    …og module
    
    Fixes #839
    
    (cherry picked from commit 66937a2)
    vladpaiu committed May 27, 2016
    Configuration menu
    Copy the full SHA
    d3f56fd View commit details
    Browse the repository at this point in the history

Commits on May 30, 2016

  1. Fixed bogus test when using POSIX or PTHREAD locks.

    Reported by Steve Woolley.
    (this was fixed on 2.2 and trunk when debug support was added for locks).
    bogdan-iancu committed May 30, 2016
    Configuration menu
    Copy the full SHA
    f8a21e4 View commit details
    Browse the repository at this point in the history
  2. Fixed proper cleanup on failure of tcpconn_new()

    The chances for going for error cases are very low, still let's do it in the proper way
    
    (cherry picked from commit 57c163b)
    bogdan-iancu committed May 30, 2016
    Configuration menu
    Copy the full SHA
    7bc985c View commit details
    Browse the repository at this point in the history
  3. If POSIX sems are used, be sure to link against pthread lib

    (cherry picked from commit f7de640)
    bogdan-iancu committed May 30, 2016
    Configuration menu
    Copy the full SHA
    82f8093 View commit details
    Browse the repository at this point in the history
  4. Fixed interface matching in loose_route()

    If port is missing in Route URI, do not assume default 5060, but consider the schema and protocol (they may require a different default port).
    Ex: sip:10.0.0.5;transport=tls was previously handled as sip:10.0.0.5:5060;transport=tls, which is wrong as the default TLS port is 5061
    Reported on mailing list by Ravitez Dondeti.
    
    (cherry picked from commit 3593a5f)
    bogdan-iancu committed May 30, 2016
    Configuration menu
    Copy the full SHA
    d670270 View commit details
    Browse the repository at this point in the history
  5. Fix invalid memory access with async MySQL queries

    Due to the way the libmysqlclient query result strings were managed,
    they would be freed by the library before OpenSIPS would copy them
    into the output AVPs.
    
    This patch fixes the issue by adding a new DB API function which handles
    the cleanup of async query results.
    
    Reported by Ovidiu Sas
    Addresses issue #873
    
    (cherry picked from commit 177c60a)
    
    Conflicts:
    	db/db.h
    	modules/avpops/avpops_impl.c
    	modules/db_mysql/dbase.c
    	modules/db_mysql/dbase.h
    	modules/db_sqlite/db_sqlite.c
    	modules/db_virtual/db_virtual.c
    	modules/db_virtual/dbase.c
    	modules/db_virtual/dbase.h
    	modules/sipcapture/sipcapture.c
    liviuchircu committed May 30, 2016
    Configuration menu
    Copy the full SHA
    3a5138b View commit details
    Browse the repository at this point in the history
  6. Update version 2.1.3

    razvancrainea committed May 30, 2016
    Configuration menu
    Copy the full SHA
    bee0cee View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    1867198 View commit details
    Browse the repository at this point in the history

Commits on May 31, 2016

  1. httpd: properly treat select response

    (cherry picked from commit b49d374)
    razvancrainea authored and liviuchircu committed May 31, 2016
    Configuration menu
    Copy the full SHA
    34abb00 View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2016

  1. Fix documentation on former b2bl_key_avp module param

    (cherry picked from commit ca21c6d)
    bogdan-iancu committed Jun 1, 2016
    Configuration menu
    Copy the full SHA
    72f1711 View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2016

  1. Proper handle the case of no usrloc domain registered.

    Prevent get_next_udomain() crashing if there are no usrloc domains registered (reported by Qasim Akhan on users mailing list.
    Do not enable the pinging support in nathelper if usrloc has no registered domains.
    
    (cherry picked from commit 8f0c677)
    bogdan-iancu committed Jun 3, 2016
    Configuration menu
    Copy the full SHA
    f2ab0da View commit details
    Browse the repository at this point in the history
  2. Fix error handling in DB writes.

    If inserting/updating a dlg record in DB fails, do not exit with error, but continue with the rest of the dialogs.
    Credits for finding and reporting this go to Rik Broers @ Motto
    
    (cherry picked from commit 0ca6cf0)
    bogdan-iancu committed Jun 3, 2016
    Configuration menu
    Copy the full SHA
    48c178b View commit details
    Browse the repository at this point in the history
  3. Removed unused "error" jump label

    (cherry picked from commit 5819b0f)
    bogdan-iancu committed Jun 3, 2016
    Configuration menu
    Copy the full SHA
    a5b1249 View commit details
    Browse the repository at this point in the history
  4. Removed wrong "NOT NULL" constraint over the contact DB fields

    The code actually handles the case of NULL callee / caller contacts, so DB must allow NULL values.
    bogdan-iancu committed Jun 3, 2016
    Configuration menu
    Copy the full SHA
    485bfad View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2016

  1. Removed compilation warning

    implicit declaration of function â"sched_yield" [-Wimplicit-function-declaration]
    
    (cherry picked from commit 8ef8d79)
    vladpaiu committed Jun 7, 2016
    Configuration menu
    Copy the full SHA
    10bff83 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2016

  1. Fix evaluating the SIP port from a SIP URI.

    Use the new function get_uri_port() to evaluate the port and proto, in a SIP wise manner, form a SIP URI. If port/proto are not explicitly set in the URI, consider the default port for the used transpor proto. If protocol misses, we assume the default protos according to the URI schema.
    
    NOTE: it is completly bogus (and dangerous) to assue 5061 if SIPS schema is used as:
    1) SIPS can use used with WSS, which actually has 443 port
    2) TLS can pe required via transport param in a SIP schema URI too
    
    (cherry picked from commit 4c54bcd)
    bogdan-iancu committed Jun 8, 2016
    Configuration menu
    Copy the full SHA
    2ca9e1d View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2016

  1. Fixed forcing FAST LOCKS for arm6.

    Use FAST locking support for arm6 too.
    For Linux, use POSIX as default locking support.
    
    (cherry picked from commit 058e16f)
    bogdan-iancu committed Jun 9, 2016
    Configuration menu
    Copy the full SHA
    58b2d8b View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2016

  1. Fix potential 100 Trying duplicates.

    Added the "auto_100trying" module parameter to allow the script writter to take control (from script level) over when the 100 Trying reply is to be sent back.
    By default, the reply is automatically generated when the INVITE transaction is created.
    Fixes #833
    
    (cherry picked from commit b023c93)
    (cherry picked from commit 71b5274)
    bogdan-iancu committed Jun 16, 2016
    Configuration menu
    Copy the full SHA
    248c836 View commit details
    Browse the repository at this point in the history
  2. Fix memory corruption on $stat() vars

    The $stat() var specs are kept in pkg, while the name (if stat not found) is kept in memeory. This means all the copies (form all procs) of the specs will point to a single shm block. It is not safet to free this block as you have no idea how many copies of the spec (from other processes) still refer the name.
    Closes #902
    
    (cherry picked from commit 4baead7)
    bogdan-iancu committed Jun 16, 2016
    Configuration menu
    Copy the full SHA
    5b76510 View commit details
    Browse the repository at this point in the history
  3. Fixed failure to enable NAT pinging.

    Commit 8f0c677 introduces a bug in testing is usrloc domains are available, and if not, to disable the NAT pinging in nathelper. The test is wrong as it is done in mod_init, while registrar module registerd the usrloc domain via fixup function, after the mod_init section.
    
    Reported by Nick Altmann
    
    (cherry picked from commit f150fb7)
    bogdan-iancu committed Jun 16, 2016
    Configuration menu
    Copy the full SHA
    8ea0ab1 View commit details
    Browse the repository at this point in the history
  4. Add support for SIP URIs without user part in 'avpops' module.

    This module provides a set of avp_db_xxx functions which take pseudo
    var and flag as first argument. Flag can be one of username, domain,
    uri or uuid. Previosly avp_db_xxx functions used to return an error if
    flag has been set to username, domain or uri and specifed pseudo var
    did not contain username and host after parsing as SIP URI. This
    behaviour seems to be strange because if flag is being set to
    domain/username and sip URI contains domain/username we can still
    load/store/delete this variable.
    
    (cherry picked from commit 459f2e9)
    andrey-vorobiev authored and razvancrainea committed Jun 16, 2016
    Configuration menu
    Copy the full SHA
    5c25300 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2016

  1. Update rtpproxy.c

    When building I/O vector for command to rtpproxy in "force_rtp_proxy_body", after an IPv6 address is detected and the "6" option is added, increase the length component in the I/O vector so it is passed correctly.
    (cherry picked from commit 4e73871)
    davesidwell authored and razvancrainea committed Jun 17, 2016
    Configuration menu
    Copy the full SHA
    5708cf5 View commit details
    Browse the repository at this point in the history
  2. Update rtpproxy.c

    When moving stored parameters from Branch AVP to Dialog variable, make sure that the integer value "setid" is handled correctly so that it remains valid for the remainder of the dialog.
    (cherry picked from commit e267e9e)
    davesidwell authored and razvancrainea committed Jun 17, 2016
    Configuration menu
    Copy the full SHA
    2edafc6 View commit details
    Browse the repository at this point in the history
  3. rtpproxy: no need to update the len for IPv6

    (cherry picked from commit 5cfd916)
    razvancrainea committed Jun 17, 2016
    Configuration menu
    Copy the full SHA
    01cf24e View commit details
    Browse the repository at this point in the history
  4. Fix proper testing of context content

    If a STR is register to the context, a valid STR * will be always returned , so we need to test the content, not the pointer.
    
    (cherry picked from commit 968a8a8)
    bogdan-iancu committed Jun 17, 2016
    Configuration menu
    Copy the full SHA
    853998c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d00f1f3 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2016

  1. init: use the specified CFGFILE in debian init

    In case the CFGFILE changes in the init script, opensips will still start with
    the compiled file instead of the one configured
    
    (cherry picked from commit 030efef)
    razvancrainea committed Jun 23, 2016
    Configuration menu
    Copy the full SHA
    d4c45ab View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2016

  1. proto: always populate default values for protocols name and port

    This allows you to print the protocol you received, and its associated port
    
    (cherry picked from commit 0ae5ba2)
    razvancrainea committed Jun 24, 2016
    Configuration menu
    Copy the full SHA
    daf692a View commit details
    Browse the repository at this point in the history
  2. Allow proto modules to populate its name

    (cherry picked from commit 00d052c)
    razvancrainea committed Jun 24, 2016
    Configuration menu
    Copy the full SHA
    6e0e811 View commit details
    Browse the repository at this point in the history
  3. Fix script varibles for providing port and proto (as part of SIP URI).

    If the SIP URI does not have an explicit port or proto, determine the default port/proto in a SIP wise manner (rather than returning 5060 / UDP) (Ex: sip:example.com;transport=tls has default port 5061 and not 5060 ; or sips:example.com has default proto TLS and not UDP).
    
    Affected variables are $dp, $rp, $op and $dP, $rP, $oP
    
    (cherry picked from commit 6cc850e)
    bogdan-iancu committed Jun 24, 2016
    Configuration menu
    Copy the full SHA
    81da723 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2016

  1. Fix compiler warning

    Using gcc 4.8.4, we would get:
    
    net/trans.c:43:2: warning: missing initializer for field ‘name’ of
    ‘struct proto_info’ [-Wmissing-field-initializers]
      { }, /* PROTO_NONE */
        ^
    
    (cherry picked from commit 376579f)
    liviuchircu committed Jun 25, 2016
    Configuration menu
    Copy the full SHA
    055730a View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2016

  1. Fix dialplan module when using db_text backend.

    The db_text makes no difference between NULL or "empty string" values in DB -> both are internally translated as NULL . The dialplan module, in a very abusive way, forces "not null" (in DB schema and in the code for data validation) even for columns that are optional (like subst_exp, repl_exp, timerec and attrs). Besides being bogus (if a column is not to be used, you have to set it to empty string rather than let it NULL), it makes impossible the usage of db_text with dialplan.
    This fix allows (DB and code) the mentioned DB columns to be also NULL.
    The change is backward compatible, it should not break any existing usage of the dialplan module.
    
    (cherry picked from commit 8f54897)
    bogdan-iancu committed Jun 27, 2016
    Configuration menu
    Copy the full SHA
    618ff92 View commit details
    Browse the repository at this point in the history
  2. [siptrace][bugfix] fix bad macro in siptrace(trace local ip logic)

    This commit closes #916
    Thanks to @Tinet-AaronAn for reporting the issue
    
    (cherry picked from commit 2a4f686d4997b814eeaa425dc23fe822cb8ef91a)
    ionutrazvanionita committed Jun 27, 2016
    Configuration menu
    Copy the full SHA
    e56b290 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2016

  1. permissions: fix get_source_group() return

    In case a group is not found, return -1 instead of true
    razvancrainea committed Jul 4, 2016
    Configuration menu
    Copy the full SHA
    e7f8d1b View commit details
    Browse the repository at this point in the history
  2. acc: Fix incorrect Request-URI handling

    If the config script does not include any Request-URI altering logic
    (e.g. no lookup() or $ru manipulation), the acc module would incorrectly fill
    in a "msg->new_uri" field which should NOT be freed into the SIP request
    structure, leading to the memory pool being corrupted upon transaction release.
    
    Credits to Guillaume Lacroix for reporting
    
    (cherry picked from commit 02cb9f0)
    liviuchircu committed Jul 4, 2016
    Configuration menu
    Copy the full SHA
    63e25f5 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2016

  1. Fixed compiling on arm6 with fastlocks

    Partial revert of 058e16 as we need some extra asm code for fast locking on arm6.
    See #923
    Closes #912
    
    (cherry picked from commit a69c328)
    bogdan-iancu committed Jul 5, 2016
    Configuration menu
    Copy the full SHA
    d3e9b6a View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2016

  1. Fix error message when a route is not defined.

    Print the name of the route too - the ID is irrelevant for the script writter.
    
    (cherry picked from commit 4094818)
    bogdan-iancu committed Jul 7, 2016
    Configuration menu
    Copy the full SHA
    186c4c2 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2016

  1. dialog: advance to next cell in case of error

    (cherry picked from commit 70db2cf)
    razvancrainea committed Jul 8, 2016
    Configuration menu
    Copy the full SHA
    a48af8e View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2016

  1. [acc][bugfix] check if database loaded before using its handler

    (cherry picked from commit 8dd10d85b408947576223e75a67228ed7c7abd91)
    ionutrazvanionita committed Jul 11, 2016
    Configuration menu
    Copy the full SHA
    61e0ca2 View commit details
    Browse the repository at this point in the history
  2. Fix populating blacklists.

    When creating the blacklists, use the port and protocol of the destination too, otherwise the rules may conflict or be too wide to be used (like 2 destinations with same IP but different ports).
    
    (cherry picked from commit 0495faa)
    bogdan-iancu committed Jul 11, 2016
    Configuration menu
    Copy the full SHA
    f5a251a View commit details
    Browse the repository at this point in the history
  3. Fix populating blacklists.

    When creating the blacklists, use the port and protocol of the destination too, otherwise the rules may conflict or be too wide to be used (like 2 destinations with same IP but different ports).
    
    (cherry picked from commit 97f309c)
    bogdan-iancu committed Jul 11, 2016
    Configuration menu
    Copy the full SHA
    a51b18a View commit details
    Browse the repository at this point in the history
  4. Fix populating blacklists.

    When creating the blacklists, use the port and protocol of the destination too, otherwise the rules may conflict or be too wide to be used (like 2 destinations with same IP but different ports).
    
    (cherry picked from commit 7fa9cee)
    bogdan-iancu committed Jul 11, 2016
    Configuration menu
    Copy the full SHA
    6030e5f View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2016

  1. Fix advertised port and address per branch.

    Before the advertised_port/address are preserved only in the UAS part of the transaction - that means it is only one value and it is from the setting done in Request Route; whatever later setting done in Failure Route or Branch Route are not preserved at transaction level (even if they are used on the spot, for sending out the INVITE).
    So, when we have to build a local request (ACK or CANCEL), we do not remember which specific address/port were advertised for that particular UAC (branch).
    
    Fixes #917.
    
    (cherry picked from commit eb850a2)
    bogdan-iancu committed Jul 15, 2016
    Configuration menu
    Copy the full SHA
    49adcf5 View commit details
    Browse the repository at this point in the history
  2. Fix building Via Branch in stateless mode

    Instead of copying the branch value from a previous statefull Via header (which may lead to overflow as OpenSIPS has a maximum value for the built branch), we generate a new branch value based on the previous Via branch - in this way, we have full controll over the length of the resulting Branch and we also inherit the uniqueness of the branch value (from the prev Via hdr).
    
    Reported by Gupta, Rahul and Elliott, Ray
    
    (cherry picked from commit 482e643)
    bogdan-iancu committed Jul 15, 2016
    Configuration menu
    Copy the full SHA
    e0b237b View commit details
    Browse the repository at this point in the history
  3. rest_client: Fix incorrect trim operation

    (cherry picked from commit d8bf10d)
    liviuchircu committed Jul 15, 2016
    Configuration menu
    Copy the full SHA
    a8c997d View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2016

  1. permissions: allow any supported protocol

    Before this commit, the protocol check was hardcoded in the module. This
    commit allows to add in the permissions table any transport protocol
    supported.
    
    Thanks go to Kirill Galinurov for reporting this!
    
    (cherry picked from commit 0eecff9)
    razvancrainea committed Jul 18, 2016
    Configuration menu
    Copy the full SHA
    9c5fe8d View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2016

  1. Update version to 2.1.4

    razvancrainea committed Jul 20, 2016
    Configuration menu
    Copy the full SHA
    171a78c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    121e8bf View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2016

  1. Fix db_url setting - do not make it mandatory if no db is used

    (cherry picked from commit 17beb2d)
    bogdan-iancu committed Jul 22, 2016
    Configuration menu
    Copy the full SHA
    00e8109 View commit details
    Browse the repository at this point in the history
  2. Fixed memory leak on modules/drouting/drouting.c

    This leak occures in function get_group_id() when do_routing is called without parameters in opensips.cfg.
    In this case the dr_default_grp variable is not equal -1 and 'return dr_default_grp' is executed without freeing the res variable previously allocated for query execution.
    
    (cherry picked from commit 6573994)
    Ozzyboshi authored and bogdan-iancu committed Jul 22, 2016
    Configuration menu
    Copy the full SHA
    a6c67bb View commit details
    Browse the repository at this point in the history
  3. Remove unnecessary test.

    "res" cannot be null at that point
    
    (cherry picked from commit 0b60681)
    bogdan-iancu committed Jul 22, 2016
    Configuration menu
    Copy the full SHA
    0e1fcf9 View commit details
    Browse the repository at this point in the history