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> (user A is an external user and B is an User registred on My opensips)</b><br>
<br><div class="gmail_quote">2012/10/18 Muhammad Shahzad <span dir="ltr">&lt;<a href="mailto:shaheryarkh@googlemail.com" target="_blank">shaheryarkh@googlemail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p>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.</p>


<p>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.</p>


<p>Thank you.<br></p><div class="HOEnZb"><div class="h5">
<p>On Oct 18, 2012 10:34 AM, &quot;Binan AL Halabi&quot; &lt;<a href="mailto:binanalhalabi@yahoo.com" target="_blank">binanalhalabi@yahoo.com</a>&gt; wrote:<br>
&gt;</p><blockquote class="gmail_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 href="mailto:forvoip4@gmail.com" target="_blank">forvoip4@gmail.com</a>&gt;<br> <b><span style="font-weight:bold">Till:</span></b> Binan AL Halabi &lt;<a href="mailto:binanalhalabi@yahoo.com" target="_blank">binanalhalabi@yahoo.com</a>&gt;; OpenSIPS users mailling list &lt;<a href="mailto:users@lists.opensips.org" target="_blank">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&#39;t have</span> <span>the fields in user_preferences </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" href="mailto:binanalhalabi@yahoo.com" target="_blank">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><a href="http://www.opensips.org/html/docs/modules/1.7.x/avpops.html" target="_blank">http://www.opensips.org/html/docs/modules/1.7.x/avpops.html</a><br><br>// Binan  <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" href="mailto:forvoip4@gmail.com" target="_blank">forvoip4@gmail.com</a>&gt;<br>


 <b><span style="font-weight:bold">Till:</span></b> <a rel="nofollow" href="mailto:users@lists.opensips.org" target="_blank">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&#39;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" href="mailto:Users@lists.opensips.org" target="_blank">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>  </div></div><br>_______________________________________________<br>



Users mailing list<br>
<a rel="nofollow" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a rel="nofollow" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">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 href="mailto:Users@lists.opensips.org" target="_blank">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></blockquote><p></p>
</div></div><br>_______________________________________________<br>
Users mailing list<br>
<a 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></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>