Sorry, you are right, but what if his status is 'absent'?<div><br></div><div>Thanks in advanced for your quick response!</div><div><br></div><div><br><br><div class="gmail_quote">2012/8/24 <span dir="ltr"><<a href="mailto:duane.larson@gmail.com" target="_blank">duane.larson@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Pieri,<br><br>I am guessing there are more scenario's than "somebody is trying to call Bob and its status is 'busy', then send the call to another entity", but at least with the Bob scenario you could use the Dialog module and keep up with how many calls the CALLER has going and fail over to a different destination.<br>
<br><a href="http://www.opensips.org/html/docs/modules/1.8.x/dialog.html#id294379" target="_blank">http://www.opensips.org/html/docs/modules/1.8.x/dialog.html#id294379</a><br><a href="http://www.opensips.org/Resources/DocsTutorials#toc9" target="_blank">http://www.opensips.org/Resources/DocsTutorials#toc9</a><br>
<br>Does that help? Or are there more scenarios?<div class="HOEnZb"><div class="h5"><br><br><br><br>On , Pieri Mavarez <<a href="mailto:pasaportefacil@gmail.com" target="_blank">pasaportefacil@gmail.com</a>> wrote:<br>
> Hi,<br>> <br>> What im trying to do is:<br>> <br>> <br>> For exemple, if somebody is trying to call Bob and its status is 'busy', then send the call to another entity. For that, it is necessary to enter to the Presentity table and read the file that is in the 'body' field to find the status of the user.<br>
> <br>> <br>> <br>> Thanks, i hope i made myself clear :) i really dont know what to do. My boss adviced me to create a new module but i think that would be very hard to do.<br>> <br>> <br>> Pierina M.<br>
> <br>> <br>> <br>> 2012/8/24 Muhammad Shahzad <a href="mailto:shaheryarkh@googlemail.com" target="_blank">shaheryarkh@googlemail.com</a>><br>> <br>> Use AVPOPS module, you can connect to any database and runny any SQL on it from within opensips.cfg,<br>
> <br>> <a href="http://www.opensips.org/html/docs/modules/1.8.x/avpops.html#id292750" target="_blank">http://www.opensips.org/html/docs/modules/1.8.x/avpops.html#id292750</a><br>> <br>> <br>> <br>> <br>
> However, using this method is mostly recommended for databases other then opensips own native database. If you can give some details about what you are trying to do then may be we can advise some OpenSIPs module or function to do the job without manually querying the native database.<br>
> <br>> <br>> <br>> <br>> Thank you.<br>> <br>> <br>> On Fri, Aug 24, 2012 at 1:54 PM, Pieri Mavarez <a href="mailto:pasaportefacil@gmail.com" target="_blank">pasaportefacil@gmail.com</a>> wrote:<br>
> <br>> <br>> <br>> <br>> Hi, im trying to read the content from the table Presentity, more specifically, i want to read the file from 'body' field and use this information. <br>> <br>> <br>> <br>
> How can i enter the database from the opensips.cfg file to use this info?<br>> <br>> <br>> <br>> Thanks<br>> <br>> <br>> Pierina M<br>> <br>> <br>> <br>> <br>> _______________________________________________<br>
> <br>> Users mailing list<br>> <br>> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>> <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>> <br>> <br>> <br>> <br>> -- <br>> Muhammad Shahzad<br>> -----------------------------------<br>> CISCO Rich Media Communication Specialist (CRMCS)<br>> <br>> CISCO Certified Network Associate (CCNA)<br>
> <br>> Cell: <a href="tel:%2B92%20334%20422%2040%2088" value="+923344224088" target="_blank">+92 334 422 40 88</a><br>> MSN: <a href="mailto:shari_786pk@hotmail.com" target="_blank">shari_786pk@hotmail.com</a><br>
> Email: <a href="mailto:shaheryarkh@googlemail.com" target="_blank">shaheryarkh@googlemail.com</a><br>> <br>> <br>> <br>> <br>> <br>> <br>> _______________________________________________<br>> <br>
> Users mailing list<br>> <br>> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>> <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>> <br>> <br>> <br>> <br>></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></div>