Let's say the incoming call you wanted to route came into the [incoming] context:

[context]
exten => s,1,Answer
exten => s,2,Playback(file)
exten => s,3,Hangup

exten => s/8005551212,1,Answer
exten => s/8005551212,2,Playback(specialfile)
exten => s/8005551212,3,Hangup

If the callerid of the caller connecting is exactly 8005551212, the second block is matched. otherwise, the first block, without the slash and the callerid string, would be the default match-all extension.

I believe (check the wiki) there is a syntax that combines the callerid matching with the wildcard matching:

exten => s/_800.,1,Answer

This would match any callerid string beginning with 800. Please look over the wiki to make sure the syntax for this example is correct before you try it.

Moj


Shad Mortazavi wrote:
Dear Group,

I have my Asterisk box working with a Mediatrix 1204.
I have 2 questions;

1) I do not seem to get a Call ID on the call coming via the Mediatrix
1204. I was wondering if anyone had this configured and if they could
share this with me?
2) How do you route a call based on caller ID on Asterisk. At the moment
I'm routing calls via DNIS.

Thanks and Regards

Shad Mortazavi

_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


--
Mojo <[EMAIL PROTECTED]>
Office Manger, Horan & Company, LLC
(907) 747-6666 x112
_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to