Permalink
Browse files

Moved out opensips content to the new `ccnq3-opensips-latest` package.

  • Loading branch information...
1 parent f6be2fe commit 31f6bf3fd7e71e8a741c824f4ce12f593cc556c3 @shimaore committed Feb 17, 2014
Showing with 4 additions and 3,447 deletions.
  1. +0 −113 common/opensips/compiler.coffee
  2. +0 −53 common/opensips/complete.json
  3. +0 −51 common/opensips/conference.json
  4. +0 −86 common/opensips/default.json
  5. +0 −52 common/opensips/emergency.json
  6. +0 −13 common/opensips/fragments/authenticate-disabled.cfg
  7. +0 −181 common/opensips/fragments/authenticate.cfg
  8. +0 −24 common/opensips/fragments/authenticate.modules
  9. +0 −5 common/opensips/fragments/avpops_db.modules
  10. +0 −5 common/opensips/fragments/db_http.modules
  11. +0 −181 common/opensips/fragments/forwarder.cfg
  12. +0 −65 common/opensips/fragments/generic.cfg
  13. +0 −80 common/opensips/fragments/generic.modules
  14. +0 −55 common/opensips/fragments/generic.variables
  15. +0 −22 common/opensips/fragments/invite-emergency.cfg
  16. +0 −170 common/opensips/fragments/invite-outbound-proxy.cfg
  17. +0 −47 common/opensips/fragments/invite-registrar.cfg
  18. +0 −22 common/opensips/fragments/invite-router-local.cfg
  19. +0 −227 common/opensips/fragments/invite-router.cfg
  20. +0 −118 common/opensips/fragments/invite-trunk-drouting.cfg
  21. +0 −23 common/opensips/fragments/invite-trunk-drouting.modules
  22. +0 −175 common/opensips/fragments/invite.cfg
  23. +0 −36 common/opensips/fragments/invite.modules
  24. +0 −11 common/opensips/fragments/loose-route-disabled.cfg
  25. +0 −87 common/opensips/fragments/loose-route.cfg
  26. +0 −127 common/opensips/fragments/mediaproxy.cfg
  27. +0 −7 common/opensips/fragments/mediaproxy.modules
  28. +0 −137 common/opensips/fragments/nat.cfg
  29. +0 −14 common/opensips/fragments/nat.modules
  30. +0 −173 common/opensips/fragments/non-loose-route.cfg
  31. +0 −6 common/opensips/fragments/non-loose-route.modules
  32. +0 −18 common/opensips/fragments/nonat.cfg
  33. +0 −123 common/opensips/fragments/register-colocated.cfg
  34. +0 −18 common/opensips/fragments/register-colocated.modules
  35. +0 −19 common/opensips/fragments/register-ignore.cfg
  36. +0 −12 common/opensips/fragments/register-none.cfg
  37. +0 −49 common/opensips/fragments/register-registrar.cfg
  38. +0 −20 common/opensips/fragments/register-registrar.modules
  39. +0 −50 common/opensips/fragments/register-router.cfg
  40. +0 −88 common/opensips/fragments/registrant.cfg
  41. +0 −16 common/opensips/fragments/registrant.modules
  42. +0 −331 common/opensips/fragments/routing-lineside.cfg
  43. +0 −28 common/opensips/fragments/routing-trunkside-transparent.cfg
  44. +0 −26 common/opensips/fragments/toolbox.cfg
  45. +0 −11 common/opensips/fragments/usrloc_db.modules
  46. +0 −8 common/opensips/local-vars.json.example
  47. +0 −10 common/opensips/make-doc.sh
  48. +0 −26 common/opensips/make.coffee
  49. +0 −54 common/opensips/outbound-proxy.json
  50. +0 −58 common/opensips/registrant.json
  51. +0 −2 debian/ccnq3-munin-opensips.install
  52. +0 −34 debian/ccnq3-opensips.init
  53. +0 −2 debian/ccnq3-opensips.install
  54. +0 −52 debian/ccnq3-opensips.postinst
  55. +4 −25 debian/control
  56. +0 −1 debian/rules
@@ -1,113 +0,0 @@
-#!/usr/bin/env coffee
-# compiler.coffee -- merge OpenSIPS configuration fragments
-
-fs = require 'fs'
-path = require 'path'
-
-macros_cfg = (t,params) ->
-
- # Evaluate parameters after macro substitution
- t = t.replace /// \b define \s+ (\w+) \b ///g, (str,$1) ->
- params[$1] = 1
- return ''
- t = t.replace /// \b undef \s+ (\w+) \b ///g, (str,$1) ->
- params[$1] = 0
- return ''
-
- # Since we don't use a real (LR) parser, these are sorted by match order.
- conditionals = ->
- t = t.replace ///
- \b if \s+ not \s+ (\w+) \b
- ([\s\S]*?)
- \b end \s+ if \s+ not \s+ \1 \b
- ///g, (str,$1,$2) -> if not params[$1] then $2 else ''
- t = t.replace ///
- \b if \s+ (\w+) \s+ is \s+ not \s+ (\w+) \b
- ([\s\S]*?)
- \b end \s+ if \s+ \1 \s+ is \s+ not \s+ \2 \b
- ///g, (str,$1,$2,$3) -> if params[$1] isnt $2 then $3 else ''
- t = t.replace ///
- \b if \s+ (\w+) \s+ is \s+ (\w+) \b
- ([\s\S]*?)
- \b end \s+ if \s+ \1 \s+ is \s+ \2 \b
- ///g, (str,$1,$2,$3) -> if params[$1] is $2 then $3 else ''
- t = t.replace ///
- \b if \s+ (\w+) \b
- ([\s\S]*?)
- \b end \s+ if \s+ \1 \b
- ///g, (str,$1,$2) -> if params[$1] then $2 else ''
-
- do conditionals
- do conditionals
-
- # Substitute parameters
- t = t.replace /// \$ \{ (\w+) \} ///g, (str,$1) ->
- if params[$1]?
- return params[$1]
- else
- console.log "Undefined #{$1}"
- return str
-
- return t
-
-do test = ->
- verify = (t,m,p) ->
- (require 'assert').strictEqual t, macros_cfg m, p
- verify 'var is 3', 'var is ${var}', var:3
- verify 'var is this', 'var is ${var}', var:'this'
- verify ' yes ', 'if it yes end if it', it:1
- verify ' yes ', 'if not it yes end if not it', it:0
- verify '', 'if it is 0 yes end if it is 0', it:1
- verify ' yes ', 'if it is bob yes end if it is bob', it:'bob'
- # verify ' yes ', 'if it is 0 yes end if it is 0', it:0 # fails: strings vs number
- verify ' yes ', 'if it is not bob yes end if it is not bob', it:'bar'
-
-### compile_cfg
-
- Build OpenSIPS configuration from fragments.
-
-###
-
-compile_cfg = (base_dir,params) ->
-
- recipe = params.recipe
-
- result =
- """
- #
- # Automatically generated configuration file.
- # #{params.comment}
- #
-
- """
-
- for extension in ['variables','modules','cfg']
- for building_block in recipe
- file = path.join base_dir, 'fragments', "#{building_block}.#{extension}"
- try
- fragment = "\n## --- Start #{file} --- ##\n\n"
- fragment += fs.readFileSync file
- fragment += "\n## --- End #{file} --- ##\n\n"
- result += fragment
- return macros_cfg result, params
-
-###
-
- configure_opensips
- Subtitute configuration variables in a complete OpenSIPS configuration file
- (such as one generated by compile_cfg).
-
-###
-
-configure_opensips = (params) ->
-
- # Handle special parameters specially
- escape_listen = (_) -> "listen=#{_}\n"
-
- params.listen = params.listen.map(escape_listen).join '' if params.listen?
-
- cfg_text = compile_cfg params.opensips_base_lib, params
-
- fs.writeFileSync params.runtime_opensips_cfg, cfg_text
-
-module.exports = configure_opensips
@@ -1,53 +0,0 @@
-{
- "comment":"Model for a complete proxy that does it all (almost).",
-
- "recipe":[
- "generic",
- "db_http",
- "domain_db",
- "usrloc_db",
- "avpops_db",
- "toolbox",
- "authenticate",
- "nat",
- "mediaproxy",
- "invite-router",
- "invite",
- "invite-trunk-drouting",
- "loose-route",
- "non-loose-route",
- "routing-lineside",
- "routing-trunkside-transparent",
- "register-colocated",
- "forwarder"
- ],
-
- "opensips_base_lib": ".",
- "model": "complete",
- "runtime_opensips_cfg": "/etc/opensips/opensips.cfg",
-
- "db_url": "http://127.0.0.1:34340/",
-
- "proxy_ip": "",
- "proxy_port": 5060,
- "internal_ip": "",
- "external_ip": "",
-
- "authentication": "database",
- "skip_uac_auth": 1,
- "mp_allowed": 1,
- "mp_always": 0,
- "debug": 0,
-
- "radius_config": "",
- "inv_timeout": 90,
- "dialog_timeout": 28800,
-
- "challenge": "",
-
- "sort_order": 1,
-
- "lineside_extra_info": "$pr $si $sp -> $Ri $Rp $json(src_endpoint/endpoint) $au $ad $ar $ci $ru $fu $tu $ua",
-
- "ok":true
-}
@@ -1,51 +0,0 @@
-{
- "comment":"Open proxy with media relay (SBC)",
-
- "recipe":[
- "generic",
- "domain_db",
- "db_http",
- "toolbox",
- "authenticate-disabled",
- "nat",
- "mediaproxy",
- "register-ignore",
- "invite",
- "invite-router-local",
- "loose-route",
- "non-loose-route",
- "forwarder"
- ],
-
- "opensips_base_lib": ".",
- "model": "conference",
- "runtime_opensips_cfg": "/etc/opensips/opensips.cfg",
-
- "db_url": "http://127.0.0.1:34340/",
-
- "ignore_dest_domain": 1,
- "ignore_account": 1,
- "ignore_location": 1,
- "ignore_routing_data": 1,
- "skip_lineside": 1,
-
- "proxy_ip": "",
- "proxy_port": 5060,
- "internal_ip": "",
- "external_ip": "",
-
- "local_port": 5064,
-
- "authentication": "",
- "skip_uac_auth": 1,
- "mp_allowed": 1,
- "mp_always": 1,
- "debug": 0,
-
- "inv_timeout": 90,
- "dialog_timeout": 28800,
-
- "sort_order": 1,
-
- "ok":true
-}
@@ -1,86 +0,0 @@
-{
- "comment default": "Lists default values (not specific to a profile). There's no reason to modify these.",
-
- "mpath": "/usr/lib/opensips/modules/",
- "uac_vsf": "vsf",
- "max_hops": "10",
- "children": 30,
- "fork": "yes",
- "log_stderror": "no",
-
- "comment bflag": "Branch flags",
- "bflag_request_mp_callee": 6,
- "bflag_cfb_used": 9,
- "bflag_cfda_used": 10,
- "bflag_auth_attempted": 11,
- "bflag_in_progress": 18,
-
- "comment flag": "Transaction flags",
- "flag_request_mp_callee": 6,
- "flag_request_mp_caller": 7,
- "flag_failed_transaction": 12,
- "flag_dest_domain_set": 16,
- "flag_sock": 18,
- "flag_register_authenticated": 20,
- "flag_tcp_persistent": 21,
- "flag_trunk_routing": 22,
- "flag_has_forwarding": 23,
-
- "comment dflag": "Dialog flags",
- "dflag_cleanup_headers": 1,
-
- "sbc_own_originator": 1,
- "sbc_own_outbound": 2,
- "sbc_csr_outbound": 10,
-
- "sbc_own_upstream": 1,
-
- "comment dflag": "Dialog flags",
- "dflag_mediaproxy": 8,
- "dflag_mediaproxy_engaged": 9,
-
- "auth_table": "subscriber",
- "usrloc_table": "location",
-
- "usrloc_flags": "f",
-
- "fifo_path": "/tmp/opensips_fifo",
- "mi_port": 30000,
-
- "cache_cleanup": 30,
- "cache_timeout": 45,
-
- "voicemail_notifier": "",
-
- "default_expires": 3600,
- "min_expires": 300,
- "max_expires": 7200,
-
- "rate_limit_interval": 10,
- "rate_limit_invite": 50,
- "rate_limit_latency": 60,
- "rate_limit": false,
-
- "dlg_match_mode": 1,
- "fix_invalid_dialogs": false,
- "ignore_broken_register": false,
- "register_check_ip": true,
- "notify": null,
-
- "ignore_static_endpoints": false,
-
- "use_domain_outbound_route": false,
- "use_endpoint_outbound_route": true,
- "use_default_outbound_route": false,
-
- "options_200": false,
-
- "short_fr_timer": 2,
- "long_fr_timer": 4,
-
- "max_contacts": 0,
-
- "sip_warning": 1,
-
- "ok":true
-}
@@ -1,52 +0,0 @@
-{
- "comment":"Model for an emergency server.",
-
- "recipe":[
- "generic",
- "toolbox",
- "avpops_db",
- "domain_db",
- "db_http",
- "nonat",
- "authenticate",
- "invite-emergency",
- "non-loose-route",
- "loose-route-disabled",
- "register-none"
- ],
-
- "opensips_base_lib": ".",
- "model": "complete",
- "runtime_opensips_cfg": "/tmp/emergency.cfg",
-
- "db_url": "http://127.0.0.1:34340/",
-
- "proxy_ip": "",
- "proxy_port": 5060,
- "internal_ip": "",
- "external_ip": "",
-
- "authentication": "database",
- "skip_uac_auth": 1,
- "mp_allowed": 1,
- "mp_always": 0,
- "debug": 0,
-
- "inv_timeout": 90,
- "dialog_timeout": 28800,
-
- "challenge": "",
-
- "sort_order": 1,
-
- "proxy_port": 5072,
- "fifo_path": "/tmp/emergency_server_fifo",
- "mi_port": 30012,
-
- "sip_domain_name": "bypassed",
- "skip_domain_check": 1,
-
- "children": 20,
-
- "ok":true
-}
@@ -1,13 +0,0 @@
-# Name: authenticate-disabled
-# Group: authenticate
-# Description: replacement module for `authenticate` when no authorization/authentication is desired.
-
-route[authenticate] {
- xlog("L_DBG","-- authenticate -- disabled\n");
-}
-route[authenticate_check] {
- xlog("L_DBG","-- authenticate_check -- disabled\n");
-}
-route[authenticate_register] {
- xlog("L_DBG","-- authenticate_register -- disabled\n");
-}
Oops, something went wrong.

0 comments on commit 31f6bf3

Please sign in to comment.