similar to: [DB] Insert only one prefix for multiple numbers?

Displaying 20 results from an estimated 10000 matches similar to: "[DB] Insert only one prefix for multiple numbers?"

2007 May 14
4
[*Win32 0.60] Sending call notification by e-mail/web?
Hello, In case there are other users of the AsteriskWin32 port... I haven't really used the AGI feature of Asterisk to run an application from extensions.conf. *Win32 supports Perl, which I don't know. Apparently, it's also possible to write AGI applications as EXE's (there's a eagi-test.exe file installed by default). => When a call comes in, I'd like an AGI
2007 May 14
2
How to write data to astdb?
Hello, I'm trying to fill CID data into the astdb using AsteriskWin32's asterisk.exe, to no avail: The batch file stops after the first line, and just waits: ---------------------------------------- rem c:\cygroot\mystuff>import.bat rem rem c:\cygroot\mystuff>C:\cygroot\bin\asterisk.exe -rx 'database put cidname 123 "My cellphone"' rem rem Asterisk module
2007 Oct 25
2
What to use instead of LookupCIDName?
Hello When using LookupCIDName, Asterisk 1.4 says that it's deprecated, and we should use "${DB(cidname/${CALLERID(num)})}" instead, but I don't know how to use it: ;DEPRECATED exten => s,1,LookupCIDName ;ERROR exten => s,1,${DB(cidname/${CALLERID(num)})} I guess I should use this as a parameter to a function, but which one? Thank you.
2007 May 28
1
[1.2.18] Wrong steps in extensions.conf?
Hello, Sometimes, when a call comes in from the PSTN through our VoIP gateway, the information that is sent to our web page that logs calls includes the original CID name instead of the one that is we expect to be rewritten on the fly using Asterisk's LookupCIDName: ================= ;extensions.conf [internal] exten => group,1,LookupCIDName exten =>
2007 Nov 10
2
Record() : How to get filename created with %d?
Hello About Record(), ATFT 2nd Edition says that "if the filename contains %d, these characters will be replaced with a number incremented by one each time the file is recorded." Problem is, the documentation doesn't explain how to refer to this filename later in the dialplan :-/ In this particular example, I want to move the file to the web server's /htdocs so users can
2007 Oct 19
3
Extensions.conf for basic IVR?
Hello I've never built an IVR before, so I was wondering if someone could share some code from their extensions.conf that would perform some of thoses steps: 1. When a call comes in from the TDM FXO port, answer 2. If no CID, play message "No CID available. Please type the number where you wish to be called back". Loop until OK or remote party hung up 3. When CID is available,
2005 Mar 17
0
adding to asterisk db from a script
It looks like asterisk isn't honoring EOF on stdin. file add-phonelist: database put cidname 200551234 "name 1" database put cidname 200551235 "name 2" database put cidname 200551236 "name 3" database put cidname 200551237 "name 4" asterisk -rn < add-phonelist What I see is an infinite stream of prompts as asterisk is banging onto the EOF. How
2007 Oct 23
0
Internal Data Stream Error
Hello again, I am using mix monitor and the majority of the sound records perfectly. I then get a "Internal Data Stream Error" near the end of the sound file. Has anyone ever seen this? I am allowing the ULAW amd ALAW codecs and an example dialplan entry is ; ; phone line phone1 exten => phone1,1,Answer() exten => phone1,2,MixMonitor(test.wav|av(0)V(0)) exten =>
2005 Sep 13
1
SetCIDName question
Hi all, I tried to set the calleridname of an incoming call to get different incoming labels displayed for different incoming numbers. This does work for hidden number-calls so I can set the displayed CIDName on my cisco7960 from "CID withheld" to "abc CID withheld" If the incoming CID isn't hidden it works to use SetCallerID but not to change only the CIDName with
2004 Dec 12
1
I'm stumped
I am trying to use the simple CID name management script on the wiki. http://www.voip-info.org/wiki-Asterisk+tips+managing+CID+names I can not see what is wrong. The values never get entered in the database. Here are the files: I have asterisk running as the user asterisk also. ---cid-store.php---- <HTML> <HEAD> <TITLE>Storing Asterisk CID data</TITLE> </HEAD>
2007 May 14
1
function_db_read: DB requires an argument, DB(<family>/<key>)
from extensions.conf: exten = _X.,1,Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})}) I basically try to lookup the CLIP and attach a name for each inbound call. This works fine, except when I have just restarted asterisk - at which time I've more than once seen the message from the subject. As far as I can tell, with my Set(CALLERID), I should always have an argument in the DB
2009 Jul 09
1
CIDlookup
Hi List I've a CID lookup hooked onto an inbound route (i m using trixbox) ...it runs well but it returns the value as "CIDNAME<CIDNUMBER>" ... if i just want to display the CIDNAME [leaving the quotes and <CIDNUMBER>] .. how can i do it ? do i have to edit some macro in extensions.conf ? rgds Sriram -------------- next part -------------- An HTML attachment was
2007 Nov 09
3
How to get ten-digit number?
Hello Instead of using PrivacyManager, I'd rather use my own dialplan to prompt the user for a ten-digit number if they called while blocking CID. This code does prompt the user, but 1) hangs up if the user didn't type the ten digits before the timeout 2) if the user did type the right number of digits, it still hangs up instead of Returning and then jumping forth to the "cid"
2006 Nov 22
11
Rewriting caller ID from database?
Hi Most of our customers have generic names like "Hospital", so I need to rewrite their caller ID name by looking up the number in a database on the Asterisk server, and rewriting the name such as "Reading Hospital" so that we know who's calling. Any idea if this can be done with Asterisk, and how to do it? Thank you.
2008 Feb 13
2
[Linux/Python 2.4.2] Forking Python doesn't work
Hello When a call comes in, I'd like to fork a Python script that broadcasts a message so that users see the CID name + number pop up on their computer screen, and simultaneously ring their phones. The following script doesn't work as planned: It waits until the script ends before moving on to the next step, which is Dial(): =========== exten =>
2003 Jun 09
1
Question for someone running hylafax off *.
Hi, I am setting up a hylafax server. From what I've read so far, hylafax supports CID numbers and names but currently does not support DID. I assume I can do something like this... [40faxDIDs] exten => _87[5-8]X,1,SetVar(CALLERIDNAME=${EXTEN}) exten => _87[5-8]X,2,Dial(Zap/g${hylafaxMODEMGROUP}) ...and use the CIDName variable in hylafax to route the faxes to the appropriate
2005 Feb 26
0
'asterisk' displays on 2nd line (CID Number Line) on Cisco 79x0 phones
I have found that I can make the phones display any one word on this second line by adding a fromuser=<word> in sip.conf. This really isn't good enough though. When you look at the received calls or missed calls directory, each item has two lines, the first is the CID name, and the 2nd is supposed to be the CID number. However, if it is asterisk, or some other word, when you hit the
2009 Feb 16
2
AstDB wildard searches
Hi All, I'm looking for a way to filter the AstDB cidname family to show only those entries with a specified area code in the Asterisk CLI. If this were a SQL database it would be something like: SELECT number, name FROM cidname WHERE number LIKE '1234%' I've tried "database show cidname 1234*" and substituted "%", "$", "-" for the wildcard
2004 Apr 27
1
parsing to compare
Admittedly this is probably pretty stupid of me, but there are just some things I can't understand by reading documentation. Any suggestions or recommendations about how to handle my problem are greatly appreciated. I'm trying to achieve the same functionality as my Nortel PBX, without rewriting much 'C' code. In my dialplan I'd like to compare two variables as a means of
2009 May 27
2
AstDB wildcards
Hi All, I need to use partial matches on the CIDNAME family I have stored in AstDB. For example, an organisation might have several numbers with the same area code and the same first few digits: 1234 567890 1234 567889 1234 567824 ... I'd like to store these (e.g.) as CIDNAME/12345678* (where "*" is a wildcard) so that I can retrieve the organisation name from