[Asterisk-Users] Manipulation based on SIP extension

Henry Devito hdevito at mchsi.com
Mon Apr 4 04:28:00 MST 2005


----- Original Message ----- 
From: "Irakli Natsvlishvili" <irakli.natsvlishvili at thinkingvoice.com>
To: "Asterisk Users Mailing List - Non-Commercial Discussion" 
<asterisk-users at lists.digium.com>
Sent: Monday, April 04, 2005 4:52 AM
Subject: [Asterisk-Users] Manipulation based on SIP extension


> Hello there,
>
> How do I configure any type of action based caller's extension and dialed 
> number? For example if someone on extension 1777 calls extension 1777 this 
> should be treated as accessing his voicemail box, so he won't need to call 
> voicemail and entering mailbox number and password.
>
> I.N.
>

Try something like this


  exten => 1777,1,GotoIf($[${CALLERIDNUM} = "1777"]?5:2)
  exten => 1777,2,Dial(SIP/177),15,rt
  exten => 1777,3,Voicemail(u${EXTEN})
  exten => 1777,4,Hangup
  exten => 1777,5,VoicemailMain(s${EXTEN})
  exten => 1777,6,Hangup
  Henry 




More information about the asterisk-users mailing list