_____  

From: [email protected]
[mailto:[email protected]] On Behalf Of Dan Journo
Sent: Monday, October 25, 2010 3:21 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] Extension Exists

 

Hi,

 

When a VOIP user dials an external number, the calls are routed through our
SIP provider. 

 

Is there a simple way to check whether the DDI exists locally before
dialling out to the sip provider?

Something like GotoIfExists(5551...@incoming_calls)

Currently, I'm paying for all calls, regardless of whether they exist
locally.

 

All DDIs exist in the incoming_calls context.

 

Thanks

Dan

 

Here you go - 

Exten => _X.,1,verbose(try local first)

Exten => _X.,n,Dial(SIP/${EXTEN},30,KkTt)

Exten => _X.,n,Dial(SIP/${ext...@provider,60,KkTt)

 

If the local exten does not exist, it should fall through immediately to the
provider call.

 

-- 
_____________________________________________________________________
-- 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

Reply via email to