[OpenSIPS-Users] how to use DB_HTTP module ?

Andrei Dragus adragus at opensips.org
Mon May 17 16:29:04 CEST 2010


> I understand that this module isn't intended to be used to share variables
> with PHP?
>   
No, this was not the purpose of this module.

> I want to use this module to use a php script to process each call
>
> If I do this:
>
> avp_db_query("select something from table", $avp(i:986));
>
> can I retrieve the results on my $avp(i:986) ?
>
> What I must have In my script.php to treat this request and make the
> exchange ?
>   
I don't know PHP but what you have to do is build a 200 OK HTTP reply 
containing the body:

string
answer

After this $avp(i:986) will contain "answer".

-- 
Andrei Dragus
www.voice-system.ro 




More information about the Users mailing list