[Asterisk-Users] let incoming callers contact a certain
extension...
Rodolfo Grave
rodolfograve at yahoo.es
Fri Sep 17 07:36:47 MST 2004
HI.
I'm also a newby, so maybe this goes with no warranty, ;)
You must configure your sip.conf, iax.conf, zap.conf or the respective
configuration file for the channel receiving the call and make
[incoming_12121212] the context for that channel (incoming_12121212 is
just an arbitrary name), then in your extensions.conf you must write the
following:
[incoming_12121212]
exten =>s,1,Wait,1
exten => s,2,Answer
exten => s,3,PlayBack(welcome)
exten => s,4,PlayBack(if-u-know-ext-dial)
;; tilll here is the same you had, just changing 12121212 by s (which is
the built-in exten for start)
exten => s,5,SetDigitTimeOut(10)
exten => SetResponseTimeout(30)
;; and then, deppending on how many numbers have your extensions, you
could use something like this:
exten => _XXX,1,Dial(SIP/${EXTEN},60,r)
;; this is assuming your extensions have exactly 3 numbers (X matches 1
digit)... that your extensions are SIP devices registered with asterisk
and well configured...
Hope this helps.. at least will be a hint. If you send a more specific
situation I could help you more.
RODOLFO
Evert Meulie wrote:
> Hi everyone!
>
> The following: Any calls coming in on extension 12121212 should get a
> message telling them to dial the extension of the person they are
> trying to reach, and then press #.
> The call should then go to the entered extension.
> This is as far as I got...
>
> ***********************************************************
> exten => 12121212,1,Wait,1
>
> exten => 12121212,2,Answer
>
> exten => 12121212,3,PlayBack(welcome)
>
> exten => 12121212,4,PlayBack(if-u-know-ext-dial)
>
> exten => 12121212,5,PlayBack(then-press-pound)
>
> exten => 12121212,6,DigitTimeout,10
> exten => 12121212,7,ResponseTimeout,30
> ***********************************************************
>
> Who can help me a little further on the way?
>
>
>
> Regards,
> Evert
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
> ---
> avast! Antivirus: Inbound message clean.
> Virus Database (VPS): 0438-2, 16/09/2004
> Tested on: 17/09/2004 14:43:16
> avast! - copyright (c) 2000-2004 ALWIL Software.
> http://www.avast.com
>
>
>
>
---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0438-2, 16/09/2004
Tested on: 17/09/2004 16:36:49
avast! - copyright (c) 2000-2004 ALWIL Software.
http://www.avast.com
More information about the asterisk-users
mailing list