[asterisk-users] Call routing based on CID

Eric Wieling EWieling at nyigc.com
Thu Oct 11 12:26:48 CDT 2012


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


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list