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 <<a href="mailto:jan@iptel.org">jan@iptel.org</a>>:</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>> Hi,<br>><br>> I'm implementing following kind of system. I have two separate machines<br>> where I've installed SER on. The other machine has also SEMS installed. Like
<br>> you probably already figured out other is used as a plain proxy/registrar<br>> and the other as a sort of UAS serving voicemail, conference etc with the<br>> help of SEMS.<br>><br>> Now my question is, what is the best way to forward messages from
<br>> proxy/registrar to the media server? I've done the forwarding according to<br>> the examples I've found and it uses rewritehostport() to forward messages to<br>> voicemail. Voicemail needs to get the email address from mysql database
<br>> located in proxy. This is no problem connecting to the database, but isn't<br>> it so that when I've rewritten the Request-URI that the voicemail cannot<br>> find the email from database beacause it's rewritten and has the media
<br>> servers host part in the URI.<br><br> SER can obtain the email address from database and pass it to SEMS<br> along with the request. This would be typically done on the SER<br> instance that talks to SEMS (the one running on SEMS machine). You can
<br> tune what AVPs will be passed to SEMS using tw_append parameter of tm<br> module.<br><br>> How have you guys implemented this? I would also need other SEMS plug-ins<br>> like conference, so I would also need to differentiate those requests also.
<br>> Could I rewerite the Request-URI like voicemail@mediaserver? Can the<br>> voicemail still find out who was I actually trying to call to since the URI<br>> is rewritten?<br><br> You can add a prefix to the request-uri and then remove it again.
<br><br>> Is there difference in implementing the media server with asterisk? Wouldn't<br>> I need then two different databases? One in asterisk and one in SER.<br><br> It depends on what are you using the database for. SER is quite
<br> configurable so I guess you could twist it to use a common (or at<br> least similar) database, but I have never tried that nor I haven't<br> seen anyone having such setup.<br><br> 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>