[asterisk-users] Re: DUNDi configuration problem

Bruce Reeves asterisk at nortex-networks.com
Wed May 23 05:50:48 MST 2007


Tim,

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.

Here is the IAX2 peer config.
[priv]
type=friend ;I think that you can use peer only, but I used friend
dbsecret=dundi/secret
context=inside

I hope that helps a little.


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



-- 
Bruce Reeves
Nortex Networks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070523/1fd27e03/attachment.htm


More information about the asterisk-users mailing list