<!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.2800.1543" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Jayesh,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>just had the same problem.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>PAP2 has its own "*" codes which may overlap with
your functions.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>You must go into the admin menu of your PAP2 and
change all "*XX" codes to "**XX" or whatever doesnt interfere with your ser
script. ** worked for me.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Cheers</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Gerry</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=voip_freak@yahoo.co.in href="mailto:voip_freak@yahoo.co.in">Jayesh
Nambiar</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=users@openser.org
href="mailto:users@openser.org">openser</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, May 30, 2006 12:38
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Bulk] [Users] pap2 ATA problem
</DIV>
<DIV><FONT face=Arial size=2></FONT><BR></DIV>
<DIV>Hello everybody,</DIV>
<DIV>I have implemented few features in my openser script. The features are
like if a user presses *86 followed by any number, that number will be his
forwarded number when someone calls him and he is busy. Similarly the code for
forwarding on no-answer is *87 followed by the number to which it should be
forwarded.</DIV>
<DIV>I've tested these features using Eyebeam softphone and Audiocodoes MP
series analog gateways.</DIV>
<DIV>But while testing it with a linksys pap2 device, it does'nt work. The
problem is that as soon as the user dials *86 the phone gets disconnected and
his forwarded number becomes blank in the table where i store these
numbers.</DIV>
<DIV>I dont understand how does the device recognises the code which is
written in my openser script.</DIV>
<DIV>Its like if the user dials any feature enabling code, before he enters
the number the call is disconnected. </DIV>
<DIV>Can anyone please help me in this regard or can anyone please guide me if
they worked on this kind of idea before.</DIV>
<DIV>the snippet of cfg is as below:</DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>if(uri=~"sip:\*87[0-9]*@")
{ <BR>
if(isflagset(9)) { #--check if the feature is allowed for
user--<BR>
log(1,"Entered *87
condition");<BR>
avp_db_query("select attribute from usr_preferences where username='$fU' and
attribute='fwd_noanswer'",
"$avp(i:91)");<BR>
if(!avp_check("$avp(i:91)", "eq/fwd_noanswer/i"))
{<BR>
strip(3);<BR>
avp_db_query("insert into usr_preferences values('', '$fU', '',
'fwd_noanswer', '', '$ruri',
'')");<BR>
log(1,"Entered in
DB");<BR>
sl_send_reply("200",
"OK");<BR>
exit;<BR>
};<BR>
strip(3);<BR>
avp_db_query("update usr_preferences set value='$ruri' where username='$fU'
and
attribute='fwd_noanswer'");<BR>
sl_send_reply("200",
"OK");<BR>
exit;<BR>
};<BR> sl_send_reply("403",
"Forbidden");<BR>
exit;<BR> };<BR></DIV>
<DIV>Waiting for reply,</DIV>
<DIV> </DIV>
<DIV>w/regards,</DIV>
<DIV>Jayesh</DIV>
<P>
<HR SIZE=1>
</HR>Send free SMS to your Friends on Mobile from your Yahoo! Messenger <A
href="http://us.rd.yahoo.com/mail/in/freesms/*http://messenger.yahoo.com/download.php">Download
now</A>
<P>
<HR>
<P></P>_______________________________________________<BR>Users mailing
list<BR>Users@openser.org<BR>http://openser.org/cgi-bin/mailman/listinfo/users<BR></BLOCKQUOTE></BODY></HTML>