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

Catchup to upstream #1

Merged
merged 1,834 commits into from
Jan 28, 2019
Merged

Catchup to upstream #1

merged 1,834 commits into from
Jan 28, 2019

Conversation

rrb3942
Copy link
Owner

@rrb3942 rrb3942 commented Jan 28, 2019

No description provided.

bogdan-iancu and others added 30 commits October 26, 2018 11:46
Reported by Nick Altmann
Before this commit, the TCP request was not released for ping-ping
constructed using multiple packets. This lead to an unknown state in the
TCP parser, hence an abort() was triggered.
The HP allocator seems to init its stats after the statistics collector starts, so any malloc operatation translates into a crash (before init'ing the stats colector).
Move the first shm malloc after the the collector init.

Reported by Nick Altmann

(cherry picked from commit 5fa431e)
     1: success
    -1: connection refused
    -2: connection timeout (i.e. 'connection_timeout' was hit)
    -3: transfer timeout (i.e. 'curl_timeout' was hit)
    -10: internal error (i.e. "I hope OpenSIPS is still running")

This patch also includes additional fixes related to error handling:
    * fix undetected error conditions on "async-but-blocking" transfers
       (these transfers happen once you hit 'max_async_transfers')

    * fix a bunch of code paths where the rest_() functions return
       success despite not being able to set one or more output pvars

    * never abort(), regardless of what libcurl says
After refactoring the code to enable clustering in 2.4, some of the DB queries for updating / deleting the presentity records were missing the etag condition. As a result you may have experienced records leaking in DB or strange errors about unique key violation.
Many thanks for helping with the troubleshooting to Dan Pascu @ AG Projects and to Ognjen Šešlija.

Closes #1422
Closes #1378
It is fine for 200 OK registration replies to occasionally include
extraneous contacts which did not register through the mid-registrar
(i.e. they are missing the ";ctid=" Contact URI parameter).

Reported by Jeff Pyle
Fixes #1516
Use this transformation to delete a stream based on its index or its
media type
Similar idea to commit 2254d00.

Related to #1518.
Set the table to be used again before the delete (even if already set before the select), as other called functions like publ_notify() may change the table.
Reported by Dan Pascu.

(cherry picked from commit e3dca71)
victor-ciurel and others added 28 commits January 23, 2019 13:40
…nd and enquire_link tweaks, temporary debug code, unify bind*, and submit/deliver
Better do a generic memset rather than relying on per-field init.
For script, using the callid, you can load the context of that call (and later unload it). By loading the ctx, you can access dlg vals, profiles, acc related to that dialog.
Docs are still missing :P
@rrb3942 rrb3942 merged commit 0c430cc into rrb3942:master Jan 28, 2019
rrb3942 pushed a commit that referenced this pull request Jan 28, 2019
Due to the fact that run_rr_callbacks() returns the 2nd Route (Path)
header field value when previously having done protocol switching (thus
having inserted two Path headers), the "use_path_received" feature of
the path module would not work -- it wouldn't set the $du at all.

The reason for this is that add_path_received() appends its ";received="
to inside Path #1 (the outbound path of the registration / the inbound
path of future requests) when doing double-Path recording.

This patch simply moves the ";received=" append operation performed by
add_path_received() into Path OpenSIPS#2 (inbound path of registration /
outbound path of future requests), and adapts other code that needs it
(e.g. save("location", "p1v")) to properly be able to fetch it.

Reported by @futsystems

Fixes OpenSIPS#1358
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.