<div dir="ltr"><div><br></div><div class="gmail_extra"><div class="gmail_quote">On 6 October 2014 15:31, Matthew Jordan <span dir="ltr"><<a href="mailto:mjordan@digium.com" target="_blank">mjordan@digium.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On Sun, Oct 5, 2014 at 11:33 AM, Dan Ballance <<a href="mailto:tzewang.dorje@gmail.com">tzewang.dorje@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> Was this question not appropriate for asterisk-users maybe? Should I post in<br>
> dev instead?<br>
><br>
<br>
</span>No, I think the question is appropriate for this list. The lack of<br>
immediate response probably had more to do with asking it on a Friday<br>
than anything else :-)<br></blockquote><div><br></div>Thanks ever so much for the informative response Matt. And apologies about the bump over a weekend. I was working over the weekend and forget other people have a better work-life balance than me! Your input is greatly appreciated :)<div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class=""><br>
><br>
> On 4 Oct 2014 15:48, "Dan Ballance" <<a href="mailto:tzewang.dorje@gmail.com">tzewang.dorje@gmail.com</a>> wrote:<br>
>><br>
>> Hi guys,<br>
>><br>
>> I'm building a PoC Asterisk 12 cluster based on a number of guides I've<br>
>> found on the net. The basic concept is using ARA in conjunction with DUNDi.<br>
>> I have set up ARA with pjsip according to this excellent guide here:<br>
>><br>
>> <a href="https://wiki.asterisk.org/wiki/display/AST/Setting+up+PJSIP+Realtime" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Setting+up+PJSIP+Realtime</a><br>
>><br>
>> This is working nicely, so now I am turning my attention to DUNDi, as per<br>
>> this guide here:<br>
>><br>
>><br>
>> <a href="http://www.ntegratedsolutions.com/wp-content/uploads/2012/07/Using_DUNDi_with_a_Cluster_of_Asterisk_Servers.pdf" target="_blank">http://www.ntegratedsolutions.com/wp-content/uploads/2012/07/Using_DUNDi_with_a_Cluster_of_Asterisk_Servers.pdf</a><br>
>><br>
>> Its seems a really neat solution and I'm keen to implement something<br>
>> similar, however I believe it was written before the pjsip channel driver<br>
>> and I've hit a potential issue I think. The guides for configuring DUNDi<br>
>> seem to suggest using regcontext in sip.conf:<br>
>><br>
>> [general]<br>
>><br>
>> regcontext=sipregistration<br>
<br>
</span>You don't have to use 'regcontext' in order to have the equivalent<br>
functionality. regcontext is an automatic mechanism to create a NoOp<br>
extension matching each peer's name in a particular context. If you<br>
wanted the same functionality for DUNDi, you could create the same<br>
extensions for each endpoint in pjsip.conf.<br></blockquote><div><br></div><div>I see. I suppose the nice thing about regcontext in combination with the realtime architecture is it means you don't have to hard code this stuff. I guess my next step then is to look at creating these NoOp extensions via the database. </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class=""><br>
>> However I can't seem to find an equivalent declaration for pjsip.conf. So<br>
>> my questions are:<br>
>><br>
>> 1) Is there a way to achieve the same functionality with pjsip?<br>
<br>
</span>Not automatically, no. If you wanted DUNDi to use a context with<br>
extensions named the same as the endpoints for DUNDi lookups, you<br>
would need to create them yourself.<br>
<span class=""><br>
>> 2) Is DUNDi still being maintained and used? If so, then how should it be<br>
>> configured with modern versions of Asterisk?<br>
<br>
</span>DUNDi hasn't changed much; hence, the configuration of things for<br>
DUNDi is generally the same between recent versions of Asterisk. The<br>
DUNDi specific portions of configuration would also be similar between<br>
chan_sip and chan_pjsip.<br>
<br>
As far as 'maintained and used':<br>
* DUNDi (which is provided by the pbx_dundi module) is in extended<br>
support. That means most development activities for it come from the<br>
Asterisk community as a whole. There is not a lot of active<br>
development that occurs in pbx_dundi, although patches for bugs are<br>
occasionally merged for it.<br>
* DUNDi is used by a number of community members, and has some<br>
interesting applications in certain setups. I don't have any hard<br>
numbers on how many people use it, other than it comes up from time to<br>
time in the issue tracker (which is about the extent of my visibility<br>
for usage).<br>
<span class=""><br>
>> 3) If DUNDi is not really used in modern set-ups, then what are my<br>
>> alternatives?<br>
>><br>
>> I really have searched and read and Googled everything I can but I can't<br>
>> seem to find anything on configuring DUNDi with pjsip. Hoping one of you<br>
>> people can point me in the right direction!<br>
<br>
</span>You may be the first person to try this out!<br></blockquote><div><br></div><div> Thanks again for this info Matt. Glad to hear that DUNDi is still maintained. We already have OpenSIPS doing SIP signalling on our network and I'm trying to avoid needing to add more complexity to that set-up. I really love the idea of clustered peer-to-peer asterisk instances sharing registration information with one another - this seems a really neat design to me.</div><div><br></div><div>If I manage to get this proof of concept running I'll blog about it somewhere so others can learn from my experience. If we actually go ahead and deploy Asterisk using this technique in production then I will make sure we help with the maintenance where we can,</div><div><br></div><div>all the best,</div><div><br></div><div>Dan.</div><div><br></div></div></div></div>