<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16481" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=109165617-09082007><FONT face=Arial
color=#0000ff size=2>subscribecontext (one word) is another attribute of a
peer (sip.conf). I am using it as part of a MYSQL table that holds all my
sip registrations, and that works fine. I did have to add the column,
since it wasn't part of the table construct that can be found on the
wiki.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=109165617-09082007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=109165617-09082007><FONT face=Arial
color=#0000ff size=2>Mike</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=109165617-09082007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=109165617-09082007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <B>On Behalf Of </B>Mike
Lynchfield<BR><B>Sent:</B> Thursday, August 09, 2007 13:50<BR><B>To:</B>
Asterisk Users Mailing List - Non-Commercial Discussion<BR><B>Subject:</B> Re:
[asterisk-users] The quest for making "hint" more flexiblecontinues - using
Realtime now<BR></FONT><BR></DIV>
<DIV></DIV>is subscribe context an addiotional switch/field ? <BR>or its
the peer context ?<BR><BR>
<DIV><SPAN class=gmail_quote>On 8/9/07, <B class=gmail_sendername>Mike</B>
<<A href="mailto:list@virtutel.ca">list@virtutel.ca </A>> wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">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 "hint" more flexible<BR>continues -
using Realtime now<BR><BR>Mike wrote:<BR>> Ok, now that I've learned I
cannot use any variables when using the <BR>> `hint` priority (for BLF), I
figured I'd try to use the next best<BR>> thing: hardcoded values using
realtime. This way I avoid variables<BR>> such as ${ACCOUNTCODE}
but I can at least change the DB more easily <BR>> than text
files. This is the appropriate line in the
DB:<BR>><BR>><BR>>
+------+--------------+-------+----------+--------------------+---------+<BR>>
| id | context | exten |
priority |
app |
appdata | <BR>>
+------+--------------+-------+----------+--------------------+---------+<BR>>
| 2000 | hint-context | 705 | hint |
SIP/test-1
| |<BR>>
+------+--------------+-------+----------+--------------------+---------+
<BR>><BR>><BR>> This is what I put in mt hint-context in
extensions.conf:<BR>> [hint-context]<BR>> switch =>
Realtime/hint-context@extensions<BR>> <mailto:<A
href="mailto:Realtime/hint-context@extensions">
Realtime/hint-context@extensions</A>><BR>><BR>> And this is what I
get from the CLI:<BR>> Aug 9 11:34:14 NOTICE[19894]:
chan_sip.c:11187<BR>> handle_request_subscribe: Got SUBSCRIBE for extension
705@hint-context <BR>> <mailto:<A
href="mailto:705@hint-context">705@hint-context</A>> from xx.xxx.xx.xx, but
there is no hint for<BR>> that extension<BR>><BR>> Well....there
is! Is there any way I can do this?<BR>><BR>> Mike<BR>>
----------------------------------------------------------------------<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>> <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> <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> <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 </BODY></HTML>