[asterisk-users] Call routing based on CID
Geoffrey Yeoh
pbyeoh at gelxis.co.uk
Thu Oct 11 15:37:43 CDT 2012
Thanks Eric. That works.
--------------------------
Try: exten => _00336123412xx/_44XX.,1,Set(RINGTIME=90,g)
Notice the _ on your callerid pattern
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Geoffrey
Yeoh
Sent: Thursday, October 11, 2012 1:15 PM
To: asterisk-users at lists.digium.com
Subject: Re: [asterisk-users] Call routing based on CID
Hi,
I've been trying to route incoming calls based on CID to a trunk but the
calls are not getting though. I am trying to use a wild card prefix based
on countries so I can point the call to the appropriate trunk.
I am running Asterisk 1.8 with FreePBX.
Here is a sample of my configuration in extentions_custom.conf
exten => _00336123412xx/44XX.,1,Set(RINGTIME=90,g)
exten => _00336123412xx/44XX.,n,Answer(10) exten =>
_00336123412xx/44XX.,n,Dial(SIP/trunk01/${EXTEN},${RINGTIME})
exten => _00336123412xx/44XX.,n,Hangup()
Any kind suggestions is appreciated. Thanks.
Best Regards,
Geoffrey Yeoh
More information about the asterisk-users
mailing list