[OpenSIPS-Users] Get value from the Presence module table

duane.larson at gmail.com duane.larson at gmail.com
Fri Aug 24 16:49:53 CEST 2012


Pieri,

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.

http://www.opensips.org/html/docs/modules/1.8.x/dialog.html#id294379
http://www.opensips.org/Resources/DocsTutorials#toc9

Does that help? Or are there more scenarios?



On , Pieri Mavarez <pasaportefacil at gmail.com> wrote:
> Hi,

> What im trying to do is:


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



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


> Pierina M.



> 2012/8/24 Muhammad Shahzad shaheryarkh at googlemail.com>

> Use AVPOPS module, you can connect to any database and runny any SQL on  
> it from within opensips.cfg,

> http://www.opensips.org/html/docs/modules/1.8.x/avpops.html#id292750




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




> Thank you.


> On Fri, Aug 24, 2012 at 1:54 PM, Pieri Mavarez pasaportefacil at gmail.com>  
> wrote:




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



> How can i enter the database from the opensips.cfg file to use this info?



> Thanks


> Pierina M




> _______________________________________________

> Users mailing list

> Users at lists.opensips.org

> http://lists.opensips.org/cgi-bin/mailman/listinfo/users






> --
> Muhammad Shahzad
> -----------------------------------
> CISCO Rich Media Communication Specialist (CRMCS)

> CISCO Certified Network Associate (CCNA)

> Cell: +92 334 422 40 88
> MSN: shari_786pk at hotmail.com
> Email: shaheryarkh at googlemail.com






> _______________________________________________

> Users mailing list

> Users at lists.opensips.org

> http://lists.opensips.org/cgi-bin/mailman/listinfo/users







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120824/5d891f60/attachment.htm>


More information about the Users mailing list