<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>There are plenty of ways to deal with
routing calls within openser. You can use avp’s to lookup records from
sql and then append branch to fork calls. As long as all of your end-points are
sip-ua’s and not pstn gw parallel forking should be ok but if you try to
forward one of them to pstn gw things can get tricky. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Basically you have a entries for DID which
you have assigned and do a avp_load and/or avp_check to see if it is a DID you
own and how to route it. Also, you could use aliases I believe.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
users-bounces@openser.org [mailto:users-bounces@openser.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>M D<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, July 26, 2006
10:13 AM<br>
<b><span style='font-weight:bold'>To:</span></b> users@openser.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> [Users] OpenSER/Asterisk
architecture</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Hi<br>
<br>
We're looking at using OpenSER as a front-end to the Asterisk boxes we're using
to provide a SIP VoIP service to distribute load and handle the RTP streams
better. Our customers (who're all over the Internet) use the service primarily
for calls to/from the PSTN with little, if any, SIP-to-SIP traffic. Having said
that, we're providing PBX-like functions to some customers: voicemail, call
groups, IVRs etc which we need to retain. Our PSTN connection is provided over
SIP by a couple of different telcos; we just send/receive INVITES to/from them.
<br>
<br>
How're people on this list implementing this kind of platform? OpenSER in front
of Asterisk, Asterisk PSTN gateway? Something else? In particular, I'm having
trouble seeing how DID calls will work. Let's take the following DIDs as
examples and assume that inbound calls are sent to OpenSER: <br>
<br>
442071111111: straight mapping to a singe SIP account<br>
442072222222: a group of 3 SIP accounts to ring simultaneously<br>
<br>
The first case would work with users registering to either OpenSER or Asterisk,
providing they shared a user database. In the second case, we would presumably
have to forward the call from OpenSER to an Asterisk box to handle calling the
3 users, dealing with voicemail, etc. <br>
<br>
I suppose the crux of my problem is that I can't see how to get OpenSER to
route calls based on the dialled number. Any ideas? I could use an external
script and exec_dset but that seems clumsy; surely someone's done this before?
This whole thing's a solved problem, right? <br>
<br>
How about outgoing calls? If a user puts a call through OpenSER to the PSTN it
should be easy to check the usrloc DB to control access and allow the call out.
Sound good?<br>
<br>
Any hints on how to take this forward would be greatly appreciated. Once we get
a plan in place the implementation should be reasonably straightforward (I
hope!) <br>
<br>
Cheers,<br>
<br>
MD<o:p></o:p></span></font></p>
</div>
</body>
</html>