<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:10pt">Hi,<br><br>Hi,<br><br>Without s for example: <br>$avp(callfwd)<br>not:<br> $avp(s:callfwd)<br><br><div><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span>// Binan<br></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span></span></div><div><br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">Från:</span></b> Engineer voip &lt;forvoip4@gmail.com&gt;<br>
 <b><span style="font-weight: bold;">Till:</span></b> OpenSIPS users mailling list &lt;users@lists.opensips.org&gt; <br> <b><span style="font-weight: bold;">Skickat:</span></b> torsdag, 18 oktober 2012 15:34<br> <b><span style="font-weight: bold;">Ämne:</span></b> Re: [OpenSIPS-Users] Transfering a call by opensips<br> </font> </div> <br>
<div id="yiv702025696">Hi,<br>I trying to do that with avpops module and usr_preferenses table.<br>my script is:<br><br>if ( avp_db_load("$ru/username","a") ) <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xlog("L_INFO", " ------------- OFF LINE FORWARD phone number: $avp(s:callfwd)\n");<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xlog("L_INFO", " ------------- OFF LINE FORWARD from time: $avp(s:from_time)\n");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xlog("L_INFO", " ------------- OFF LINE FORWARD TO time: $avp(s:to_time)\n");<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xlog("L_INFO", "method &lt;$rm&gt; Transforwarding Call from &lt;$fu&gt; r-uri &lt;$ru&gt;\n");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(&nbsp; avp_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ote"><b>but the result is: <br>&nbsp;</b><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<b>&nbsp; ------------- OFF LINE FORWARD phone number:&nbsp; 12<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ------------- OFF LINE FORWARD from time:&nbsp; 14<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; ------------- OFF LINE FORWARD TO time:&nbsp; &lt;nul&gt;</b><br>
<br><b>Why i get 12 instead of callfwd value&nbsp;&nbsp; ??</b><br><br>2012/10/18 Engineer voip <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:forvoip4@gmail.com" target="_blank" href="mailto:forvoip4@gmail.com">forvoip4@gmail.com</a>&gt;</span><br><blockquote class="yiv702025696gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Muhammad,<br><br>I think dynamic routing is used only to routing outgoing calls but me i want to routing an incomming calls to user C between 11h and 14h when the user A called him.<br><b>&nbsp;(user A is an external user and B is an User registred on My opensips)</b><div class="yiv702025696HOEnZb">
<div class="yiv702025696h5"><br>
<br><div class="yiv702025696gmail_quote">2012/10/18 Muhammad Shahzad <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:shaheryarkh@googlemail.com" target="_blank" href="mailto:shaheryarkh@googlemail.com">shaheryarkh@googlemail.com</a>&gt;</span><br><blockquote class="yiv702025696gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div>Binan, avp db is usually used for temporary data storage e.g. To share some value between two call session etc. So while avp db can be used for this but then you need to make sure you never call avp db clear in your script.</div>



<div>Secondly you can use drouting to route any call, not just calls to gw. You need to create rule that call should not be routed to user B during 11h to 14h. So drouting lookup will fail. Then you check in alias db which will tell you user c is alias to user b and you can then route call to user c. This way you can create N x N drouting to alias rules.</div>



<div>Thank you.<br></div><div><div>
<div>On Oct 18, 2012 10:34 AM, "Binan AL Halabi" &lt;<a rel="nofollow" ymailto="mailto:binanalhalabi@yahoo.com" target="_blank" href="mailto:binanalhalabi@yahoo.com">binanalhalabi@yahoo.com</a>&gt; wrote:<br>
&gt;</div><blockquote class="yiv702025696gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-size:10pt;font-family:times new roman, new york, times, serif;"><div><span></span></div><div>

<span>Hi,</span></div>
<div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:times new roman, new york, times, serif;"><span>Add them as Attribute and Value(opensipsctl <span>avp</span> add ....... ): Add them as two separate AVP. <br>


</span></div><div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:times new roman, new york, times, serif;"><span>Then load them in your script as AVP (avp_db_load function).<br></span></div>


<div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:times new roman, new york, times, serif;"><br><span></span></div><div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:times new roman, new york, times, serif;">


<span>// Binan</span></div><div><br></div>  <div style="font-family:times new roman, new york, times, serif;font-size:10pt;"> <div style="font-family:times new roman, new york, times, serif;font-size:12pt;"> <div dir="ltr"> <font face="Arial"> <hr size="1">


  <b><span style="font-weight:bold;">Från:</span></b> Engineer voip &lt;<a rel="nofollow" ymailto="mailto:forvoip4@gmail.com" target="_blank" href="mailto:forvoip4@gmail.com">forvoip4@gmail.com</a>&gt;<br> <b><span style="font-weight:bold;">Till:</span></b> Binan AL Halabi &lt;<a rel="nofollow" ymailto="mailto:binanalhalabi@yahoo.com" target="_blank" href="mailto:binanalhalabi@yahoo.com">binanalhalabi@yahoo.com</a>&gt;; OpenSIPS users mailling list &lt;<a rel="nofollow" ymailto="mailto:users@lists.opensips.org" target="_blank" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>&gt; <br>


 <b><span style="font-weight:bold;">Skickat:</span></b> torsdag, 18 oktober 2012 10:21<br> <b><span style="font-weight:bold;">Ämne:</span></b> Re: [OpenSIPS-Users] Transfering a call by opensips<br> </font> </div> <br>
<div>Hi,<br><br><span lang="en"><span>I don't have</span> <span>the fields in user_preferences&nbsp;</span> <span>table or i add them ?</span></span><br><br>
<div>2012/10/18 Binan AL Halabi <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:binanalhalabi@yahoo.com" target="_blank" href="mailto:binanalhalabi@yahoo.com">binanalhalabi@yahoo.com</a>&gt;</span><br><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



<div><div style="font-size:10pt;font-family:times new roman, new york, times, serif;">Hi,<br><br>Store in usr_preferences table the time_from and time_to<br>then read them in your script using avpops module <br>Take the hour of the call and compare it to the range you got it from database.<br>



<br>http://www.opensips.org/html/docs/modules/1.7.x/avpops.html<br><br>// Binan&nbsp; <br><br><div><span></span></div><div style="font-family:times new roman, new york, times, serif;font-size:10pt;">



 <div style="font-family:times new roman, new york, times, serif;font-size:12pt;"> <div dir="ltr"> <font face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">Från:</span></b> Engineer Voip &lt;<a rel="nofollow" ymailto="mailto:forvoip4@gmail.com" target="_blank" href="mailto:forvoip4@gmail.com">forvoip4@gmail.com</a>&gt;<br>



 <b><span style="font-weight:bold;">Till:</span></b> <a rel="nofollow" ymailto="mailto:users@lists.opensips.org" target="_blank" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a> <br> <b><span style="font-weight:bold;">Skickat:</span></b> torsdag, 18 oktober 2012 8:53<br>



 <b><span style="font-weight:bold;">Ämne:</span></b> [OpenSIPS-Users] Transfering a call by opensips<br> </font> </div><div><div> <br>
Hello all, <br>I want to transfert the call to user C when user A calls user B in interval of time for example: 11h-14h<br>I can do that by asterisk but i prefer to do it by opensips<br>It's possible to do that by opensips?<br>



<br>Cordialement. <br>Envoyé de mon iPhone<br></div></div><div>_______________________________________________<br>Users mailing list<br><a rel="nofollow" ymailto="mailto:Users@lists.opensips.org" target="_blank" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>



http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br><br><br> </div></div> </div>  </div></div><br>_______________________________________________<br>




Users mailing list<br>
<a rel="nofollow" ymailto="mailto:Users@lists.opensips.org" target="_blank" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><font color="#663300"><font face="comic sans ms,sans-serif"><br><span>Best Regards.</span><br></font></font><br><br>
</div><br><br> </div> </div>  </div></div><br>_______________________________________________<br>
Users mailing list<br>
<a rel="nofollow" ymailto="mailto:Users@lists.opensips.org" target="_blank" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote>
</div></div><br>_______________________________________________<br>
Users mailing list<br>
<a rel="nofollow" ymailto="mailto:Users@lists.opensips.org" target="_blank" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><font color="#663300"><font face="comic sans ms,sans-serif"><br><span style="">Best Regards.</span><br></font></font><br><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><font color="#663300"><font face="comic sans ms,sans-serif"><br><span style="color:rgb(0,0,0);">Best Regards.</span><br></font></font><br><br>
</div><br>_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@lists.opensips.org" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br><br><br> </div> </div>  </div></body></html>