"ACTION_STATEMENT":"BEGIN\n\n DECLARE new_set_id int(11) unsigned;\n\n IF NEW.enabled = 1 THEN\n\n IF NEW.direction = 'in' THEN\n SELECT IF(NEW.field = 'caller', caller_in_dpid, callee_in_dpid)\n INTO new_set_id FROM voip_rewrite_rule_sets WHERE id <=> NEW.set_id;\n ELSEIF NEW.direction = 'out' THEN\n SELECT IF(NEW.field = 'caller', caller_out_dpid, callee_out_dpid)\n INTO new_set_id FROM voip_rewrite_rule_sets WHERE id <=> NEW.set_id;\n ELSEIF NEW.direction = 'lnp' THEN\n SELECT IF(NEW.field = 'caller', caller_lnp_dpid, callee_lnp_dpid)\n INTO new_set_id FROM voip_rewrite_rule_sets WHERE id <=> NEW.set_id;\n END IF;\n\n INSERT INTO kamailio.dialplan (dpid,pr,match_op,match_exp,match_len,subst_exp,repl_exp,attrs)\n VALUES(new_set_id,NEW.priority,1,NEW.match_pattern,0,NEW.match_pattern,NEW.replace_pattern,'');\n END IF;\n\nEND",
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
@ -3486,8 +3486,8 @@ INSERT INTO `voip_preferences` VALUES (34,6,'peer_auth_pass','Peer Authenticatio
INSERTINTO`voip_preferences`VALUES(35,3,'unauth_inbound_calls','Allow inbound calls from foreign subscribers',1,1,0,1,1,0,0,0,0,0,0,NOW(),0,0,'boolean',0,'Allow unauthenticated inbound calls from FOREIGN domain to users within this domain. Use with care - it allows to flood your users with voice spam.',0,0,0);
INSERTINTO`voip_preferences`VALUES(36,6,'peer_auth_realm','Peer Authentication Domain',0,1,1,0,0,1,0,0,0,0,0,NOW(),0,0,'string',0,'A realm (hostname) used to identify and for authentication against a peer host.',0,0,0);
INSERTINTO`voip_preferences`VALUES(40,6,'peer_auth_register','Enable Peer Authentication',1,1,1,1,1,1,0,0,0,0,0,NOW(),0,0,'boolean',0,'Specifies whether registration at the peer host is desired.',0,0,0);
INSERTINTO`voip_preferences`VALUES(41,3,'concurrent_max','Maximum number of concurrent calls',1,1,1,1,1,1,1,1,0,0,0,NOW(),0,0,'int',0,'Maximum number of overall (incoming and outgoing) concurrent on-net and off-net calls for a subscriber or peer, excluding calls from subscriber to the application server and intra-PBX calls.',0,0,0);
INSERTINTO`voip_preferences`VALUES(42,3,'concurrent_max_out','Maximum number of outbound concurrent calls',1,1,1,1,1,1,1,1,0,0,0,NOW(),0,0,'int',0,'Maximum number of outgoing concurrent on-net and off-net calls coming from a subscriber or going to a peer, excluding calls from subscriber to the application server and intra-PBX calls.',0,0,0);
INSERTINTO`voip_preferences`VALUES(41,3,'concurrent_max','Maximum number of concurrent calls',1,1,1,1,1,1,1,1,0,0,0,NOW(),0,0,'int',0,'Maximum number of overall (incoming and outgoing) concurrent on-net and off-net calls for a subscriber or peer, excluding calls from subscriber to the application server and intra-PBX calls.',0,1,0);
INSERTINTO`voip_preferences`VALUES(42,3,'concurrent_max_out','Maximum number of outbound concurrent calls',1,1,1,1,1,1,1,1,0,0,0,NOW(),0,0,'int',0,'Maximum number of outgoing concurrent on-net and off-net calls coming from a subscriber or going to a peer, excluding calls from subscriber to the application server and intra-PBX calls.',0,1,0);
INSERTINTO`voip_preferences`VALUES(43,3,'allowed_clis','Allowed CLIs for outbound calls',0,0,1,0,0,0,1,0,0,0,0,NOW(),0,0,'string',0,'A list of shell patterns specifying which CLIs are allowed to be set by the subscriber. \"*\", \"?\" and \"[x-y]\" with \"x\" and \"y\" representing numbers from 0 to 9 may be used as wildcards as usual in shell patterns.',0,0,0);
@ -3557,8 +3557,8 @@ INSERT INTO `voip_preferences` VALUES (115,8,'auto_attendant','Auto Attendant',1
INSERTINTO`voip_preferences`VALUES(116,8,'voice_mail','Voice Mail',1,1,1,0,0,0,0,0,0,0,0,NOW(),1,1,'boolean',0,'\"Voice Mail\" - An internal flag for the voice_mail pseudo-preference feature to be able to map it do subscriber profiles. Not directly used.',0,0,1);
INSERTINTO`voip_preferences`VALUES(117,8,'fax_server','Fax Server',1,1,1,0,0,0,0,0,0,0,0,NOW(),1,1,'boolean',0,'\"Fax Server\" - An internal flag for the fax_server pseudo-preference feature to be able to map it do subscriber profiles. Not directly used.',0,0,1);
INSERTINTO`voip_preferences`VALUES(119,4,'emergency_location_object','MIME encapsulated Location Information in the INVITE',2,1,1,0,0,0,0,0,0,0,0,NOW(),0,0,'blob',0,'SDP MIME object related to location to be added on an emergency call',0,0,0);
INSERTINTO`voip_preferences`VALUES(120,3,'concurrent_max_total','Total max number of overall concurrent calls',1,1,1,1,1,0,1,1,0,0,0,NOW(),0,0,'int',0,'Maximum total number of overall (incoming and outgoing) concurrent calls for subscribers.',0,0,0);
INSERTINTO`voip_preferences`VALUES(121,3,'concurrent_max_out_total','Total max number of outbound concurrent calls',1,1,1,1,1,0,1,1,0,0,0,NOW(),0,0,'int',0,'Maximum total number of outgoing concurrent calls coming from subscribers.',0,0,0);
INSERTINTO`voip_preferences`VALUES(120,3,'concurrent_max_total','Total max number of overall concurrent calls',1,1,1,1,1,0,1,1,0,0,0,NOW(),0,0,'int',0,'Maximum total number of overall (incoming and outgoing) concurrent calls for subscribers.',0,1,0);
INSERTINTO`voip_preferences`VALUES(121,3,'concurrent_max_out_total','Total max number of outbound concurrent calls',1,1,1,1,1,0,1,1,0,0,0,NOW(),0,0,'int',0,'Maximum total number of outgoing concurrent calls coming from subscribers.',0,1,0);
INSERTINTO`voip_preferences`VALUES(122,4,'voicemail_echo_number','Number to be played in voicebox',1,1,1,0,0,0,0,0,0,0,0,NOW(),0,0,'string',0,'If set, will be played as Number of the voicebox owner. Otherwise the number of the preference \"cli\" is used.',0,0,0);
INSERTINTO`voip_preferences`VALUES(123,5,'lbrtp_set','The cluster set used for SIP lb and RTP',0,1,0,1,1,1,0,0,0,0,0,NOW(),0,0,'enum',0,'Use a particular cluster set of load-balancers for SIP towards this endpoint (only for peers, as for subscribers it is defined by Path during registration) and of RTP relays (both peers and subscribers).',0,0,0);
INSERTINTO`voip_preferences`VALUES(124,3,'allowed_clis_reject_policy','User-Provided CLI rejection mode',0,1,1,1,1,0,1,0,0,0,0,NOW(),0,0,'enum',0,'Define an action to be executed if User-Provided Number doesn\'tmatchthe\'allowed_clis\'list',0,0,0);
@ -3737,9 +3737,9 @@ INSERT INTO `voip_preferences` VALUES (320,12,'play_announce_to_callee','Play an
INSERTINTO`voip_preferences`VALUES(321,4,'colp_cf','Show Call Forward Destination to Caller',0,1,1,1,1,0,0,0,0,0,0,NOW(),0,1,'boolean',0,'When forwarding a call, send the destination number or user back to the calling party.',0,0,0);
INSERTINTO`voip_preferences`VALUES(322,17,'transcode_dtmf','Transcode to RFC DTMF events',0,1,1,1,1,1,0,0,0,0,0,NOW(),0,0,'boolean',0,'Translate inband PCM DTMF tones to RFC DTMF events.',0,0,0);
INSERTINTO`voip_preferences`VALUES(323,1,'cfo','Internal Call Forward Overflow #',1,0,1,0,0,0,0,0,0,0,0,NOW(),1,0,'int',1,'The id pointing to the \"Call Forward Overflow\" entry in the voip_cf_mappings table',0,0,0);
INSERTINTO`voip_preferences`VALUES(324,3,'concurrent_max_in_total','Total max number of inbound concurrent calls',1,1,1,1,1,0,1,1,0,0,0,NOW(),0,0,'int',0,'Maximum total number of incoming concurrent calls going to subscribers.',0,0,0);
INSERTINTO`voip_preferences`VALUES(324,3,'concurrent_max_in_total','Total max number of inbound concurrent calls',1,1,1,1,1,0,1,1,0,0,0,NOW(),0,0,'int',0,'Maximum total number of incoming concurrent calls going to subscribers.',0,1,0);
INSERTINTO`voip_preferences`VALUES(325,3,'concurrent_max_in_per_account','Maximum number of inbound concurrent calls for Customer',1,1,1,1,1,0,0,0,0,0,0,NOW(),0,0,'int',0,'Maximum number of incoming concurrent on-net and off-net calls to subscribers within the same Customer account, excluding calls from the application server and intra-PBX calls.',0,0,0);
INSERTINTO`voip_preferences`VALUES(326,3,'concurrent_max_in','Maximum number of inbound concurrent calls',1,1,1,1,1,1,1,1,0,0,0,NOW(),0,0,'int',0,'Maximum number of incoming concurrent on-net and off-net calls going to a subscriber or coming from a peer, excluding subscriber\'sintra-PBXcalls.',0,0,0);
INSERTINTO`voip_preferences`VALUES(326,3,'concurrent_max_in','Maximum number of inbound concurrent calls',1,1,1,1,1,1,1,1,0,0,0,NOW(),0,0,'int',0,'Maximum number of incoming concurrent on-net and off-net calls going to a subscriber or coming from a peer, excluding subscriber\'sintra-PBXcalls.',0,1,0);
INSERTINTO`voip_preferences`VALUES(327,8,'last_number_redial','Enable last number redial VSC',1,1,1,1,1,0,0,0,0,0,0,NOW(),0,0,'boolean',0,'Enable the Vertical Service Code to redial latest dialed number for this subscriber/domain.',0,0,0);
INSERTINTO`voip_preferences`VALUES(328,17,'convert_dtmf_info','Convert DTMF INFO to RFC DTMF events',1,1,1,1,1,0,0,0,0,0,0,NOW(),0,0,'boolean',0,'Convert SIP INFO messages containing application/dtmf-relay or application/dtmf payloads to RFC DTMF events. ATTENTION: for internal use only, external generated INFO messages will be not converted but passed through.',0,0,0);
INSERTINTO`voip_preferences`VALUES(329,8,'contact_ringtimeout','Ring Timeout of each single contact',1,1,1,1,1,0,0,0,0,0,0,NOW(),0,1,'int',0,'Specifies how many seconds each single contact should ring before the calls goes to the next one. It is considered only in case of forking based on Q value.',0,0,0);
@ -3809,6 +3809,7 @@ INSERT INTO `voip_preferences` VALUES (393,8,'csc_conversations','CSC Conversati
INSERTINTO`voip_preferences`VALUES(394,8,'csc_device_provisioning','CSC Device Provisioning',1,1,1,0,0,0,0,0,0,0,0,NOW(),1,1,'boolean',0,'\'CSCDeviceProvisioning\' - An internal flag to be able to map Device Provisioning visibility to subscriber profiles. Not directly used',0,0,1);
INSERTINTO`voip_preferences`VALUES(395,8,'csc_hunt_groups','CSC Hunt Groups',1,1,1,0,0,0,0,0,0,0,0,NOW(),1,1,'boolean',0,'\'CSCHuntGroups\' - An internal flag to be able to map Hunt Groups visibility to subscriber profiles. Not directly used',0,0,1);
INSERTINTO`voip_preferences`VALUES(396,6,'peer_auth_registrar_server','Specific value for the registrar server',0,1,0,0,0,1,0,0,0,0,0,NOW(),0,0,'string',0,'Registrar server value is used as a registration R-URI as well as From/To domain in the outbound REGISTER.',0,0,0);