Sure, let me show you how I setup dundi on systems.

extensions.conf

exten => _1XXXXX,1,Goto(lookupdundi,${EXTEN},1)

[lookupdundi]
exten => _X,1,Goto(${ARG1},1)
switch => DUNDi/priv

exten => i,1,Playback(invalid)

You can have the i do whatever you want, and you can use the same
option in the macro you are using.

That is it, I leave out all the other context in the examples, from
time to time I add a dundi-static context and put in specific numbers
or patterns I want to accept, maybe for pstn calling or phones that
don't register, but in those cases I have multiple mappings in
dundi.conf for each context. For example:

priv => sipregistrations,0,SIP,[EMAIL PROTECTED],nopartial
priv => dundi-static,0,SIP,[EMAIL PROTECTED],nopartial




On Wed, Aug 27, 2008 at 3:56 AM, ronald ramos <[EMAIL PROTECTED]> wrote:
> Hi Again,
>
> Is there a way i can detect whether a user has been added into the
> regcontext?
> Currently i'm seeing this and just gives a fast busy.
>
> [Aug 27 16:44:46] WARNING[17402]: pbx.c:2483 __ast_pbx_run: Channel
> 'SIP/10.10.10.10-b63101d0' sent into invalid extension '141100' in context
> 'lookupdundi', but no invalid handler
>
> can i detect it somehow, so i can inform user that the extensions is not
> available?
>
> i have tried ChanIsAvail, but since i am using  realtime ChanIsAvail thinks
> it registered, since it really is registered on the other server. So it's
> trying to call it,  tries  it for 30 secs (i set it to timeout at 30),
> after 30 secs then it will go to DUNDI/priv.  Is there a way that i can
> detect it first so it does not try to dial it on the local before askng
> dundi? thank you
>
> regards,
> Ron
>
>
> --- On Tue, 8/26/08, Bruce Reeves <[EMAIL PROTECTED]> wrote:
>
> From: Bruce Reeves <[EMAIL PROTECTED]>
> Subject: Re: [asterisk-users] DUNDI Help
> To: [EMAIL PROTECTED], "Asterisk Users Mailing List - Non-Commercial
> Discussion" <asterisk-users@lists.digium.com>
> Date: Tuesday, August 26, 2008, 8:16 PM
>
> It is added when a phone registers, or re-registers. Depending on the
> timing of the registrations and any restarts on the asterisk process
> it may take some time for phones to re-register.
>
> On Tue, Aug 26, 2008 at 2:10 PM, ronald ramos <[EMAIL PROTECTED]>
> wrote:
>> Hi Bruce,
>>
>> my apologies, but the error was because of the key.
>> i just run keys init on the CLI and it works,
>>
>> question
>  on regcontext though, i set it to sipregistrations, how often
> does
>> an extension be added to the context sipregistrations and for how long
> will
>> it stay there? i'm looking at dialplan show sipregistration, sometimes
> i
>> only see one extension there. even though i know i have 4 ip phones
>> registered to the asterisk.
>>
>> TIA
>>
>> Ron
>>
>>
>> --- On Tue, 8/26/08, Bruce Reeves <[EMAIL PROTECTED]>
> wrote:
>>
>> From: Bruce Reeves <[EMAIL PROTECTED]>
>> Subject: Re: [asterisk-users] DUNDI Help
>> To: [EMAIL PROTECTED], "Asterisk Users Mailing List -
> Non-Commercial
>> Discussion" <asterisk-users@lists.digium.com>
>> Date: Tuesday, August 26, 2008, 6:23 PM
>>
>> Ron,
>>
>> What does the peers section in dundi.conf look like?
>>
>> On Tue, Aug 26, 2008 at 3:00 AM, ronald
>  ramos
> <[EMAIL PROTECTED]>
>> wrote:
>>> Would like to try setting up dundi with 3-4 asterisk.
>>> But for poc, i would like to try setting up dundi on between 2
> asterisk.
>>>
>>> I copied the config from DUNDI enterprise SIP with no password. Only
> thing
>> i
>>> changed is the part where i used regcontext.
>>> on both boxes dundi.conf i have
>>> [mapping]
>>> priv => sipregistrations,0,SIP,[EMAIL PROTECTED],nopartial
>>>
>>> i can see both peers on each server:
>>> CLI> dundi show  peers
>>> EID                  Host                Model      AvgTime  Status
>>> 00:8e:8c:8e:cb:53    10.10.10.XX  (S) Symmetric  Unavail  OK (1 ms)
>>>
>>> i can see my extension being added
>>  on sipregistrations context
>>> Added extension '136101' priority 1 to
>  sipregistrations
>>>
>>> tried a dundi lookup but got no result
>>> dundi lookup [EMAIL PROTECTED]
>>> DUNDi lookup returned no results.
>>> DUNDi lookup completed in 0 ms
>>>
>>> here's what's on extensions.conf
>>>
>>> ; Private DUNDi network
>>> [dundi-priv-canonical]
>>> ; Direct numbers
>>>
>>> [dundi-priv-customers]
>>> ; If you are an ITSP or Reseller, list your customers here.
>>>
>>> [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
>>>
>>> [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
>>>
>>> [diallocal]
>>> exten => _1XXXXX,1,Macro(dundi-priv|${EXTEN})
>>>
>>> i also tried dialing from my xlite:
>>> [Aug 26 15:58:07]     -- Executing [EMAIL PROTECTED]:1]
>>> Macro("SIP/138100-08269548", "dundi-priv|136101")
> in
>> new stack
>>> [Aug 26 15:58:07]     -- Executing [EMAIL PROTECTED]:1]
>>> Goto("SIP/138100-08269548", "136101|1") in new
> stack
>>> [Aug 26 15:58:07]     -- Goto (macro-dundi-priv,136101,1)
>>> [Aug 26 15:58:07]   == Auto fallthrough, channel
>> 'SIP/138100-08269548'
>>> status is 'UNKNOWN'
>>>
>>> any guess what's wrong? Thanks
>>>
>>>
>  ron
>>>
>>>
>>> _______________________________________________
>>> -- Bandwidth and Colocation Provided by http://www.api-digital.com
>>  --
>>>
>>> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
>>> Register Now: http://www.astricon.net
>>>
>>> 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 --
>>
>> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
>> Register Now:
>  http://www.astricon.net
>>
>> 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 --
>
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> 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 --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to