<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Ken,</div><div><br></div>Well basically, in the TDM world, you usually order one or several lines.<div>One analog line can't support DIDs (except in the US where they have/used to have a such product).</div><div>Nowadays, as you know, ISDN is the right choice when you need DIDs.</div><div>Physically, a DID on ISDN is just that a different number (DNIS) is sent in the called number field of the Q931 packet, as 4 digits or the whole number, depending on the specific ISDN protocol used and on the telco.</div><div><br></div><div>In the SIP world, there is only one protocol: SIP.</div><div>Even if sometimes you feel that there are different type of SIP accounts, they are actually all the same.</div><div>You can have a SIP account allowing 1 call with one number (generally, they don't allow to send a custom outbound caller-id).</div><div>But a SIP account can also be used to provide a SIP trunk allowing 200 calls and 2000 DIDs (on those, you can obviously send a custom outbound caller-id, but it can still be restricted to be one of your 2000 DIDs, or not restricted. It depends on the kind of contract you have with the carrier, wholesale vs business).</div><div>Account, trunk, what's the difference ?</div><div>Technically, there is none, but let's say a trunk is generally a SIP account (but it can also be a raw SIP trunk without authentication) with several DIDs.</div><div>If you only have one DID on the SIP account, it's not really meaningful to call that a trunk.</div><div>On a SIP trunk, a DID is just sent as the dialed number, generally in the INVITE To and/or Request-Line fields.</div><div>It's pretty much the same than ISDN.</div><div>The main differences are:</div><div>-in SIP, a DID is far more decorrelated from the physical media (you can have a SIP account without any DID, so you won't be reachable)</div><div>-in SIP, a DID could be anything, not just a phone number, but because most of the traffic comes from the PSTN and regular phones, we mainly use digits at the moment.</div><div><br></div><div>So in SIP, when you have 6 SIP accounts, each other with a different DID, you may replace that with one SIP account (SIP trunk) with the 6 DIDs routed on it by the carrier.</div><div>I think it's easier to manage.</div><div>Then in FreeSWITCH, as you won't be able to distinguish by the SIP account receiving the call (you can bind a SIP account to a specific context/dialplan in FS), you'll have to distinguish by the called-number in a common dialplan, which is very easy.</div><div><br></div><div>I hope I did not confuse you more :)</div><div><br></div><div><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#1C00FF">David Ponzone &nbsp;</font><font class="Apple-style-span" color="#000000" size="3"><span class="Apple-style-span" style="font-size: 12px; ">Direction Technique</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">email: <a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a></span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: &nbsp; &nbsp; &nbsp;01 74 03 18 97</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">gsm: &nbsp; 06 66 98 76 34</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><br></font></div><div><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">Service Client<span class="Apple-converted-space">&nbsp;</span></font><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#FF0000">IP</font></font><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">eva</font></div><div><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'"><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; "><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: &nbsp; &nbsp; &nbsp;0811 46 26 26</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'" size="3"><span class="Apple-style-span" style="font-size: 13px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span style="text-decoration: underline; "><a href="BLOCKED::http://www.ipeva.fr/">www.ipeva.fr</a></span><span style="color: rgb(101, 104, 149); ">&nbsp; -&nbsp; &nbsp;<span style="color: rgb(0, 34, 243); text-decoration: underline; "><a href="BLOCKED::http://www.ipeva-studio.com/">www.ipeva-studio.com</a></span></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span class="Apple-style-span" style="text-decoration: underline; "><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span class="Apple-style-span"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-align: justify; font: normal normal normal 10px/normal Arial; color: rgb(192, 192, 192); "><i>Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération.&nbsp;</i><b><i>IPeva</i></b><i>&nbsp;décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.</i></div><div style="text-decoration: underline; text-align: justify; "><font class="Apple-style-span" color="#C0C0C0"><i><br></i></font></div></span></div></span></font></div></span></font></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"> </div><br><div><div>Le 25/08/2010 à 11:46, Ken Gillett a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>On 24 Aug 2010, at 15:26, Tim St. Pierre wrote:<br><br><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">This can be very important when each SIP account represents a different company/business. Although one person is dealing with all those businesses, when an outgoing call is made it is imperative that the correct SIP account is used to make that call so that the recipient is correctly informed who is making the call.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">So really, your issue is with presented identity in terms of caller ID name and number then?<br></blockquote><br>Yes, that's about it. <br><br><blockquote type="cite">Can you set outgoing caller ID name nad number on the 6 provider accounts?<br></blockquote><br>Only the name. Each account has the outgoing number set by the provider (not unreasonable).<br><br><blockquote type="cite">If you can, you may have some better options.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On our platform, we use the dialplan to route all calls to the most appropriate provider, based on<br></blockquote><blockquote type="cite">the number that was dialed, and what the rates are for each carrier in a given area (least cost<br></blockquote><blockquote type="cite">routing), although reliability in certain areas is also factored.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Each extension registers with a single registration, and has it's own internal caller ID name and<br></blockquote><blockquote type="cite">number (the user's name and extension).<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">We use the Aastra phones, and built a little XML app that lets the user pick from a list of possible<br></blockquote><blockquote type="cite">caller ID name and number combinations. &nbsp;This tool updates the database value that will be used for<br></blockquote><blockquote type="cite">effective_caller_id name and number. &nbsp;With this setup, one user (one SIP registration) can have an<br></blockquote><blockquote type="cite">unlimited number "businesses". &nbsp;For incoming calls, we prefix the caller ID name with a short string<br></blockquote><blockquote type="cite">that identifies the incoming number or "business". &nbsp;Sometimes, a combination of registrations and<br></blockquote><blockquote type="cite">the selector tool is best. &nbsp;If you don't have XML browsers on the phone, you could just as easily do<br></blockquote><blockquote type="cite">this with an IVR tool, a web page, or with prefixes. &nbsp;Whatever is easiest. &nbsp;You can have more than<br></blockquote><blockquote type="cite">one option.<br></blockquote><br>This is all helpful info, thanks.<br><br><blockquote type="cite">If your upstream providers can give you DID numbers, you can have more than one business on the same<br></blockquote><blockquote type="cite">provider account, which is a lot easier to manage (one gateway entry, but lots of "lines").<br></blockquote><br>I still don't fully grasp DID with VOIP. Some years ago I had a company with a call centre that used a PBX over ISDN30 and I did a lot of the configuration myself so I am familiar with most PBX concepts. But not all of it is directly applicable to VOIP which itself can be handled in many different ways. So what I am trying to do is apply my previous PBX knowledge to what I now know about SIP and VOIP in general and in particular how I can best make use of FreeSwitch to do what I want.<br><br>So where does DID fit into the VOIP world? Having separate SIP accounts, one for each 'business', each with its own number seems to provide all that DID did (I had to say that:-), but I know my (and other) provider offers 'aliases' which can be used for DID, but I don't fully grasp how this is different from simply different accounts. Maybe in SIP terms it isn't. But if someone cares to enlighten me on this issue, I'm all ears.<br><br><blockquote type="cite">This is getting into serious PBX stuff though, and I get the impression you don't really want a PBX.<br></blockquote><blockquote type="cite">Or do you?<br></blockquote><br><br>Oh yes indeed. But I am still in a learning process and asking questions is how I learn. My own current requirements are relatively simple, but I need to understand the greater picture and be able to make it work for more complex scenarios. First step though is to configure it for my own use.<br><br><br><br>Ken G i l l e t t<br><br>_/_/_/_/_/_/_/_/<br><br><br><br><br>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></div></blockquote></div><br></div></body></html>