I have this in my sip.conf:

exten => *98,1,Verbose(0,CALLERID number is "${CALLERID(num)}")
    same => n,VoicemailMain(${CALLERID(num)}@LocalSets,s)
    same => n,Hangup

However, my extensions are set up so that they always show the external
number, not the extension:

[foobar2](client-phone)
secret=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
callerid=Candace <5555551212>
mailbox=foobar2@LocalSets

So the caller ID is 5555551212 but the voice mail is foobar2.  Is there
any way to get the actual extension that called?  Can I create a
variable in the extension that I can read instead of ${CALLERID(num)}?
I tried setting a random string (xaccount) and reading it with
${ENV(xaccount)} but it's not an environment variable and didn't work.

Cheers.

-- 
D'Arcy J.M. Cain
System Administrator, Vex.Net
http://www.Vex.Net/ IM:da...@vex.net
VoIP: sip:da...@vex.net

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