logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

RE: registering unregistering users: msg#00069

Subject: RE: registering unregistering users
> Function is_ext_avail returns the same value in dialparties.agi and a 
> positive value is associated to an unavailable state, I imagine asterisk 
> consider the extension unavailable.

I too am having this problem. I think that dialparties.agi is being asked to 
look up the
called party number (803 in your case) to see whether the 'extension' is 
available, rather
than the device number (200 in your case). I don't know whether such a mapping 
should be
done by the dialplan, or by dialparties.agi

-----Original Message-----
From: amportal-users-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
[mailto:amportal-users-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx]On
 Behalf Of Vincent
Régnard
Sent: 15 February 2006 11:15
To: amportal-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
Subject: Re: [Amportal-users] registering unregistering users


Vincent Régnard wrote:
> When I set a default user for the device, I can ring from/to the default 
> user on the device. But I cannot unregister the user on this device 
> using *12. That's not the biggest trouble. When, still using ad hoc 
> device type, I set none for the default user (so a users must register 
> first), there is no way to get a valid user registered to this device 
> using the *11 trick, I have the prompt asking for the extension/pasword 
> which I give, and I can see the records doing a database show in the 
> astersik CLI. But there is no way to make call to this user, I 
> automatically fall on the user's voicemail, saying the extension is not 
> available, when it IS available to answer the call in reality.

I've been looking deeper inside this trouble. The AstDB record are 
actually OK. dialparties.agi seams to make its job fine.

I log a user 803 on device 200 using *11 on the phone, I get
/AMPUSER/803/cidname                              : V Regnard
/AMPUSER/803/device                               : 200
/AMPUSER/803/outboundcid                          : 0231844577
/AMPUSER/803/password                             : 803
/AMPUSER/803/recording                            : out=Adhoc|in=Adhoc
/DEVICE/200/dial                                  : IAX2/200
/DEVICE/200/type                                  : adhoc
/DEVICE/200/user                                  : 803

When telneting to asterisk manager, I get "Status: 4" when querying 
"Action: ExtensionState..." for this extension

Function is_ext_avail returns the same value in dialparties.agi and a 
positive value is associated to an unavailable state, I imagine asterisk 
consider the extension unavailable.

So I understand the user registration on the phone (ampDevice) is not 
taken into account by asterisk.

Even not beeing an expert of the question, I checked the sqlDB and 
noticed no modification in the "device" table after the user logged in 
the device. I would expect the userextension to figure in the "user" 
record for this device ? And I am still wondering how we can associate 
multiple users to a single device with this mechanism ? I might have 
missed something on the way ? Maybe the DB has nothing to see with that, 
please let me know if you have indications.

Vincent


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642


<Prev in Thread] Current Thread [Next in Thread>