is subscribe context an addiotional switch/field ?&nbsp; <br>or its the peer context ?<br><br><div><span class="gmail_quote">On 8/9/07, <b class="gmail_sendername">Mike</b> &lt;<a href="mailto:list@virtutel.ca">list@virtutel.ca
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I feared so, but I have already started working on this. Thanks for the
<br>confirmation.<br><br>Too bad, the rest of my design was relatively elegant (IMO) and easily to<br>modify.<br><br><br><br>Mike<br><br><br><br><br><br>-----Original Message-----<br>From: <a href="mailto:asterisk-users-bounces@lists.digium.com">
asterisk-users-bounces@lists.digium.com</a><br>[mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>] On Behalf Of Anthony<br>Francis<br>Sent: Thursday, August 09, 2007 12:15
<br>To: Asterisk Users Mailing List - Non-Commercial Discussion<br>Subject: Re: [asterisk-users] The quest for making &quot;hint&quot; more flexible<br>continues - using Realtime now<br><br>Mike wrote:<br>&gt; Ok, now that I&#39;ve learned I cannot use any variables when using the
<br>&gt; `hint` priority (for BLF), I figured I&#39;d try to use the next best<br>&gt; thing: hardcoded values using realtime.&nbsp;&nbsp;This way I avoid variables<br>&gt; such as ${ACCOUNTCODE} but I can at least change the DB more easily
<br>&gt; than text files.&nbsp;&nbsp;This is the appropriate line in the DB:<br>&gt;<br>&gt;<br>&gt; +------+--------------+-------+----------+--------------------+---------+<br>&gt; | id&nbsp;&nbsp; | context&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;| exten | priority | app&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;| appdata |
<br>&gt; +------+--------------+-------+----------+--------------------+---------+<br>&gt; | 2000 | hint-context | 705&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; hint | SIP/test-1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>&gt; +------+--------------+-------+----------+--------------------+---------+
<br>&gt;<br>&gt;<br>&gt; This is what I put in mt hint-context in extensions.conf:<br>&gt; [hint-context]<br>&gt; switch =&gt; Realtime/hint-context@extensions<br>&gt; &lt;mailto:<a href="mailto:Realtime/hint-context@extensions">
Realtime/hint-context@extensions</a>&gt;<br>&gt;<br>&gt; And this is what I get from the CLI:<br>&gt; Aug&nbsp;&nbsp;9 11:34:14 NOTICE[19894]: chan_sip.c:11187<br>&gt; handle_request_subscribe: Got SUBSCRIBE for extension 705@hint-context
<br>&gt; &lt;mailto:<a href="mailto:705@hint-context">705@hint-context</a>&gt; from xx.xxx.xx.xx, but there is no hint for<br>&gt; that extension<br>&gt;<br>&gt; Well....there is!&nbsp;&nbsp;Is there any way I can do this?<br>&gt;<br>
&gt; Mike<br>&gt; ----------------------------------------------------------------------<br>&gt; --<br>&gt;<br>&gt; _______________________________________________<br>&gt; --Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--">
http://www.api-digital.com--</a><br>&gt;<br>&gt; asterisk-users mailing list<br>&gt; To UNSUBSCRIBE or update options visit:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br>I personally opened a bug in the bugtracker about this and it was closed as<br>wont fix. You simply cannot use the hint priority in realtime with out a<br>major change to the API. So until the code is changed, you are going to have
<br>to have a separate hint context with nothing but hint priority extensions<br>and set the subscribe context in sip.conf for all concerned devices to that<br>context.<br>This is how I am running in production now.<br><br>
Anthony<br><br>_______________________________________________<br>--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--">http://www.api-digital.com--</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:
<br>&nbsp;&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br><br><br>_______________________________________________<br>--Bandwidth and Colocation Provided by 
<a href="http://www.api-digital.com--">http://www.api-digital.com--</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br>&nbsp;&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Mike<br>Sales Manager<br><a href="http://www.voicemeup.com">http://www.voicemeup.com</a><br>Making it happen
<br>1.877.807.VOIP (8647)<br>1.514.312.7030