Tim,<br><br>I have not used DUNDi with SIP, only IAX, but here is what I can tell you about my config. I have an IAX2 peer named priv, which you should have a SIP peer like that. When DUNDi does a lookup against server1 from server2 for the &quot;priv&quot; mappings and finds a match it creates a a dial string for server2 to use. That string is created by the commands in the mapping in 
dundi.conf. In my case it looks like this, priv =&gt; dundi-local,0,IAX2,priv:${SECRET}@192.168.0.231/${NUMBER},nopartial. The part that reads &quot;priv:${SECRET}@192.168.0.231/${NUMBER}&quot; is used to tell server2 to Dial peer priv with the secret that is generated by my key at the server1 ip address and then the local extension to reach on server1 is passed. At that point server2 dials the string and server1 accepts the call.
<br><br>Here is the IAX2 peer config.<br>[priv]<br>type=friend ;I think that you can use peer only, but I used friend<br>dbsecret=dundi/secret<br>context=inside<br><br>I hope that helps a little.<br><br><br><div><span class="gmail_quote">
On 5/23/07, <b class="gmail_sendername">Tim Verscheure</b> &lt;<a href="mailto:tverscheure@gmail.com">tverscheure@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hmm, what am I doing wrong then... Because it says it &quot;Unable to<br>create channel of type &#39;SIP&#39; (has no route to destination)<br><br>How do I setup a SIP trunk? But I think that&#39;s not important because I
<br>am on the same subnet and I don&#39;t have to make outbound calls...<br><br>It&#39;s all very vague I think...<br>Thanks again<br><br><br>greetz<br><br>2007/5/23, Remco Post &lt;<a href="mailto:remco@pipsworld.nl">remco@pipsworld.nl
</a>&gt;:<br>&gt; Tim Verscheure wrote:<br>&gt; &gt; Does this even work?<br>&gt; &gt;<br>&gt; &gt; exten =&gt; 5010,1,Dial(SIP/5010@priv)<br>&gt; &gt;<br>&gt;<br>&gt; if priv is a sip account it does.... Yes, I guess you are on the right
<br>&gt; track.<br>&gt;<br>&gt; &gt; It keeps saying CHANUNAVAIL...<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; greetz<br>&gt; &gt;<br>&gt; &gt; 2007/5/22, Tim Verscheure &lt;<a href="mailto:tverscheure@gmail.com">tverscheure@gmail.com
</a>&gt;:<br>&gt; &gt;&gt; ok so now I changed &quot;ext-local&quot; to &quot;dundi-ext&quot; and I created this<br>&gt; &gt;&gt; context at the bottom of the extensions file. This is now the case.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; [dundi-priv-canonical]
<br>&gt; &gt;&gt; ; Direct numbers<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; exten =&gt; 5010,1,NooP(DUNDI LOOKUP 5010)<br>&gt; &gt;&gt; exten =&gt; 5011,1,NooP(DUNDI LOOKUP 5011)<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; exten =&gt; _60XX,1,Goto(dundi-ext,${EXTEN},1)
<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; [dundi-priv-customers]<br>&gt; &gt;&gt; ; If you are an ITSP or Reseller, list your customers here.<br>&gt; &gt;&gt; exten =&gt; _60XX,1,Goto(dundi-ext,${EXTEN},1)<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; [dundi-priv-via-pstn]
<br>&gt; &gt;&gt; ; If you are freely delivering calls to the PSTN, list them here<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; [dundi-priv-local]<br>&gt; &gt;&gt; include =&gt; dundi-priv-canonical<br>&gt; &gt;&gt; include =&gt; dundi-priv-customers
<br>&gt; &gt;&gt; include =&gt; dundi-priv-via-pstn<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; exten =&gt; 5010,1,Dial(SIP/5010)<br>&gt; &gt;&gt; exten =&gt; 5011,1,Dial(SIP/5011)<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; [dundi-priv-switch]
<br>&gt; &gt;&gt; ; Just a wrapper for the switch<br>&gt; &gt;&gt; switch =&gt; DUNDi/priv<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; [dundi-priv-lookup]<br>&gt; &gt;&gt; include =&gt; dundi-priv-local<br>&gt; &gt;&gt; include =&gt; dundi-priv-switch
<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; [macro-dundi-priv]<br>&gt; &gt;&gt; exten =&gt; s,1,Goto(${ARG1},1)<br>&gt; &gt;&gt; include =&gt; dundi-priv-lookup<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; [trydundi]<br>&gt; &gt;&gt; exten =&gt; _.,1,Macro(dundi-priv,${EXTEN})
<br>&gt; &gt;&gt; exten =&gt; _.,2,Congestion<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; This is the dundi-ext at the bottom. In there I put this line:<br>&gt; &gt;&gt; [dundi-ext]<br>&gt; &gt;&gt; exten =&gt; _60XX,1,Dial(
SIP/${EXTEN}@priv)<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; I made this myself, I think that if I get an incoming call from for<br>&gt; &gt;&gt; example 6010, the person would be dialing SIP/6000@priv, right?<br>&gt; &gt;&gt;<br>
&gt; &gt;&gt; this is the output:<br>&gt; &gt;&gt; *CLI&gt;&nbsp;&nbsp;&nbsp;&nbsp; -- Executing [5011@default:1] Goto(&quot;SIP/6010-0820cdc8&quot;,<br>&gt; &gt;&gt; &quot;dundi-ext|5011|1&quot;) in new stack<br>&gt; &gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; -- Goto (dundi-ext,5011,1)
<br>&gt; &gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; -- Executing [5011@dundi-ext:1] Dial(&quot;SIP/6010-0820cdc8&quot;,<br>&gt; &gt;&gt; &quot;SIP/5011@priv&quot;) in new stack<br>&gt; &gt;&gt; [May 22 14:36:18] WARNING[4520]: chan_sip.c:2738 create_addr: No such
<br>&gt; &gt;&gt; host: priv<br>&gt; &gt;&gt; [May 22 14:36:18] WARNING[4520]: app_dial.c:1099 dial_exec_full:<br>&gt; &gt;&gt; Unable to create channel of type &#39;SIP&#39; (cause 3 - No route to<br>&gt; &gt;&gt; destination)
<br>&gt; &gt;&gt;&nbsp;&nbsp; == Everyone is busy/congested at this time (1:0/0/1)<br>&gt; &gt;&gt;&nbsp;&nbsp; == Auto fallthrough, channel &#39;SIP/6010-0820cdc8&#39; status is<br>&gt; &gt;&gt; &#39;CHANUNAVAIL&#39;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;
<br>&gt; &gt;&gt; 2007/5/21, Remco Post &lt;<a href="mailto:remco@pipsworld.nl">remco@pipsworld.nl</a>&gt;:<br>&gt; &gt;&gt; &gt; Tim Verscheure wrote:<br>&gt; &gt;&gt; &gt; &gt; Now I get this... If I call from 5011 on the 
<a href="http://192.168.1.103">192.168.1.103</a> machine to<br>&gt; &gt;&gt; &gt; &gt; 6010 on the <a href="http://192.168.1.69">192.168.1.69</a> machine my X-lite softphone says, call<br>&gt; &gt;&gt; &gt; &gt; declined<br>
&gt; &gt;&gt; &gt; &gt;<br>&gt; &gt;&gt; &gt; &gt; this is the output:<br>&gt; &gt;&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;-- Executing [6010@default:1] Goto(&quot;SIP/5011-081da508&quot;,<br>&gt; &gt;&gt; &gt; &gt; &quot;ext-local|6010|1&quot;) in new stack
<br>&gt; &gt;&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;-- Goto (ext-local,6010,1)<br>&gt; &gt;&gt; &gt; &gt; [May 21 15:32:46] WARNING[8939]: pbx.c:2450 __ast_pbx_run: Channel<br>&gt; &gt;&gt; &gt; &gt; &#39;SIP/5011-081da508&#39; sent into invalid extension &#39;6010&#39; in context
<br>&gt; &gt;&gt; &gt; &gt; &#39;ext-local&#39;, but no invalid handler<br>&gt; &gt;&gt; &gt; &gt;<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; so, is there an extension 6010 in you context ext-local? Probably<br>&gt; &gt;&gt; not ;-)
<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; &gt; I&#39;ll add my extension file so you can see it. greetz<br>&gt; &gt;&gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; --Bandwidth and Colocation provided by 
<a href="http://Easynews.com">Easynews.com</a> --<br>&gt; &gt;<br>&gt; &gt; asterisk-users mailing list<br>&gt; &gt; To UNSUBSCRIBE or update options visit:<br>&gt; &gt;&nbsp;&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>&gt;<br>&gt;<br>&gt; --<br>&gt; Met vriendelijke groeten,<br>&gt;<br>&gt; Remco Post<br>&gt;<br>&gt; SARA - Reken- en Netwerkdiensten&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.sara.nl">
http://www.sara.nl</a><br>&gt; High Performance Computing&nbsp;&nbsp;Tel. +31 20 592 3000&nbsp;&nbsp;&nbsp;&nbsp;Fax. +31 20 668 3167<br>&gt; PGP Key fingerprint = 6367 DFE9 5CBC 0737 7D16&nbsp;&nbsp;B3F6 048A 02BF DC93 94EC<br>&gt;<br>&gt; &quot;I really didn&#39;t foresee the Internet. But then, neither did the
<br>&gt; computer industry. Not that that tells us very much of course - the<br>&gt; computer industry didn&#39;t even foresee that the century was going to<br>&gt; end.&quot; -- Douglas Adams<br>&gt; _______________________________________________
<br>&gt; --Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br>&gt;<br>&gt; asterisk-users mailing list<br>&gt; To UNSUBSCRIBE or update options visit:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>&gt;<br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br><br>asterisk-users mailing list
<br>To UNSUBSCRIBE or update options visit:<br>&nbsp;&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><br>
-- <br>Bruce Reeves<br>Nortex Networks