News & Reviews
More How-To's & Tips More News
More Reviews Device Configuration Tools
No account yet? Create one
Forgot your Username or Password?

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.





Closed Thread
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old February 19th, 2006, 06:33 PM
danes75 danes75 is offline
Member
 
Join Date: Feb 2006
Posts: 34
danes75
Default Asterisk@Home 2.5 routing inbound calls by caller ID

I'm having problems getting aah 2.5 to use my inbound routing. I have a primary DID incoming route of 281XXXXXX that sends users to an IVR. I also have a route that says incoming calls with the CID should go to a specific extension.

However, it doesn't work. No matter what the CID route states, any calls to the 281XXXXXX number go to the IVR. Is there a way to set route priorities? So that it matches incoming routes in a specific order? As in:

if the caller ID on 281XXXXXXX says this number, send to this extension. If not, send to IVR.

The ultimate goal is to have my cell number, which forwards to the house number when I get home, ring a specific extension. My house has a damper in the attic that shields it from mobile signals. My cellphone is set to forward to a certain number (the 281XXXXXX number) when unreachable. But I don't want it to go to the standard 281 IVR, I want it to go directly to my house extension.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2 (permalink)  
Old February 19th, 2006, 06:51 PM
mberlant's Avatar
mberlant mberlant is offline
Senior Member
 
Join Date: Aug 2004
Location: USA or Japan
Posts: 5,013
mberlant is an unknown quantity at this point
Default RE: Asterisk@Home 2.5 routing inbound calls by caller ID

You need to insert a Caller ID rule into Asterisk. I am not sure how AMP would want this configured, but I'll explain it in vanilla Asterisk and either you can figure it out or someone well experienced in AMP can chime in and help.

Let's assume that your DID number is 2811234567 and your cell phone has a number of 2815555555.

Find the inbound context that handles your DID ([in-sip-DID281], or whatever it is in your system). You should see lines on the order of:

Code:
exten => 2811234567,1,Goto(ivr-main,s,1) ; This is where you have pointed all incoming calls to your IVR.
exten => 2811234567,2,Hangup             ; If something prevents transfer, just hang up.
Insert a new line to catch calls coming from your cell phone:

Code:
exten => 2811234567/2815555555,1,Dial(SIP/200,30,t) ; If Caller ID matches, do this instead.
exten => 2811234567/2815555555,2,VoiceMail(u200)
exten => 2811234567,1,Goto(ivr-main,s,1)            ; If Caller ID does not match, do this.
exten => 2811234567,2,Hangup
If this code doesn't work, you can still accomplish the feat with the GotoIf command:

Code:
exten => 2811234567,1,GotoIf($["${CALLERIDNUM}" = "2815555555"]?201) ; Jump if Caller ID matches.
exten => 2811234567,2,Goto(ivr-main,s,1)            ; If Caller ID does not match, continue here.
exten => 2811234567,3,Hangup
exten => 2811234567,201,Dial(SIP/200,30,t)
exten => 2811234567,202,VoiceMail(u200)
I believe this code will do what you want. I welcome corrections and AMP-specific guidance.
__________________
Please do not send technical questions via PM.
Please post all questions to the forum.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3 (permalink)  
Old February 19th, 2006, 08:35 PM
dswartz dswartz is offline
Senior Member
 
Join Date: Oct 2005
Posts: 149
dswartz
Default

I think this was discussed in another forum. I pointed out that AMP allows you to just plop the CID in and it works fine. Unfortunately (IIRC), he wants to do wildcarding on the inbound CID, and AMP didn't handle that
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4 (permalink)  
Old February 19th, 2006, 09:42 PM
danes75 danes75 is offline
Member
 
Join Date: Feb 2006
Posts: 34
danes75
Default

Well, If you're referring to wildcard as an area code and exchange, then no. I'm just wanting MY cellphone caller ID.

When I have my phone turned off and forwarded to the house, the caller ID of any incoming calls to asterisk from the phone show as 7116179175. I don't know what the number is, but I'm trying to get Asterisk to recognize it and forward calls with that ID to a specific extension.

When I plug the CID into AMP and tell it where to send the call, it get accepted. But when I use another cell phone and call mine, it forwards to the house and shows the CID as the 711 number but still gets sent to the IVR for the house number (the 281 number).

// I edited the config file as referenced above and it still doesn't work. It seems as though asterisk is recognizing the DID that the call is coming in on and not looking for anything else.

This is what the extensions_additional.conf file says:

exten => 281971XXXX/711617XXXX,1,SetVar(FROM_DID=281971XXXX/711617XXXX)
exten => 281971XXXX/711617XXXX,2,Goto(ext-local,XXXX,1)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5 (permalink)  
Old February 19th, 2006, 10:21 PM
danes75 danes75 is offline
Member
 
Join Date: Feb 2006
Posts: 34
danes75
Default

hey guys, thanks for the help and i fixed it. dumb mistake on my part ;-)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old February 19th, 2006, 10:21 PM
  #6 (permalink)  
Old February 19th, 2006, 10:24 PM
dswartz dswartz is offline
Senior Member
 
Join Date: Oct 2005
Posts: 149
dswartz
Default

sorry, danes, i think i confused you with someone else with similar issue glad it's working..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7 (permalink)  
Old February 19th, 2006, 10:49 PM
isepic isepic is offline
Senior Member
 
Join Date: Dec 2004
Posts: 192
isepic
Default

Actually I'd like to route calls to custom-congestion,s,1 that I have setup - like a whole areacode or wildcard (mentioned above) I guess AMP can't do it? How would you do it.. I've put in 605xxxxxxx and it doesn't catch it... any suggestions? Thank you.
__________________
[iSEPIC]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8 (permalink)  
Old February 20th, 2006, 12:35 AM
dswartz dswartz is offline
Senior Member
 
Join Date: Oct 2005
Posts: 149
dswartz
Default

I don't think AMP can do it. You'd have to hack the conf file directly.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:



Similar Threads for: Asterisk@Home 2.5 routing inbound calls by caller ID
Thread Thread Starter Forum Replies Last Post
Asterisk "Incoming Calls' vs. 'Inbound Routing' hoolahoous Asterisk Support Forum 1 May 29th, 2006 01:44 AM
asterisk@home inbound from broadvoice does not work. HELP! quibbly Asterisk Support Forum 25 March 7th, 2006 08:27 AM
Asterisk@Home 2.5 seems to be ignoring my inbound routes unixuser101 Asterisk Support Forum 4 March 2nd, 2006 09:06 PM
Inbound BV calls to AAH working but no ringing on caller end new_ukuser BroadVoice Support Forum 2 January 12th, 2006 11:41 PM
DID Inbound Routing - Asterisk@home 2.0, Need help ferdies Asterisk Support Forum 2 December 13th, 2005 09:16 AM



All times are GMT. The time now is 01:02 PM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc. Logos and trademarks are the property of Voxilla or their respective owner. All other content © 2003-2007 by Voxilla, Inc.