This article mainly introduces the PHP implementation of mobile phone number middle four with an asterisk (*) hidden custom function sharing, which is a more commonly used features, the need for friends can refer to the followingPHP shielded phone number middle four bits:Method 1:function Hidtel ($phone) {$IsWhat = Preg_match ('/(0[0-9]{2,3}[\-]?[ 2-9][0-9]{6,7}[\-]? [0-9]?) /I ', $phone); Fixed telephoneif ($IsWhat = = 1) {return Preg_replace ('/(0[0
replaced Negative-the number of characters to be replaced starting at the end of the string 0-Insert rather than replace
1, when start and charlist are positive, very good understanding, also very symbolic of human logic, start is starting from 0, such as, according to the conditions, the green will be replaced by the element
2, when start is negative, charlist is positive, also very good understanding
3, when start is a positive number, charlist is negative, this I start to understa
Is the call flowchart of Asterisk:
We use the call process of SIP as an example to describe the call process of other channels.
The call process (incoming) is as follows:
Do_monitor-> sipsock_read-> handle_request-> handle_request_invite-> sip_new/ast_pbx_start-> pbx_thread->__ ast_pbx_run
-> Ast_spawn_extension-> pbx_extension_helper-> pbx_exec-> execute dialplan
When the chan_sip module is loaded, an independent listening thread do_monitor is starte
IptablesAndAsterisk:
Iptables fo asterisk
SIP on UDP port 5060. Other SIP servers may need TCP port 5060 as well
Iptables-a input-p udp-m udp-dport 5004: 5082-j ACCEPT
IAX2-the IAX protocol
Iptables-a input-p udp-m udp-dport 4569-j ACCEPT
IAX-most have switched to IAX v2, or ought
Iptables-a input-p udp-m udp-dport 5036-j ACCEPT
RTP-the media stream
Iptables-a input-p udp-m udp-dport restart :20000-j ACCEPT
MGCP-if you use media gateway cont
Several key points to improve asterisk server concurrency.
System hardware Optimizations
Operating system tuning
Network stack tuning,: tuning kernal TCP/IP stack.
Io subsystem file system optimization: Use ramfs,
Asterisk settings:Turn Off log files,Tune MySQL to its best,UseFastagi, use epoll,
Network hardware settings: IRQ
Http://wiki.kolmisoft.com/index.php/Asterisk_Background_perfo
Here I will attempt to describe how to make N-way CILS from 2-way CILS.
First, you need trunk version of Asterisk.
All work done by two applications: meetme and channelredirect. You need zaptel driver to have meetme working.
Question:For Asterisk 1.4 do wee need to replace 'channelredirect' as used below with 'managerredirect' as in bug/patch 6508?
Here is dialplan example: [Default]Exten => _ XXX, 1, set
Sneak in, see the snow forum above saw someone released a "Win7 Asterisk password Detection Tool", found that "there is a little" small use.The reason is not very useful: This program's ability is quite limited, can only see a portion of the software is not high-security password box inside the program,If you want to take it to see the QQ password, for granted, it is impossible.The program uses a very old technique to get the contents of another proce
numbers-the number of replaced characters starting at the end of the string 0-Insert rather than replace
1, when start and charlist are positive, very good understanding, but also very symbolic of human logic, start is starting from 0, the following figure, according to the conditions, green will be replaced by the elements
2, when the start is negative, charlist is positive, it is also very good to understand
3, when start is a positive number, charlist is negative, this I sta
Preface
Ask what is the use of this system. Previously said to do a SIP system server to test IP recorder applications. Before using the Raspberry Pi has been able to run smoothly. Next use Beaglebone-black to realize this function. Prepare a beaglebone-black board; a 4G MICRO-SD card; cable network or USB card installation system Download Beaglebone-asterisk image file
Since I am using the old version of BBB, I try to download the lower version of t
1 Public classshanjiaoxing2 {3 Public Static voidMain (string[] args)4 {5 for(inti=0;i )6 {7 for(intJ=0;j//the output spaces are decremented with the loop8 {9System.out.print ("");Ten } One for(intk=0;k//The output * number is incremented with the outer loop, and when k A { -System.out.print ("*"); - } the System.out.println (); - } - } -}Operation Result:Output Half triangle:1 Publi
This article mainly introduces the PHP mobile phone number middle four with asterisks * instead of display examples, with a certain reference value, interested in small partners can refer to
In the display user list of the scene, the general use of mobile phone number of the display need to handle the mobile phone number, the general is the middle of the four-bit into the asterisk * * * * * * * * * * *, I am using PHP to deal with the idea is to repl
use in the future.
2. Self-made asterisk replacement function
The Code is as follows:
ReplaceStar ($ str, $ start, $ length = 0)
The preceding two parameters are the same as those above, and the final parameters are different from those above.
1. When start and length are both positive numbers, the performance is the same as that of substr_replace.
2. When start is negative and length is positive, it performs the same as substr_replace.
Iii. so
Background
System Structure
Extension 1026 and extension 1027 are used in the existing telephone system, and an asterisk is implemented under extension 1026 and extension 1027. A: In the 1027 system, ext. B: 1011 in the 1026 system, ext. 1012 is now called B through a. Because the language menu is implemented in the 1026 system, first, you can use the 91026 incoming call 1026 system (with an external dialing 9), and then enter 1012 according to
for(inti =1; I )3 {4Enumerable.//overall function: Output space triangle type5Repeat (" ", Empty-i). ToList ().//The Repeat (tresult,int count) function controls the number of spaces per line. 6ForEach (Console.Write);//The action7 //Execute the Console.Write function8 9Enumerable.repeat ("* ", i). ToList (). ForEach (Console.Write);//function Output * Number triangleTen OneConsole.WriteLine ();//Controlling line b
How do I use PHP to add an asterisk to my phone number and name?
On the internet to find a bit, a textbook is not good
http://www.haogongju.net/art/848588
Preg_replace ('/(0[0-9]{2,3}[\-]?[ 2-9]) [0-9]{3,4} ([0-9]{3}[\-]?[ 0-9]?) /I ', ' $1****$2 ', $phone);
I'd like to have my name and phone number (landline 8 or phone 11, the middle part becomes *
------Solution--------------------
PHP code
$tel 1 = "13888111188"; $tel 2 = "+861388811
/** Copyright (c) 2012, School of Computer Science, Yantai University * All rights reserved. * Author: Zhao guanzhe * Completion Date: July 15, October 9, 2012 * version number: v1.0 ** input Description: asterisks * Problem description: omitted * program output: omitted * problem analysis: slightly * Algorithm Design: slightly */# include
Running result:
Experience:
You are not sure about the asterisks, and there are many errors. I really don't know how to debug it. So I thought of the mo
The general solution to this problem can be like "3.20 how to customize the view title ?" . If you only want to display a simple "modified" indicator. For example, if there is a '*' in the title of a "modified" document, you only need to simply reload the cdocument: setmodifiedflag () function, no matter when the document object is changed, you can call this function.
We can safely reload setmodified (), because this function is declared as a virtual function in the cdocument class. Although vis
Training Content:1. Entry level: centos Installation2. Entry level: asterisk Installation3. Entry level: freeiris Installation4. Entry level: Basic settings of freeiris5. Improvement level: AQL Technology6. Improvement level: agispeedy Technology7. Improvement level: amipsIt starts at 09:30 and ends. Free all-day training.Address: Third floor, building 127, jindi industrial zone, Futian district, ShenzhenPlease send the following information for regis
You can configure a SIP Phone as needed, but video functions cannot be implemented in the early stage,
Now the video function has been successfully configured. Please share with us:
The premise is to create an account through extensions and use X-lite as the client:
1. log on to freepbx. The default value is admin/admin. Click module admin and check for update online.
2. Click Check update and you will see the plug-in. Some of them are tool modules. You can see which are installed, which
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.