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
In the example of implementing automatic call, I used the Originate method in the Asterisk manager API, which is in phpagi. The specific definition is as follows: (I will not explain it in English. I am very confused in English)/*** Originate Call** @ Link http://www.voip-info.org/wiki-Asterisk+Manager+API+Action+Originate* @ Param string $ channel Channel name to call* @ Param string $ exten Extension to u
Asterisk is an open-source Telephone Application Platform under the GPLv2 protocol. In short, Asterisk is a server application that can initiate a call, receive a call, and customize a call. First of all, let's talk about how to install Asterisk In ubuntu. There are many installation introductions on the Internet, which are easy to install. Please record them her
Environment:Centos6.2 + asterisk 1.8.7.1
1. Add source files
CopyApp_verbose.cIsApp_testapp.c
CopyApp_verbose.exportsIsApp_testapp.exports
It mainly modifies some identifiers and does not cause compilation errors. The main modifications I made are listed here.
1Add header files
# Include"Asterisk/CLI. H"
2Modify Variables
Static Char* App_testapp ="Testapp";Static Char* App_testapplog ="Testa
//outputs a triangle of asterisks (asterisks left aligned) intA//controls the number of rows that make up the asterisk of the trianglecout"Please enter the number of rows N (n>=2) of the asterisk to form the three-solution: \ N"; CIN>>A; for(intI=0; i//control number of rows { for(intj=0; j//control the number of each planetary number. { if(i==0|| i==a-1) {cout"* ";//a spac
Release date: 2012-04-23Updated on: 2012-04-24
Affected Systems:Asterisk 10.xAsterisk 1.xUnaffected system:Asterisk 10.3.1Asterisk 1.8.11.1Asterisk 1.6.2.24Description:--------------------------------------------------------------------------------Bugtraq id: 53210CVE (CAN) ID: CVE-2012-2415
Asterisk is a free and open-source software that enables the Telephone User Switch (PBX) function.
Asterisk has a sec
. h file[OBJC] view plain copy
"FONT-SIZE:18PX;" > /**
* Turn into an asterisk tool
*/
@interface Asterisktool:nsobject
//Turn the phone number 第4-7位 into an asterisk
+ (nsstring *) Phonenumtoasterisk: (nsstring*) Phonenum;
//Turn the phone number 第5-14位 into an asterisk
+ (nsstring *) Idcardtoasterisk: (nsstring *) Idcardnum;
@end
Use ereg to determine whether a string contains an asterisk. how can I use ereg to determine whether a string contains an asterisk? how can I share it? use ereg to determine whether a string contains an asterisk. how can I express it?
Use ereg to determine whether a string contains an asterisk:
------ Solution ------
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.