Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: shimaore/ccnq3-opensips-ga
base: 134be85a40
...
head fork: shimaore/ccnq3-opensips-ga
compare: 03f436c891
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
View
4 applications/opensips/zappa/main.coffee
@@ -246,9 +246,9 @@ require('ccnq3').config (config)->
@get '/version/': ->
if @query.k is 'table_name' and @query.c is 'table_version'
- # Versions for OpenSIPS 1.8.1
+ # Versions for OpenSIPS 1.8.2
versions =
- location: 1009
+ location: 1007
subscriber: 7
dr_gateways: 5
dr_rules: 3
View
10 common/opensips/fragments/authenticate.cfg
@@ -37,11 +37,17 @@ route[authenticate] {
# This type of SBC must provide us with a Sock-Info header,
# similar to one we would get by doing a add_sock_hdr("Sock-Info") ,
# or with a RURI parameter "source" that contains the IP address of the actual originator.
+ $var(host_info) = null;
+
xlog("L_DBG","-- route(authenticate): Forwarding SBC $si, trying header Sock-Info = $(hdr(Sock-Info))");
$var(host_info) = $(hdr(Sock-Info){uri.host});
- if(!$var(host_info)) {
+ xlog("L_DBG","-- route(authenticate): Forwarding SBC $si, host_info = $var(host_info)\n");
+ if($var(host_info) == null) {
xlog("L_DBG","-- route(authenticate): Forwarding SBC $si, trying URI param source = $(ru{uri.param,source})");
- $avp(host_info) = $(ru{uri.param,source}); # See client-ocs-sbc.
+ $var(host_info) = $(ru{uri.param,source}); # See client-ocs-sbc.
+ }
+ if($var(host_info) == null) {
+ t_reply("503", "Missing source information");
}
# Replace the src_endpoint data with the data for the source specified by host_info.

No commit comments for this range

Something went wrong with that request. Please try again.