| |
| News & Reviews |
Welcome to the Voxilla VoIP Forum.
Voxilla has been a trusted source for accurate, up-to-date information on the IP Communications industry since 2002. A dedicated staff of reporters and engineers produce feature articles and product reviews to keep industry watchers abreast of the people, companies, and trends driving a fast moving market.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact contact us.
Voxilla VoIP Forum |
Asterisk CLI - Add Name to CIDTechnical support, how-to guides, troubleshooting, and general assistance, from beginner to seasoned pro, this is where to discuss Asterisk, the most powerful open source PBX. |
| | LinkBack | Thread Tools | Rate Thread | Display Modes |
| |||
| Moving my query to a different thread. This is the initial post I made: Quote:
|
| |||
| to which Chandave gave the following reply: Quote:
|
| |||
| Chandave, I wasn't aware the script only worked for North American naming system. I'm actually in Egypt, and receive calls from Pakistan/Egypt/UK, in addition to the USA. Each country has its own number convention, and depending on the trunk being called, the incoming CLI is different as well, the 20105551234 number is actually my egyptian mobile phone... and... if I call my USA Incoming DID, it appears as 0020105551234, on the UK DID, it strips the 00. Actually, I thought, since I was actually physically assigning a name to the number, it shoudln't matter if the number is in the NANP format or not. Is there a non-north american version of callingname available somewhere? Thanks for all your help. Regards. Rizwan Sher |
| |||
| Well, if you are only using the calleridname.agi to retrieve CIDname from your own Asterisk database, then you can change: Code: elseif ( (length($callerid)==11) && (substr($callerid,3,1)==0) && ($callerid =~ /^(\d{3})(\d{4})(\d{4})$/) ) {
$npa = $1;
$nxx = $2;
$status = $3;
$AGI->verbose("Checking funky zero-prefixed NXX: $npa $nxx $station...\n");
} Code: elsif ( (length($callerid)>10) && ($callerid =~ /^(\d+)$/) ) {
$station = $1;
$AGI->verbose("Checking non NA-NPA formatted number $station...\n");
} Code: $Fonetastic = '0'; $AnyWho = '0'; $Google = '0'; $Asteridex = '1'; See ya... d.c. |
| |||
| Got it working by installing the module, steps here |
| | |
| |
| Thread Tools | |
| Display Modes | Rate This Thread |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Asterisk CLI Database PUT question.. | DGrant303 | Asterisk Support Forum | 6 | September 25th, 2006 10:24 AM |
| SIPURA 3000 -> Asterisk and CID | bulimia | Linksys (Sipura) VoIP Support Forum | 8 | July 7th, 2006 09:40 PM |
| log into asterisk CLI as normal user | baddah | Asterisk Support Forum | 5 | July 7th, 2006 07:26 PM |
| How to add multiple registrations to Asterisk@home ? | JPF | Asterisk Support Forum | 7 | October 7th, 2005 12:37 AM |
| Asterisk & Sipura SPA-2000 loses 3 digits off end of CLI | timfhdavidson | Asterisk Support Forum | 1 | January 18th, 2005 07:50 PM |