plugin_siptrunk
This commit is contained in:
parent
c372080f4c
commit
d5697e4d0d
@ -337,6 +337,7 @@ load_plugin=plugin_logcall.la
|
||||
#load_plugin=plugin_regex.la
|
||||
#load_plugin=plugin_stripheader.la
|
||||
#load_plugin=plugin_codecfilter.la
|
||||
#load_plugin=plugin_siptrunk.la
|
||||
|
||||
|
||||
######################################################################
|
||||
@ -465,3 +466,27 @@ plugin_codecfilter_blacklist = G722
|
||||
plugin_codecfilter_blacklist = G726
|
||||
plugin_codecfilter_blacklist = G729
|
||||
plugin_codecfilter_blacklist = GSM
|
||||
|
||||
######################################################################
|
||||
# Plugin_siptrunk
|
||||
#
|
||||
# Plugin to handle SIP Trunks where using *one* single SIP account a
|
||||
# whole number block is routed. This means asn incoming INVITE does carry
|
||||
# the target number (in SIP URI or To: header field) but does not really
|
||||
# carry any clear indications to which account it belongs to.
|
||||
# Thus, we need some help - a mapping of the number blocks used in a SIP
|
||||
# trunk and the corresponding SIP account (as used during REGISTER)
|
||||
#
|
||||
# ..._name: any name, pure documentation
|
||||
# ..._account: SIP account in the form of 'sip:user@host',
|
||||
# identical as used for registration.
|
||||
# ..._numbers_regex: REGEX that matches the whole number block associated
|
||||
# with this account
|
||||
#
|
||||
# NOTE: plugin_siptrunk is mutually exclusive with plugin_defaulttarget!
|
||||
# if the defaulttartet 'plugin is also active, then all incoming calls
|
||||
# on SIP trunks will be redirected to the default target.
|
||||
#
|
||||
#plugin_siptrunk_name = Example Trunk, 555-123100 ... 555-123112
|
||||
#plugin_siptrunk_account = sip:user@sip.example.org
|
||||
#plugin_siptrunk_numbers_regex = ^555123(10[0-9]|11[012])$
|
||||
|
||||
@ -217,8 +217,6 @@ static int plugin_siptrunk_process(sip_ticket_t *ticket) {
|
||||
if ((ticket->direction == DIRTYP_UNKNOWN)
|
||||
&& MSG_IS_REQUEST(ticket->sipmsg)) {
|
||||
DEBUGC(DBCLASS_PLUGIN, "plugin_siptrunk: processing REQ w/ DIRTYP_UNKNOWN");
|
||||
DEBUGC(DBCLASS_PLUGIN, "&&&1: req_uri [%s]", ticket->sipmsg->req_uri->username);
|
||||
DEBUGC(DBCLASS_PLUGIN, "&&&1: to_url [%s]", ticket->sipmsg->to->url->username);
|
||||
|
||||
/* get REQ URI & To URI from headers */
|
||||
req_url=osip_message_get_uri(ticket->sipmsg);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user