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 "priv" 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 => dundi-local,0,IAX2,priv:${SECRET}@192.168.0.231/${NUMBER},nopartial. The part that reads "priv:${SECRET}@192.168.0.231/${NUMBER}" 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> <<a href="mailto:tverscheure@gmail.com">tverscheure@gmail.com</a>> 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 "Unable to<br>create channel of type 'SIP' (has no route to destination)<br><br>How do I setup a SIP trunk? But I think that's not important because I
<br>am on the same subnet and I don't have to make outbound calls...<br><br>It's all very vague I think...<br>Thanks again<br><br><br>greetz<br><br>2007/5/23, Remco Post <<a href="mailto:remco@pipsworld.nl">remco@pipsworld.nl
</a>>:<br>> Tim Verscheure wrote:<br>> > Does this even work?<br>> ><br>> > exten => 5010,1,Dial(SIP/5010@priv)<br>> ><br>><br>> if priv is a sip account it does.... Yes, I guess you are on the right
<br>> track.<br>><br>> > It keeps saying CHANUNAVAIL...<br>> ><br>> ><br>> > greetz<br>> ><br>> > 2007/5/22, Tim Verscheure <<a href="mailto:tverscheure@gmail.com">tverscheure@gmail.com
</a>>:<br>> >> ok so now I changed "ext-local" to "dundi-ext" and I created this<br>> >> context at the bottom of the extensions file. This is now the case.<br>> >><br>> >> [dundi-priv-canonical]
<br>> >> ; Direct numbers<br>> >><br>> >> exten => 5010,1,NooP(DUNDI LOOKUP 5010)<br>> >> exten => 5011,1,NooP(DUNDI LOOKUP 5011)<br>> >><br>> >> exten => _60XX,1,Goto(dundi-ext,${EXTEN},1)
<br>> >><br>> >> [dundi-priv-customers]<br>> >> ; If you are an ITSP or Reseller, list your customers here.<br>> >> exten => _60XX,1,Goto(dundi-ext,${EXTEN},1)<br>> >><br>> >> [dundi-priv-via-pstn]
<br>> >> ; If you are freely delivering calls to the PSTN, list them here<br>> >><br>> >> [dundi-priv-local]<br>> >> include => dundi-priv-canonical<br>> >> include => dundi-priv-customers
<br>> >> include => dundi-priv-via-pstn<br>> >><br>> >> exten => 5010,1,Dial(SIP/5010)<br>> >> exten => 5011,1,Dial(SIP/5011)<br>> >><br>> >> [dundi-priv-switch]
<br>> >> ; Just a wrapper for the switch<br>> >> switch => DUNDi/priv<br>> >><br>> >> [dundi-priv-lookup]<br>> >> include => dundi-priv-local<br>> >> include => dundi-priv-switch
<br>> >><br>> >> [macro-dundi-priv]<br>> >> exten => s,1,Goto(${ARG1},1)<br>> >> include => dundi-priv-lookup<br>> >><br>> >> [trydundi]<br>> >> exten => _.,1,Macro(dundi-priv,${EXTEN})
<br>> >> exten => _.,2,Congestion<br>> >><br>> >><br>> >> This is the dundi-ext at the bottom. In there I put this line:<br>> >> [dundi-ext]<br>> >> exten => _60XX,1,Dial(
SIP/${EXTEN}@priv)<br>> >><br>> >> I made this myself, I think that if I get an incoming call from for<br>> >> example 6010, the person would be dialing SIP/6000@priv, right?<br>> >><br>
> >> this is the output:<br>> >> *CLI> -- Executing [5011@default:1] Goto("SIP/6010-0820cdc8",<br>> >> "dundi-ext|5011|1") in new stack<br>> >> -- Goto (dundi-ext,5011,1)
<br>> >> -- Executing [5011@dundi-ext:1] Dial("SIP/6010-0820cdc8",<br>> >> "SIP/5011@priv") in new stack<br>> >> [May 22 14:36:18] WARNING[4520]: chan_sip.c:2738 create_addr: No such
<br>> >> host: priv<br>> >> [May 22 14:36:18] WARNING[4520]: app_dial.c:1099 dial_exec_full:<br>> >> Unable to create channel of type 'SIP' (cause 3 - No route to<br>> >> destination)
<br>> >> == Everyone is busy/congested at this time (1:0/0/1)<br>> >> == Auto fallthrough, channel 'SIP/6010-0820cdc8' status is<br>> >> 'CHANUNAVAIL'<br>> >><br>> >>
<br>> >> 2007/5/21, Remco Post <<a href="mailto:remco@pipsworld.nl">remco@pipsworld.nl</a>>:<br>> >> > Tim Verscheure wrote:<br>> >> > > 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>> >> > > 6010 on the <a href="http://192.168.1.69">192.168.1.69</a> machine my X-lite softphone says, call<br>> >> > > declined<br>
> >> > ><br>> >> > > this is the output:<br>> >> > > -- Executing [6010@default:1] Goto("SIP/5011-081da508",<br>> >> > > "ext-local|6010|1") in new stack
<br>> >> > > -- Goto (ext-local,6010,1)<br>> >> > > [May 21 15:32:46] WARNING[8939]: pbx.c:2450 __ast_pbx_run: Channel<br>> >> > > 'SIP/5011-081da508' sent into invalid extension '6010' in context
<br>> >> > > 'ext-local', but no invalid handler<br>> >> > ><br>> >> ><br>> >> > so, is there an extension 6010 in you context ext-local? Probably<br>> >> not ;-)
<br>> >> ><br>> >> > > I'll add my extension file so you can see it. greetz<br>> >><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>> > <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>><br>><br>> --<br>> Met vriendelijke groeten,<br>><br>> Remco Post<br>><br>> SARA - Reken- en Netwerkdiensten <a href="http://www.sara.nl">
http://www.sara.nl</a><br>> High Performance Computing Tel. +31 20 592 3000 Fax. +31 20 668 3167<br>> PGP Key fingerprint = 6367 DFE9 5CBC 0737 7D16 B3F6 048A 02BF DC93 94EC<br>><br>> "I really didn't foresee the Internet. But then, neither did the
<br>> computer industry. Not that that tells us very much of course - the<br>> computer industry didn't even foresee that the century was going to<br>> end." -- Douglas Adams<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>> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>><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> <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