[Asterisk-Users] Help with extensions

David J Carter david.carter at codepipe.com
Sun Feb 6 05:35:46 MST 2005


Steve,

Sorry bum information. Line 2 should read: -

exten => s,2,VoiceMail2(${EXTEN})

Don't need to strip the first digit as this is either u or b already,
(Unobtainable or Busy).

Regards

Dave

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com]On Behalf Of David J
Carter
Sent: 06 February 2005 12:30
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [Asterisk-Users] Help with extensions


Steve,

I haven't tried this but can't you do something like.

[from-proxy]
exten => s,1,Answer
exten => s,2,VoiceMail2(${EXTEN:1})
exten => 3,3,Hangup

Regards

Dave

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com]On Behalf Of Steve Blair
Sent: 06 February 2005 12:14
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [Asterisk-Users] Help with extensions



Hello:

   I'd like some help with defining extension rules. I want calls arriving
at Asterisk from my SIP proxy to be sent directly to voicemail. I'd
also like the appropriate greeting played when the call gets to
voicemail.

   My proxy prefixes the extension with a "u" or "b" based on
SIP response codes before relaying to Asterisk. So when the
call arrives it is in the format [u|b][3|6|7|8]<four more digits>

   If I hard code the following rules then calls get forwarded
as expected.
     exten => u67501,1,VoiceMail2(${EXTEN})
     exten => #,2,Hangup

   However to save on typing I'd like a general rule. I've tried
the following but Asterisk cannot find the extension with this
set of rules. Can someone explain how what I want can be
accomplished?

    exten => _[ub][3678].,2,VoiceMail2(${EXTEN})
    exten => #,2,Hangup

Thanks
_______________________________________________
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
_______________________________________________
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




More information about the asterisk-users mailing list