<HTML>
<HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="Open WebMail 2.20 20031014" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>

<font size="2"><b>I wrote a module that handles call return as I couldn't figure out a reasonable way of handling it with AVP. 
<br />
<br />If you figure out a way to do it, let me know. 
<br />
<br />N.
<br />
<br />
<br /></b></font>
<p><font size="2"><b>On Tue, 11 Oct 2005 12:25:59 +0100, Aisling wrote</b></font></p>
<font size="2">&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">Hello,<o:p /></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><o:p> </o:p></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">I read a previous post by </span></font><st1:personname><font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">Iqbal</span></font></st1:personname><font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"> (missed
caller call back) where a subscriber can ring a pre-defined number which calls
back their last missed call…..<o:p /></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><o:p> </o:p></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">Is my logic correct as follows<span class="GramE">?:</span><o:p /></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><o:p> </o:p></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">In the missed call section (i.e. when <span class="SpellE">theres</span>
a 408/487 message) do:<o:p /></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><o:p> </o:p></span></font>

<br />&gt; <span class="SpellE"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">avp_db_<span class="GramE">store</span></span></font></span><span class="GramE"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">(</span></font></span><font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">“$<span class="SpellE">ruri</span>”, “i:1000”);<o:p /></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><o:p> </o:p></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">Then when the caller dials the callback number e.g.1471 this
code is invoked:<o:p /></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><o:p> </o:p></span></font>

<br />&gt; <span class="GramE"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">if</span></font></span><font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"> (<span class="SpellE">uri</span>=~”^sip:1471@x.x.x.x”){<o:p /></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><span style="">            </span><span class="GramE">log(</span>1, “in missed call return section”);<o:p /></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><span style="">            </span><span class="SpellE">avp_db_<span class="GramE">load</span></span><span class="GramE">(</span>“$from/username”,
“i:1000”);<o:p /></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><span style="">            </span><span class="SpellE">avp_<span class="GramE">pushto</span></span><span class="GramE">(</span>“i:1000”,
“$<span class="SpellE">ruri</span>”);<o:p /></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><span style="">            </span>//
route as normal<o:p /></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">};<o:p /></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><o:p> </o:p></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">I am getting an error when restarting SER:<o:p /></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><o:p> </o:p></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">ERROR: <span class="SpellE">avops</span>: <span class="SpellE">fixup_pushto_avp</span>:
bad <span class="SpellE">param</span> 1; <span class="GramE">expected :</span> $[<span class="SpellE">ruri|hdr_name</span>|..]<o:p /></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><o:p> </o:p></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><o:p> </o:p></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">Is it correct to push the AVP i<span class="GramE">:1000</span>
to the <span class="SpellE">ruri</span>? Do I need to define aliases in the <span class="SpellE">modparam</span> perhaps?<o:p /></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><o:p> </o:p></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">Any help would be appreciated.<o:p /></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">Many thanks,<o:p /></span></font>

<br />&gt; <span class="GramE"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">Aisling.</span></font></span><font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><o:p /></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><o:p> </o:p></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">p.s. In case anyone was following my other post regarding asterisk
voicemail – It’s now working using <span class="SpellE">avpops</span>,
the problem was with my asterisk<o:p /></span></font>

<br />&gt; <span class="GramE"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">config</span></font></span><font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">. There is
still a problem playing back the messages though.<span style="">            </span><o:p /></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><o:p> </o:p></span></font>

<br />&gt; <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><o:p> </o:p></span></font>

<br />&gt; <font size="3" face="Times New Roman"><span style="font-size: 12pt;"><o:p> </o:p></span></font>

-------------------Legal  Disclaimer---------------------------------------

The above electronic mail transmission is confidential and intended only for the person to whom it is addressed. Its contents may be protected by legal and/or professional privilege. Should it be received by you in error please contact the sender at the above quoted email address. Any unauthorised form of reproduction of this message is strictly prohibited. The Institute does not guarantee the security of any information electronically transmitted and is not liable if the information contained in this communication is not a proper and complete record of the message as transmitted by the sender nor for any delay in its receipt.

<br />
<br />
<br />
</font>
</BODY>
</HTML>