<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body>
The way I have it set up, is that the mailbox is the same as the exten.<br>
I then wrote a macro that does it for me.<br>
<br>
<pre>[macro-stdiax]</pre>
<pre>; ARG1 = User</pre>
<pre>; ARG2 = Voice Mail Number</pre>
<pre>exten => s,1,Dial(IAX2/${ARG1}/${ARG1}@edirontelco||Ttr)</pre>
<pre>;exten => s,2,Voicemail(u${ARG2})</pre>
<pre>;exten => s,3,Hangup</pre>
<pre>;exten => s,102,Voicemail(b${ARG2})</pre>
<pre>;exten => s,103,Hangup</pre>
<pre>
macro-eracewcustomer]</pre>
<pre>; ARG1 = User</pre>
<pre>exten => s,1,Dial(IAX2/${ARG1}/${ARG1}@eracew|20|Ttr)</pre>
<pre>exten => s,2,Voicemail(u${ARG1})</pre>
<pre>exten => s,3,Hangup</pre>
<pre>exten => s,102,Voicemail(b${ARG1})</pre>
<pre>exten => s,103,Hangup</pre>
<pre>
[macro-stdtrunk]</pre>
<pre>; ARG1 = Zap Port</pre>
<pre>; ARG2 = Voice Mail Number</pre>
<pre>exten => s,1,Dial(Zap/${ARG1}|20|Ttr)</pre>
<pre>exten => s,2,Voicemail(u${ARG2})</pre>
<pre>exten => s,3,Hangup</pre>
<pre>exten => s,102,Voicemail(b${ARG2})</pre>
<pre>exten => s,103,Hangup</pre>
<pre>
[macro-dialtrunk]</pre>
<pre>exten => s,1,Dial(${TRUNK}/${ARG1})</pre>
<pre>exten => s,2,Congestion</pre>
<pre>
[macro-dialiax]</pre>
<pre>exten => s,1,Dial(IAX/${ARG1}/${ARG2})</pre>
<pre>exten => s,2,Congestion
[dialing_context]
</pre>
<pre>exten => 2050,1,Macro(stdtrunk,1,${EXTEN})</pre>
<pre>exten => 0205,1,Macro(stdiax,${EXTEN},${EXTEN})</pre>
<br>
<br>
--<br>
Christopher Dobbs<br>
Antony Stone wrote:
<blockquote
cite="mid200412172138.13550.Antony.Stone@Asterisk.Open.Source.IT"
type="cite">
<pre wrap="">On Friday 17 December 2004 21:25, Ross Kevlin wrote:
</pre>
<blockquote type="cite">
<pre wrap="">this would still only work if the mailbox number was the same as the caller
id. I need some way to get the actual mailbox number of the caller.
</pre>
</blockquote>
<pre wrap=""><!---->
Where / how are your mailbox numbers stored?
It shouldn't be too difficult to create a script or DB request to provide the
CID and get the mailbox number in response?
Just out of interest, why don't you make the mailbox ID = caller ID?
Antony.
</pre>
</blockquote>
<br>
</body>
</html>