[Home]

Summary:ASTERISK-06834: Hints via RealTime
Reporter:Michael Scott (mgscott)Labels:
Date Opened:2006-04-24 04:31:52Date Closed:2006-05-02 15:32:11
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/Subscriptions
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Are hints supposed to be loaded via a switch statement in the dialplan?

I notice that when i attempted to set this up, it was reading, using the switch in the current conext from the database, however it does not then subscribe or always shows the users offline.

In addition, i found that adding subscribecontext=context does not work also using realtime, i have added the following setup

extensions.conf
[subscribecontext]
exten => 1234560000,hint,SIP/1234560000&SIP/1234560001

[sip-context]
exten => 1234560000,1,dial(SIP/1234560000)
exten => 1234560000,2,hangup

sip.conf
[1234560000]
username=
secret=
nat=yes
host=dynamic
subscribecontext=subscribecontext

When i load the hints directly into the sip-context, such as

[sip-context]
exten => 1234560000,1,dial(SIP/1234560000)
exten => 1234560000,2,hangup
exten => 1234560000,hint,SIP/1234560000&SIP/1234560001

It seems to work fine....

Is there support, or should we add support to use both a subscribe context and have the subscriptions loaded from a database using the switch => realtime/?
This would be useful as the contacts that a user has are being stored within the database and hence the subscriptions reading from the realtime database helps the configuration....

I cannot find much being said about this for RealTime.




****** ADDITIONAL INFORMATION ******

I am using version 1.2.5
Comments:By: Olle Johansson (oej) 2006-04-25 05:15:21

I think using realtime for hints would be a disaster performance-wise. In static mode it's ok, but not in realtime mode. Realtime mode means that we do not keep objects in memory, so they simply does not exist and can't be watched.

You are right, this needs to be documented.

By: Olle Johansson (oej) 2006-05-02 15:31:58

Added information in sip.conf.sample /svn trunk. Thanks for reporting this.