<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi Again,<br><br>Is there a way i can detect whether a user has been added into the 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 'SIP/10.10.10.10-b63101d0' sent into invalid extension '141100' in context 'lookupdundi', but no invalid handler<br><br>can i detect it somehow, so i can inform user that the extensions is not available?<br><br>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<br><br>regards,<br>Ron<br><br><br>--- On <b>Tue, 8/26/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: Tuesday, August 26, 2008, 8:16 PM<br><br><pre>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 <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
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, 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
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. 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 Status<br>>> 00:8e:8c:8e:cb:53 10.10.10.XX (S) Symmetric Unavail OK (1 ms)<br>>><br>>> i can see my extension being added<br>> on sipregistrations context<br>>> Added extension '136101' priority 1 to
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>>>
[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", "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>>>
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:
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>