<!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.2900.2668" name=GENERATOR>
<STYLE>@font-face {
        font-family: Tahoma;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.emailstyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial
}
SPAN.EmailStyle18 {
        COLOR: navy; FONT-FAMILY: Arial
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue bgColor=white>
<DIV>Please copy serusers.</DIV>
<DIV> </DIV>
<DIV>Use debug=7, fork=no and log_stderror=yes</DIV>
<DIV> </DIV>
<DIV>Start ser with: ser</DIV>
<DIV>You should get debug statements from avpops.</DIV>
<DIV>g-)</DIV>
<DIV> </DIV>
<DIV>---- Original Message ----<BR>From: Ramin NIkaeen<BR>To: Greger V.
Teigre<BR>Sent: Thursday, July 14, 2005 03:59 PM<BR>Subject: RE: [Serusers]
avpops in route[??] or failure_route[??]<BR><BR>> Hi Greger,<BR>> <BR>>
Thanks for your kind reply.<BR>> <BR>> How does avpops module give me
output?!<BR>> <BR>> I have set the following in the ser.cfg file:<BR>>
debug=3 # debug level (cmd line:
-dddddddddd)<BR>> fork=yes<BR>> log_stderror=yes # (cmd line: -E)<BR>>
but don’t get any specific output from avpops?!<BR>> <BR>> I have also
tried avp_print but it does not seem to work?!<BR>> <BR>> Any
ideas?<BR>> <BR>> Thanks<BR>> <BR>> ramin<BR>> <BR>> <BR>>
-----Original Message-----<BR>> From: Greger V. Teigre
[mailto:greger@teigre.com]<BR>> Sent: Thursday, July 14, 2005 1:37 AM<BR>>
To: Ramin NIkaeen; Serusers<BR>> Subject: Re: [Serusers] avpops in route[??]
or failure_route[??]<BR>> <BR>> Ramin,<BR>> avpops works pretty much
everywhere. Try starting ser in debugging<BR>> mode. You will get
output from the avpops module on what happens. It<BR>> can be difficult to
get all the options for the different functions<BR>> correctly
sometimes... <BR>> g-)<BR>> <BR>> ---- Original Message
----<BR>> From: Ramin Nikaeen<BR>> To: Serusers<BR>> Sent: Wednesday,
July 13, 2005 10:40 PM<BR>> Subject: [Serusers] avpops in route[??] or
failure_route[??]<BR>> <BR>>> Valued Colleagues,<BR>>>
<BR>>> Can anyone tell me of avpops can be used within routing
and<BR>>> failure_route blocks?!<BR>>> <BR>>> If it can not be
used, what can I use instead?<BR>>> <BR>>> My usr_preferences table
in the database contains:<BR>>> <BR>>> mysql> select * from
usr_preferences where uuid='6474383000' order by<BR>>> uuid,
attribute;<BR>>>
+------------+------------+--------------+--------------+-----------------------------+------+----------------+<BR>>>>
uuid | username |
domain | attribute |
value<BR>>>>> type | modified
|<BR>>>>> <BR>>>>>
+------------+------------+--------------+--------------+-----------------------------+------+----------------+<BR>>>>>
6474383000 | 6474383000 | goldline.net | findme1-ring | 20 0
|<BR>>>>> 20050712155359 | 6474383000 | 6474383000 | goldline.net
| <BR>>>> findme1-uri | sip:4168491076@xxxxxxxx.xxx
| 0 | 20050712155359 |<BR>>>
+------------+------------+--------------+--------------+-----------------------------+------+----------------+<BR>>>
I run the code attached at the bottom. Because the table is
populated<BR>>> properly,<BR>>> it should print<BR>>>
<BR>>> "---------ser.cfg - route[11]: inv_timeout: 20!”<BR>>>
<BR>>> but it prints:<BR>>> <BR>>> "---------ser.cfg -
route[11]: default inv_timeout: 20!"<BR>>> <BR>>> which indicates to
me that avp_db_load is not working properly.<BR>>> <BR>>>
Thanks<BR>>> <BR>>> ramin<BR>>> <BR>>>
route[11]<BR>>>
{<BR>>>
if (avp_db_load("$ruri/username",
"s:findme1-ring"))<BR>>>
{<BR>>>
log(3, "---------ser.cfg - route[11]::<BR>>> FindMe: s:findme1-ring read
from
database\n");<BR>>>
};<BR>>>
else<BR>>>
if (avp_check("s:findme1-ring",
"eq/20/i"))<BR>>>
{<BR>>>
avp_write("i:20",
"inv_timeout");<BR>>>
log(3, "---------ser.cfg - route[11]:<BR>>> inv_timeout:
20!\n");<BR>>>
}<BR>>>
else<BR>>>
{<BR>>>
avp_write("i:20",
"inv_timeout");<BR>>>
log(3, "---------ser.cfg - route[11]: default<BR>>> inv_timeout:
20!\n");<BR>>>
}<BR>>> <BR>>> }<BR>>> <BR>>> <BR>>> <BR>>>
_______________________________________________<BR>>> Serusers mailing
list<BR>>> serusers@lists.iptel.org<BR>>>
http://lists.iptel.org/mailman/listinfo/serusers</DIV></BODY></HTML>