<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br><br>I have been testing dundi setup, one thing i am having problem with is that extensions are getting remove from the regcontext.<br><br>does it get removed when registration expires? how can i make sure it's added back without power cycling the phone? which would be better, making expiration higher? or lowering it so it will re-register fast? also i am using pap2 and sipura, is there a settings to make re-register faster?<br><br>did you experience this as well before? how were you able to fix it? thank you<br><br>regards,<br>ron<br><br>--- On <b>Wed, 8/27/08, Bruce Reeves <i><breeveslist@eusnetworks.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">From: Bruce Reeves <breeveslist@eusnetworks.com><br>Subject: Re: [asterisk-users] DUNDI Help<br>To:
ronramos1004@yahoo.com, "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com><br>Date: Wednesday, August 27, 2008, 1:06 PM<br><br><pre>Sure, let me show you how I setup dundi on systems.<br><br>extensions.conf<br><br>exten => _1XXXXX,1,Goto(lookupdundi,${EXTEN},1)<br><br>[lookupdundi]<br>exten => _X,1,Goto(${ARG1},1)<br>switch => DUNDi/priv<br><br>exten => i,1,Playback(invalid)<br><br>You can have the i do whatever you want, and you can use the same<br>option in the macro you are using.<br><br>That is it, I leave out all the other context in the examples, from<br>time to time I add a dundi-static context and put in specific numbers<br>or patterns I want to accept, maybe for pstn calling or phones that<br>don't register, but in those cases I have multiple mappings in<br>dundi.conf for each context. For example:<br><br>priv => sipregistrations,0,SIP,${NUMBER}@10.10.10.XX,nopartial<br>priv =>
dundi-static,0,SIP,${NUMBER}@10.10.10.XX,nopartial<br><br><br><br><br>On Wed, Aug 27, 2008 at 3:56 AM, ronald ramos <ronramos1004@yahoo.com><br>wrote:<br>> Hi Again,<br>><br>> Is there a way i can detect whether a user has been added into the<br>> regcontext?<br>> Currently i'm seeing this and just gives a fast busy.<br>><br>> [Aug 27 16:44:46] WARNING[17402]: pbx.c:2483 __ast_pbx_run: Channel<br>> 'SIP/10.10.10.10-b63101d0' sent into invalid extension<br>'141100' in context<br>> 'lookupdundi', but no invalid handler<br>><br>> can i detect it somehow, so i can inform user that the extensions is not<br>> available?<br>><br>> i have tried ChanIsAvail, but since i am using realtime ChanIsAvail<br>thinks<br>> it registered, since it really is registered on the other server. So<br>it's<br>> trying to call it, tries it for 30 secs (i set it to timeout at 30),<br>> after 30 secs then it will go to
DUNDI/priv. Is there a way that i can<br>> detect it first so it does not try to dial it on the local before askng<br>> dundi? thank you<br>><br>> regards,<br>> Ron<br>><br>><br>> --- On Tue, 8/26/08, Bruce Reeves <breeveslist@eusnetworks.com><br>wrote:<br>><br>> From: Bruce Reeves <breeveslist@eusnetworks.com><br>> Subject: Re: [asterisk-users] DUNDI Help<br>> To: ronramos1004@yahoo.com, "Asterisk Users Mailing List -<br>Non-Commercial<br>> Discussion" <asterisk-users@lists.digium.com><br>> Date: Tuesday, August 26, 2008, 8:16 PM<br>><br>> It is added when a phone registers, or re-registers. Depending on the<br>> timing of the registrations and any restarts on the asterisk process<br>> it may take some time for phones to re-register.<br>><br>> On Tue, Aug 26, 2008 at 2:10 PM, ronald ramos<br><ronramos1004@yahoo.com><br>> wrote:<br>>> Hi
Bruce,<br>>><br>>> my apologies, but the error was because of the key.<br>>> i just run keys init on the CLI and it works,<br>>><br>>> question<br>> on regcontext though, i set it to sipregistrations, how often<br>> does<br>>> an extension be added to the context sipregistrations and for how long<br>> will<br>>> it stay there? i'm looking at dialplan show sipregistration,<br>sometimes<br>> i<br>>> only see one extension there. even though i know i have 4 ip phones<br>>> registered to the asterisk.<br>>><br>>> TIA<br>>><br>>> Ron<br>>><br>>><br>>> --- On Tue, 8/26/08, Bruce Reeves <breeveslist@eusnetworks.com><br>> wrote:<br>>><br>>> From: Bruce Reeves <breeveslist@eusnetworks.com><br>>> Subject: Re: [asterisk-users] DUNDI Help<br>>> To: ronramos1004@yahoo.com, "Asterisk Users Mailing List -<br>>
Non-Commercial<br>>> Discussion" <asterisk-users@lists.digium.com><br>>> Date: Tuesday, August 26, 2008, 6:23 PM<br>>><br>>> Ron,<br>>><br>>> What does the peers section in dundi.conf look like?<br>>><br>>> On Tue, Aug 26, 2008 at 3:00 AM, ronald<br>> ramos<br>> <ronramos1004@yahoo.com><br>>> wrote:<br>>>> Would like to try setting up dundi with 3-4 asterisk.<br>>>> But for poc, i would like to try setting up dundi on between 2<br>> asterisk.<br>>>><br>>>> I copied the config from DUNDI enterprise SIP with no password.<br>Only<br>> thing<br>>> i<br>>>> changed is the part where i used regcontext.<br>>>> on both boxes dundi.conf i have<br>>>> [mapping]<br>>>> priv => sipregistrations,0,SIP,${NUMBER}@10.10.10.XX,nopartial<br>>>><br>>>> i can see both peers on each
server:<br>>>> CLI> dundi show peers<br>>>> EID Host Model AvgTime <br>Status<br>>>> 00:8e:8c:8e:cb:53 10.10.10.XX (S) Symmetric Unavail OK (1<br>ms)<br>>>><br>>>> i can see my extension being added<br>>> on sipregistrations context<br>>>> Added extension '136101' priority 1 to<br>> sipregistrations<br>>>><br>>>> tried a dundi lookup but got no result<br>>>> dundi lookup 136101@priv<br>>>> DUNDi lookup returned no results.<br>>>> DUNDi lookup completed in 0 ms<br>>>><br>>>> here's what's on extensions.conf<br>>>><br>>>> ; Private DUNDi network<br>>>> [dundi-priv-canonical]<br>>>> ; Direct numbers<br>>>><br>>>> [dundi-priv-customers]<br>>>> ; If you are an ITSP or Reseller, list your customers
here.<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>>>> [dundi-priv-switch]<br>>>> ; Just a wrapper for the switch<br>>>> switch => DUNDi/priv<br>>>><br>>>><br>> [dundi-priv-lookup]<br>>>> include =><br>>> 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>>>> [diallocal]<br>>>> exten => _1XXXXX,1,Macro(dundi-priv|${EXTEN})<br>>>><br>>>> i also tried dialing from
my xlite:<br>>>> [Aug 26 15:58:07] -- Executing [136101@diallocal:1]<br>>>> Macro("SIP/138100-08269548",<br>"dundi-priv|136101")<br>> in<br>>> new stack<br>>>> [Aug 26 15:58:07] -- Executing [s@macro-dundi-priv:1]<br>>>> Goto("SIP/138100-08269548", "136101|1") in new<br>> stack<br>>>> [Aug 26 15:58:07] -- Goto (macro-dundi-priv,136101,1)<br>>>> [Aug 26 15:58:07] == Auto fallthrough, channel<br>>> 'SIP/138100-08269548'<br>>>> status is 'UNKNOWN'<br>>>><br>>>> any guess what's wrong? Thanks<br>>>><br>>>><br>> ron<br>>>><br>>>><br>>>> _______________________________________________<br>>>> -- Bandwidth and Colocation Provided by http://www.api-digital.com<br>>> --<br>>>><br>>>> AstriCon 2008 - September 22 - 25 Phoenix, Arizona<br>>>> Register Now:
http://www.astricon.net<br>>>><br>>>> asterisk-users mailing list<br>>>> To UNSUBSCRIBE or update options visit:<br>>>> http://lists.digium.com/mailman/listinfo/asterisk-users<br>>>><br>>><br>>><br>>><br>>> --<br>>> *****************************<br>>> Bruce Reeves, dCAp<br>>> EUS Networks<br>>> Office: 212-624-5943<br>>> Web: www.euscorp.com<br>>> ****************************<br>>><br>>><br>>> _______________________________________________<br>>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --<br>>><br>>> AstriCon 2008 - September 22 - 25 Phoenix, Arizona<br>>> Register Now:<br>> http://www.astricon.net<br>>><br>>> asterisk-users mailing list<br>>> To UNSUBSCRIBE or update options visit:<br>>>
http://lists.digium.com/mailman/listinfo/asterisk-users<br>>><br>><br>><br>><br>> --<br>> *****************************<br>> Bruce Reeves, dCAp<br>> EUS Networks<br>> Office: 212-624-5943<br>> Web: www.euscorp.com<br>> ****************************<br>><br>><br>> _______________________________________________<br>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --<br>><br>> AstriCon 2008 - September 22 - 25 Phoenix, Arizona<br>> Register Now: http://www.astricon.net<br>><br>> asterisk-users mailing list<br>> To UNSUBSCRIBE or update options visit:<br>> http://lists.digium.com/mailman/listinfo/asterisk-users<br>><br><br><br><br>-- <br>*****************************<br>Bruce Reeves, dCAp<br>EUS Networks<br>Office: 212-624-5943<br>Web: www.euscorp.com<br>****************************<br></pre></blockquote></td></tr></table><br>