Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] hint() extension in AEL


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
vahan at arminco.com
Guest





PostPosted: Sun Jun 29, 2008 7:11 am    Post subject: [asterisk-users] hint() extension in AEL Reply with quote

Hi,

I've been trying to setup hinting recently on 1.4.20.1, and was
wondering if there is a more elegant way to do the following
piece of dialplan without repeating the hints for every existing
extension/user?

context Main {

hint(SIP/10301) 10301 => &call(${EXTEN});
hint(SIP/10301) 301 => &call(10${EXTEN});
// [snip]
hint(SIP/10327) 10327 => &call(${EXTEN});
hint(SIP/10327) 327 => &call(10${EXTEN});

_3XX => &call(10${EXTEN});
_103XX => &call(${EXTEN});

}

macro call( ext ) {
Dial(SIP/${ext},20,otL(3600000:61000:30000));

switch(${DIALSTATUS}) {
case BUSY:
Voicemail(${ext}@Main,b);
break;
default:
Voicemail(${ext}@Main,u);
};
catch a {
VoiceMailMain(${ext}@Main);
return;
};
Hangup;
};

So far I tried having the sip extension to ' => jump _103XX' or simply
'=> Noop()'. Neither worked,
latter just overwriting the _103XX extension and causing just noop and
hangup executed when you call that extensions.

Any ideas?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services