", Baseutil.getextensionstate (Extensionstatus.getstatus ()));New WebSocket (). Broadcastall (Jsono);Call hold event for the time being}else if (event instanceof Parkedcallevent) {Parkedcallevent parkcall= (parkedcallevent) event;String Key=baseutil.getnumber (Parkcall.getfrom ());Key+=baseutil.channelpark_centent;Mapcache.put (Key, Parkcall.getexten ());Get Database Data Events}else if (event instanceof Dbgetresponseevent) {Dbgetresponseevent dbget= (dbgetresponseevent) event;}else if (event in
In php, replace the characters at the specified position in the string with asterisks. Our function can be used to implement substr, preg_replace, substr_replace, and so on. Below we will introduce one instance for the three functions respectively, we mainly talk about the phone number and ID card.
Replace the phone number string with the asterisk code:
The Code is as follows:
Copy code
$ Str = "15832818835 ";Echo substr ($ str
IE 4 to 6 also has a mysterious parent element. A fully compatible browser ignores this * HTML selector, but IE4-6 will handle it normally. This allows specific rules to be specified for these versions of the browser. For example, this rule can specifically specify the size of the text in ie4-6, but it does not work for other browsers.* HTML p {font-size:5em;}This hack uses a completely effective CSS.Asterisk plus hack(For IE7)Although IE7 no longer recognizes the previous * HTML hack, it uses
This * is only the LS command display, indicating that there is executable permission, the actual file name without the * number.Ls-fThe executable file name will be added with the * number.Displays information about one or more files.ls [options] [file-list]ParametersBy default, LS lists the file's information in alphabetical order by filename, file-list can be any file or directoryWhen file-list contains multiple directories, LS displays the name of the directory and does not display subdirect
Goto: The delivery of a python function parameter (parameter with an asterisk description)The transfer of function parameters in Python is passed by assignment. The use of function parameters has two important aspects to note: 1. How the function parameter is defined 2. How the arguments are parsed in the process of calling the functionFirst of all, there are four main ways to define function parameters in Python:1.F (Arg1,arg2,...)This is the most co
This address: http://blog.csdn.net/sushengmiyan/article/details/39395753Official Example: HTTP://DOCS.SENCHA.COM/EXTJS/5.0/APIDOCS/#!/API/EXT.FORM.LABELABLE-CFG-BEFORELABELTPLThis article Sushengmiyan--------------------------------------------------------------------------------------------------------------- ---------------------On the registration page to get the information to fill in the interface, we can see the required option of the logo * this thing. In ext, we can create a label throug
Asterisk recording can use monitor and mixmonitor. The difference is that monitor records a single channel and mixmonitor records a dual channel,
Process: Specify the recording file name and format when you call monitor. Mount the file to the channel and call ast_read to read the RTP stream at the beginning of connection. If the protocol stack supports callback, call the READ function provided by the protocol stack, such as sip. sip_read function,
overflow number. The following is an example:
Pplotgpc: 0x0040fa20pplotgpc-> pdata: 0x0040fa30 result: 0x0040fa30-0x0040fa20 = 0xff3d11b0
This result surprised me if the CPU is broken. But after reading the assembly, I know the reason.
00ff107d mov ECx, dword ptr [pplotgpc] 00ff1080 SHL ECx, 2 // multiply by 4, to shift left 2 implement 00ff1083 mov edX, dword ptr [ebp-0Ch] 00ff1086 sub edX, ecx00ff1088 mov dword ptr [ebp-0Ch], EDX
In this subtraction operation, the subtraction is first multipl
hangup return code on a zap channel connected to a PRI Interface
$ {Invalid_exten}: The extension asked for when redirected to the I (invalid) Extension
$ {Language}: Prompt language
$ {Meetmesecs}: Number of seconds a user participant ipated in a meetme Conference
$ {Priority}: The current priority
$ {Rdnis}: The current redirecting dnis, caller ID that redirected the call. limitations apply, see rdnis
$ {Sipdomain}: SIP destination domain of an inbound call (if appropriate)
$ {Sip_code
Create Channel
The asterisk code is calledAst_channel_alloc () MacroCreate a channel. After the channel is created, it is automatically inserted into the hash table of the main channel, which is used by the system to track all active channels. The key of the hash table is created based on the channel name. Therefore, if you need to change the channel name, you must callAst_change_name ()Function, but cannot directly modify the corresponding field.Ast_
To use two sip phones to communicate with each other through the asterisk service, you need to configure sip. conf, extension. conf:
Sip. conf
[General]
Context = default; the default dialing Scheme
Allowoverlap = No
Bindport = 5060; listening port
Bindaddr = 0.0.0.0; listen to all incoming calls
Srvlookup = Yes
[101]Type = friend; User TypeSecret = 101; PasswordHost = dynamic; Dynamic IPContext = internal; Extension dialing SchemeUsername = 101;
Use Ereg to determine if a string contains an asterisk how to indicate
Reply to discussion (solution)
Strpos can do it.
Var_dump (@ereg (' \* ', ' abc ')); BOOL (FALSE)Var_dump (@ereg (' \* ', ' a*c ')); Int (1)The Ereg function group has been included in the abolition plan. It is advisable not to use it to avoid causing unnecessary trouble.
All the characters of the regular special meaning can be removed by the escape character \ Special meanin
());}}@Overridepublic void Onnewasteriskchannel (Asteriskchannel channel) {TODO auto-generated Method StubMapcacheutil instance=mapcacheutil.getinstance ();//Get Cached objectsCallerID Cid=channel.getcallerid ();if (cid!=null) {Instance.put (Cid.getnumber () +baseutil.channel_centent, Channel.getname ());//new channel information is added to the cache and used for hanging machines}Channel.addpropertychangelistener ("state", this);//trigger action only when the channel status is changedSystem.ou
Python: code method for printing the "diamond" asterisk.
I am a beginner in python. I just saw an interesting python question: "How does python print a diamond pattern in the compiler ?"So I decided to try it. There are not many codes for your reference only.
Code
Def printStar (intNum): s = "*" spaceLength = intNum blockCount = int (intNum/2 + 1) for I in range (spaceLength): result = s. partition ust (blockCount) if I> = int (spaceLength/2): prin
Share a practical script to transmit the recordings generated by asterisk to a separate recording storage server through the system cron and transmit the recordings generated every day to a separate recording server, I have been using this script. In the LAN, tens of thousands of recordings are transmitted every day, which can be completed in an hour. I hope it will help you [plain] #! /Bin/bash #2013/4/24-Author: zhangtuo # luckytuo@gmail.com # uploa
This program is always unable to submit the data in the generated interface, always prompt with the asterisk information is not complete, but I did fill in the complete
This post was last edited by jackbill43 on 2013-08-15 15:09:41
Beginner's Advice
Include_once ("base-class.php");
New SAE Database Class
$mysql = new Saemysql ();
Get the Classroom ID number that needs to be modified incoming
$class _id=intval ($_get["class_id"]);
Get
constant reference, whereas the preceding const reflects the Const object that refers to the object (pointer) to which the reference is pointing. We have object names, or pointers to objects, which can manipulate objects, why introduce the concept of reference? In fact, references are most commonly used as formal parameters for functions.To manipulate an external object in a function, it is a good idea to use a reference. About references first, the reference can only be initialized, not be ass
may wonder why the last one is not quoted is also possible, here we can do another experiment to see:We assign a list of all filenames under the current directory as variable values to C[Email protected]_102 ~]# echo $aanaconda-ks.cfg install.log install.log.syslog[[email protected]_102 ~]# c= "Anaconda-ks.cfg install.log install.log.syslog "[Email protected]_102 ~]# [[" $c "= = *]] echo AA | |echo bbaa[[email protected]_102 ~]# [["$c" = = "*"]] echo AA | | Echo bbbbThis time we can see that
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.