[asterisk-users] Re: DUNDi with SIP

Douglas Garstang dgarstang at oneeighty.com
Wed Aug 2 15:14:02 MST 2006


So... given then that there's multiple systems in the DUNDI domain (obviously), that means there's going to be multiple hosts, and therefore I'll need to have one sip user for each host, and one dundi entry for each user as well... Bleck.

> -----Original Message-----
> From: Watkins, Bradley [mailto:Bradley.Watkins at compuware.com]
> Sent: Wednesday, August 02, 2006 4:07 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: RE: [asterisk-users] Re: DUNDi with SIP
> 
> 
> The way to make this work is to define a sip user/peer with the IP
> address in it, then have your dundi.conf entry look like:
> 
> 180netsip => global_dundi_local,1,SIP/peername/${NUMBER},nopartial
> 
> As far as I can tell from the code, this is the only way to 
> make it work
> properly based on the way the string sent to the channel 
> driver is being
> parsed.
> 
> - Brad
> 
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Douglas
> Garstang
> Sent: Wednesday, August 02, 2006 5:59 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: RE: [asterisk-users] Re: DUNDi with SIP
> 
> > -----Original Message-----
> > From: Tony Mountifield [mailto:tony at softins.clara.co.uk]
> > Sent: Wednesday, August 02, 2006 3:49 PM
> > To: asterisk-users at lists.digium.com
> > Subject: [asterisk-users] Re: DUNDi with SIP
> > 
> > 
> > In article
> > <645FEC31A18FE54A8721500CDD55A7B6035D09C5 at mail.oneeighty.com>,
> > Douglas Garstang <dgarstang at oneeighty.com> wrote:
> > > > -----Original Message-----
> > > > From: Tony Mountifield [mailto:tony at softins.clara.co.uk]
> > > > Sent: Wednesday, August 02, 2006 2:01 PM
> > > > To: asterisk-users at lists.digium.com
> > > > Subject: [asterisk-users] Re: DUNDi with SIP
> > > > 
> > > > 
> > > > In article
> > > > <645FEC31A18FE54A8721500CDD55A7B6035D09C3 at mail.oneeighty.com>,
> > > > Douglas Garstang <dgarstang at oneeighty.com> wrote:
> > > > > I've trying to use DUNDi with SIP to see if it works around
> > > > some limitations of IAX2.
> > > > > 
> > > > > I do a DUNDi lookup, get my SIP path, and try to dial it. 
> > > > Asterisk immediately says 'No such
> > > > > host', eventhough that's the path is just returned!
> > > > > 
> > > > > [Aug  2 13:07:05]   == Spawn extension (global_vmdeposit, 
> > > > u9220371, 3) exited non-zero on
> > > > > 'SIP/3254101-eb7d'
> > > > > [Aug  2 13:07:13]     -- Executing NoOp("SIP/3254101-6373", 
> > > > "*** OnNet originated call
> > > > > "Chocolate Chip" <3254101> -> 9220371") in new stack
> > > > > [Aug  2 13:07:13]     -- Executing AGI("SIP/3254101-6373", 
> > > > "ipt/originator.py") in new stack
> > > > > [Aug  2 13:07:13]     -- Launched AGI Script 
> > > > /var/lib/asterisk/agi-bin/ipt/originator.py
> > > > > [Aug  2 13:07:13]     -- AGI Script Executing Application: 
> > > > (SetAccount) Options: (9220371)
> > > > > [Aug  2 13:07:13]     -- AGI Script Executing Application: 
> > > > (ChanIsAvail) Options: (SIP/9220371)
> > > > > [Aug  2 13:07:14]     -- AGI Script Executing Application: 
> > > > (Dial) Options:
> > > > > (SIP/dundisip:dU7wMVIkX00hbS5OFaZBDQ at xxx.yyy.142.163/9220371)
> > > > > [Aug  2 13:07:14] WARNING[5429]: chan_sip.c:1980
> > > > create_addr: No such host: xxx.yyy.142.163/9220371
> > > > 
> > > > Try specifying the SIP argument as:
> > > > 
> > > > SIP/dundisip:dU7wMVIkX00hbS5OFaZBDQ at 9220371@xxx.yyy.142.163
> > > > 
> > > > See the following line in the sample extensions.conf as
> > an example:
> > > > 
> > > > ;exten =>
> > > > _42X.,1,Dial(SIP/user:passwd@${EXTEN:2}@otherprovider.net,30,rT)
> > > 
> > > Tony... it's DUNDi....
> > 
> > OK, I know nothing about DUNDi. I was only highlighting 
> what appeared 
> > to be invalid or at least ambiguous syntax in the SIP channel 
> > requested.
> > SIP appears not to like SIP/user:pass at host/number, but 
> instead wants 
> > SIP/user:pass at number@host
> > 
> > Unless you can set up a sip.conf friend entry [xxxx] and then use 
> > SIP/xxxx/number
> > 
> > Hope this helps. If not, oh well.
> 
> Tony, I was able to fiddle with dundi.conf, and am now getting a SIP
> path in the format SIP/user:password at number@host:
> 
> *CLI> dundi lookup 9220370 at 180netsip
>   1.     1 SIP/dundisip:password at 9220370@xxx.yyy.142.163 (EXISTS)
>      from 00:14:22:1e:2a:d0, expires in 0 s DUNDi lookup completed in
> 171 ms
> 
> However, when I try to dial this, I am still getting:
> 
> [Aug  2 15:57:35] WARNING[9916]: chan_sip.c:1980 create_addr: No such
> host: 9220370 at xxx.yyy.142.163 [Aug  2 15:57:35] NOTICE[9916]:
> app_dial.c:1040 dial_exec_full: Unable to create channel of type 'SIP'
> (cause 3 - No route to destination)
> 
> Arrgh
> 
> 
> _______________________________________________
> --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
> 
> The contents of this e-mail are intended for the named 
> addressee only. It contains information that may be 
> confidential. Unless you are the named addressee or an 
> authorized designee, you may not copy or use it, or disclose 
> it to anyone else. If you received it in error please notify 
> us immediately and then destroy it. 
> _______________________________________________
> --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
> 



More information about the asterisk-users mailing list