[asterisk-users] DUNDi and SIP
Jeremy Mann
jmann at txhmg.com
Wed Apr 23 16:51:25 CDT 2008
I'm fairly sure SIP will never work unless I hard-code peers everywhere, which isn't going to happen. The only reason I want to use it is for the call-limit option.
Looking at sip channels there is no option to pass the extension after the IP, it's always extension at ip, or extension at peer, not auth at peer/extension or auth at ip/extension
Looks like IAX and ZAP are the only two channel types that do a /extension type setup.
Extensions.conf:
[macro-dundi-lookup]
exten => s,1,Goto(${ARG1},1)
include => dundi-priv-local
include => dundi-priv-lookup
[dundi-priv-local]
include => internal
[dundi-priv-lookup]
switch => DUNDi/priv
Dundi.conf:
[mappings]
priv => dundi-priv-local,0,IAX2,priv:password at 10.10.0.10/${NUMBER},nopartial
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Bruce Reeves
Sent: Wednesday, April 23, 2008 4:44 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] DUNDi and SIP
Jeremy,
It is not the dip peer that is failing but the dial plan:
-- Goto (macro-dundi-lookup,400,1)
[Apr 23 12:46:44] WARNING[2269]: chan_sip.c:2898 create_addr: No such
host: 192.168.4.51/400
[Apr 23 12:46:44] WARNING[2269]: app_dial.c:1191 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)
What is in the context macro-dundi-lookup?
On Wed, Apr 23, 2008 at 12:47 PM, Jeremy Mann <jmann at txhmg.com> wrote:
> Nope..
>
> asterisk*CLI> dundi lookup 400 at priv
> 1. 0 SIP/priv:priv at 192.168.4.51/400 (EXISTS)
> from 00:1e:0b:dd:e9:99, expires in 5 s
> DUNDi lookup completed in 104 ms
> -- Executing [400 at from-sip:1] Set("SIP/156-08274b60", "CDR(accountcode)=wth") in new stack
> -- Executing [400 at from-sip:2] Set("SIP/156-08274b60", "CALLERID(all)=Corporate <100>") in new stack
> -- Executing [400 at from-sip:3] Macro("SIP/156-08274b60", "dundi-lookup|400") in new stack
> -- Executing [s at macro-dundi-lookup:1] Goto("SIP/156-08274b60", "400|1") in new stack
> -- Goto (macro-dundi-lookup,400,1)
> [Apr 23 12:46:44] WARNING[2269]: chan_sip.c:2898 create_addr: No such host: 192.168.4.51/400
> [Apr 23 12:46:44] WARNING[2269]: app_dial.c:1191 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)
> -- Executing [400 at from-sip:4] Hangup("SIP/156-08274b60", "") in new stack
> == Spawn extension (from-sip, 400, 4) exited non-zero on 'SIP/156-08274b60'
>
>
>
>
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Bruce Reeves
>
>
> Sent: Tuesday, April 22, 2008 10:36 AM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [asterisk-users] DUNDi and SIP
>
> Try this,
>
> [priv]
> dbsecret=dundi/secret
> disallow=all
> allow=ulaw
> canreinvite=no
> nat=no
> context=from-internal
> type=friend
>
> priv => dundi-priv-local,0,SIP,priv:${SECRET}@a.b.c.d/${NUMBER},nopartial
>
>
>
> On Tue, Apr 22, 2008 at 8:23 AM, Jeremy Mann <jmann at txhmg.com> wrote:
> > No.
> >
> >
> > -----Original Message-----
> > From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Bruce Reeves
> >
> >
> > Sent: Tuesday, April 22, 2008 6:00 AM
> > To: Asterisk Users Mailing List - Non-Commercial Discussion
> > Subject: Re: [asterisk-users] DUNDi and SIP
> >
> > Jeremy,
> >
> > Did you get this working?
> >
> >
> >
> > On Thu, Apr 17, 2008 at 7:38 AM, Jeremy Mann <jmann at txhmg.com> wrote:
> > > I have it working via IAX, when I try changing everything to SIP I can't specify a username and an extension, so it becomes useless.
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Bruce Reeves
> > > Sent: Thursday, April 17, 2008 6:51 AM
> > > To: Asterisk Users Mailing List - Non-Commercial Discussion
> > > Subject: Re: [asterisk-users] DUNDi and SIP
> > >
> > > Jeremy,
> > >
> > > Here is a working sample to compare to. This is an IAX2 setup, but the
> > > only difference is in the mapping change IAX2 to SIP. Notice the 4th
> > > setting in the mapping? It defines to use the IAX2 peer "priv" with
> > > the secret generated of the key defined in the peers section of
> > > dundi.conf. When you look at the peer in iax.conf on the remote box,
> > > there is no host entry and it uses dbsecret=dundi/secret, the
> > >
> > > dundi.conf
> > > priv => dundi-internal,0,IAX2,priv:${SECRET}@192.168.99.250/${NUMBER},nopartial
> > >
> > > [00:19:66:1C:78:D5] ; Dev Box
> > > model = symmetric
> > > host = 192.168.99.252
> > > inkey = eus
> > > outkey = eus
> > > include = priv
> > > permit = priv
> > > qualify = yes
> > >
> > >
> > > From iax.conf
> > > [priv]
> > > type=friend
> > > dbsecret=dundi/secret
> > > context=longdistance
> > >
> > > Hope this helps, in your case Dundi will save you a world of work on
> > > configuring that many systems, in fact if you structure Dundi like
> > > spokes around a small number of master servers, the config gets real
> > > easy.Let me know how it goes.
> > >
> > > On Wed, Apr 16, 2008 at 8:41 AM, Jeremy Mann <jmann at txhmg.com> wrote:
> > > >
> > > >
> > > >
> > > >
> > > > I'm a little confused with DUNDi and SIP as the backend channel type:
> > > >
> > > >
> > > >
> > > > Dundi.conf:
> > > >
> > > > [mappings]
> > > >
> > > > priv => dundi-priv-local,0,SIP,${NUMBER}@a.b.c.d,nopartial
> > > >
> > > >
> > > >
> > > > Using the above, the dial string passed to the person on the other box is
> > > > SIP/${NUMBER}@a.b.c.d
> > > >
> > > >
> > > >
> > > > How can you use authentication, along with SIP, along with specifying
> > > > extension?
> > > >
> > > >
> > > >
> > > > My sip.conf has a friend defined:
> > > >
> > > >
> > > >
> > > > [priv]
> > > >
> > > > host=dynamic
> > > >
> > > > secret=priv
> > > >
> > > > disallow=all
> > > >
> > > > allow=ulaw
> > > >
> > > > canreinvite=no
> > > >
> > > > nat=no
> > > >
> > > > context=from-internal\
> > > >
> > > > type=friend
> > > >
> > > >
> > > >
> > > > I need to specify the sip channel to use the priv peer, priv secret, and
> > > > pass the extension. I've tried defining my mapping as:
> > > >
> > > >
> > > >
> > > > Priv => dundi-priv-local,0,SIP,priv:priv at a.b.c.d/${NUMBER},nopartial
> > > >
> > > >
> > > >
> > > > But obviously the console on the far end complains that peer
> > > > a.b.c.d/${NUMBER} cannot be found.
> > > >
> > > >
> > > >
> > > > Thanks for any insight into this. I'd prefer not having to define a sip
> > > > peer per box(I have 25 connected in my dundi cloud), nor would I like to
> > > > enable anonymous SIP calls, as I have the ports open to the world for
> > > > inbound sip from bandwidth.com
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > This e-mail, facsimile, or letter and any files or attachments transmitted
> > > > with it contains information that is confidential and privileged. This
> > > > information is intended only for the use of the individual(s) and
> > > > entity(ies) to whom it is addressed. If you are the intended recipient,
> > > > further disclosures are prohibited without proper authorization. If you are
> > > > not the intended recipient, any disclosure, copying, printing, or use of
> > > > this information is strictly prohibited and possibly a violation of federal
> > > > or state law and regulations. If you have received this information in
> > > > error, please notify Texas Health Management Group immediately at
> > > > 1-817-310-4999. Texas Health Management Group, its subsidiaries, and
> > > > affiliates hereby claim all applicable privileges related to this
> > > > information.
> > > >
> > > > _______________________________________________
> > > > -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> > > >
> > > > asterisk-users mailing list
> > > > To UNSUBSCRIBE or update options visit:
> > > > http://lists.digium.com/mailman/listinfo/asterisk-users
> > > >
> > >
> > >
> > >
> > > --
> > > *****************************
> > > Bruce Reeves, dCAp
> > > EUS Networks
> > > Office: 212-624-5943
> > > Web: www.euscorp.com
> > > ****************************
> > >
> > > _______________________________________________
> > > -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> > >
> > > asterisk-users mailing list
> > > To UNSUBSCRIBE or update options visit:
> > > http://lists.digium.com/mailman/listinfo/asterisk-users
> > >
> > > This e-mail, facsimile, or letter and any files or attachments transmitted with it contains information that is confidential and privileged. This information is intended only for the use of the individual(s) and entity(ies) to whom it is addressed. If you are the intended recipient, further disclosures are prohibited without proper authorization. If you are not the intended recipient, any disclosure, copying, printing, or use of this information is strictly prohibited and possibly a violation of federal or state law and regulations. If you have received this information in error, please notify Texas Health Management Group immediately at 1-817-310-4999. Texas Health Management Group, its subsidiaries, and affiliates hereby claim all applicable privileges related to this information.
> > >
> > > _______________________________________________
> > > -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> > >
> > > asterisk-users mailing list
> > > To UNSUBSCRIBE or update options visit:
> > > http://lists.digium.com/mailman/listinfo/asterisk-users
> > >
> >
> >
> >
> > --
> > *****************************
> > Bruce Reeves, dCAp
> > EUS Networks
> > Office: 212-624-5943
> > Web: www.euscorp.com
> > ****************************
> >
> > _______________________________________________
> > -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> >
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> >
> > This e-mail, facsimile, or letter and any files or attachments transmitted with it contains information that is confidential and privileged. This information is intended only for the use of the individual(s) and entity(ies) to whom it is addressed. If you are the intended recipient, further disclosures are prohibited without proper authorization. If you are not the intended recipient, any disclosure, copying, printing, or use of this information is strictly prohibited and possibly a violation of federal or state law and regulations. If you have received this information in error, please notify Texas Health Management Group immediately at 1-817-310-4999. Texas Health Management Group, its subsidiaries, and affiliates hereby claim all applicable privileges related to this information.
> >
> > _______________________________________________
> > -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> >
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> >
>
>
>
> --
> *****************************
> Bruce Reeves, dCAp
> EUS Networks
> Office: 212-624-5943
> Web: www.euscorp.com
> ****************************
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
> This e-mail, facsimile, or letter and any files or attachments transmitted with it contains information that is confidential and privileged. This information is intended only for the use of the individual(s) and entity(ies) to whom it is addressed. If you are the intended recipient, further disclosures are prohibited without proper authorization. If you are not the intended recipient, any disclosure, copying, printing, or use of this information is strictly prohibited and possibly a violation of federal or state law and regulations. If you have received this information in error, please notify Texas Health Management Group immediately at 1-817-310-4999. Texas Health Management Group, its subsidiaries, and affiliates hereby claim all applicable privileges related to this information.
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
--
*****************************
Bruce Reeves, dCAp
EUS Networks
Office: 212-624-5943
Web: www.euscorp.com
****************************
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
This e-mail, facsimile, or letter and any files or attachments transmitted with it contains information that is confidential and privileged. This information is intended only for the use of the individual(s) and entity(ies) to whom it is addressed. If you are the intended recipient, further disclosures are prohibited without proper authorization. If you are not the intended recipient, any disclosure, copying, printing, or use of this information is strictly prohibited and possibly a violation of federal or state law and regulations. If you have received this information in error, please notify Texas Health Management Group immediately at 1-817-310-4999. Texas Health Management Group, its subsidiaries, and affiliates hereby claim all applicable privileges related to this information.
More information about the asterisk-users
mailing list