Thanks to both of you guys for your answers. They were really helpfull.<br>
<br>
- Teemu<br><br><div><span class="gmail_quote">2005/9/17, Jan Janak &lt;<a href="mailto:jan@iptel.org">jan@iptel.org</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 16-09-2005 16:11, Teemu Harju wrote:<br>&gt; Hi,<br>&gt;<br>&gt; I'm implementing following kind of system. I have two separate machines<br>&gt; where I've installed SER on. The other machine has also SEMS installed. Like
<br>&gt; you probably already figured out other is used as a plain proxy/registrar<br>&gt; and the other as a sort of UAS serving voicemail, conference etc with the<br>&gt; help of SEMS.<br>&gt;<br>&gt; Now my question is, what is the best way to forward messages from
<br>&gt; proxy/registrar to the media server? I've done the forwarding according to<br>&gt; the examples I've found and it uses rewritehostport() to forward messages to<br>&gt; voicemail. Voicemail needs to get the email address from mysql database
<br>&gt; located in proxy. This is no problem connecting to the database, but isn't<br>&gt; it so that when I've rewritten the Request-URI that the voicemail cannot<br>&gt; find the email from database beacause it's rewritten and has the media
<br>&gt; servers host part in the URI.<br><br>&nbsp;&nbsp;SER can obtain the email address from database and pass it to SEMS<br>&nbsp;&nbsp;along with the request. This would be typically done on the SER<br>&nbsp;&nbsp;instance that talks to SEMS (the one running on SEMS machine). You can
<br>&nbsp;&nbsp;tune what AVPs will be passed to SEMS using tw_append parameter of tm<br>&nbsp;&nbsp;module.<br><br>&gt; How have you guys implemented this? I would also need other SEMS plug-ins<br>&gt; like conference, so I would also need to differentiate those requests also.
<br>&gt; Could I rewerite the Request-URI like voicemail@mediaserver? Can the<br>&gt; voicemail still find out who was I actually trying to call to since the URI<br>&gt; is rewritten?<br><br>&nbsp;&nbsp;You can add a prefix to the request-uri and then remove it again.
<br><br>&gt; Is there difference in implementing the media server with asterisk? Wouldn't<br>&gt; I need then two different databases? One in asterisk and one in SER.<br><br>&nbsp;&nbsp;It depends on what are you using the database for. SER is quite
<br>&nbsp;&nbsp;configurable so I guess you could twist it to use a common (or at<br>&nbsp;&nbsp;least similar) database, but I have never tried that nor I haven't<br>&nbsp;&nbsp;seen anyone having such setup.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;Jan.<br><br></blockquote></div>
<br><br clear="all"><br>-- <br>Teemu Harju<br><a href="http://www.teemuharju.net">http://www.teemuharju.net</a>