[quote=“Raffles”]Instead of CALLERID(num) try SIPPEER(${CALLERID(num)}:mailbox) (core show function SIPPEER) - see if that works.
Of course, you could always play with the ${CHANNEL} information.[/quote]
Ah you are right this works, I didnt know you could access parameters like that! Very handy to know.
The reason why using the SIPPEER method is flawed, is that when you have more than one mailbox defined against a peer, this will report back all mailboxes.
NoOp("SIP/2225-a8816078", "2225,2224,2001") which is obviously not much help, and wont work.
Correct Ian. But in this case, he didn’t - hence it was the right answer to this question. There are lots of other ways to get the same information (${CALLERID(ANI)}, ${CHANNEL}, usage of global variables etc.) all of which are user/scenario dependent.
He means the ‘s’ at the beginning (the one you add before the extension number). In the old days - that looks like an ‘option’ which would now go at the end.
[quote=“Raffles”]He means the ‘s’ at the beginning (the one you add before the extension number). In the old days - that looks like an ‘option’ which would now go at the end.
Just a bit of confusion me thinks .[/quote]
Aha ok I didn’t know that
These are just things you really need to know, because in the docs and wiki’s it is still how I did it
The problem is that you cant have it working for one and broken for another. I agree that it would work in this case, but Features have to work for all extensions.
The first port of call should be core show application
The wiki is only as good as people updating it and sadly the wiki is often out of date.
[quote]cymonCLI> core show application VoiceMailMain
cymonCLI>
-= Info about application ‘VoiceMailMain’ =-
[Synopsis]
Check Voicemail messages
[Description]
VoiceMailMain([mailbox][@context][|options]): This application allows the
calling party to check voicemail messages. A specific mailbox, and optional
corresponding context, may be specified. If a mailbox is not provided, the
calling party will be prompted to enter one. If a context is not specified,
the ‘default’ context will be used.
Options:
p - Consider the mailbox parameter as a prefix to the mailbox that
is entered by the caller.
g(#) - Use the specified amount of gain when recording a voicemail
message. The units are whole-number decibels (dB).
s - Skip checking the passcode for the mailbox.
a(#) - Skip folder prompt and go directly to folder specified.
Defaults to INBOX
[/quote]