[OpenSIPS-Users] Database search inside opensips
Schneur Rosenberg
rosenberg11219 at gmail.com
Mon Feb 12 10:20:53 EST 2018
You can use avp_db_query<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br />
<table style="border-top: 1px solid #D3D4DE;">
<tr>
<td style="width: 55px; padding-top: 13px;"><a
href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail"
target="_blank"><img
src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png"
alt="" width="46" height="29" style="width: 46px; height: 29px;"
/></a></td>
<td style="width: 470px; padding-top: 12px; color: #41424e;
font-size: 13px; font-family: Arial, Helvetica, sans-serif;
line-height: 18px;">Virus-free. <a
href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail"
target="_blank" style="color: #4453ea;">www.avg.com</a>
</td>
</tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1"
height="1"></a></div>
On Mon, Feb 12, 2018 at 4:48 PM, Brian Southworth
<brian.southworth at clocom.uk> wrote:
> Hi Opensips,
>
>
>
> Sorry for all my emails lately.
>
>
>
> Is there any way I can run a database search in opensips config while a
> route is being processed.
>
>
>
> Example scenario: Company has over 15 clients each with their own user id
> (lets call this a callgroup ID), so the call group id needs to be changed
> based on the extension calling to match the correct call group.
>
> $rU->accountcode (this is just an example).
>
>
>
> I just thought being able to change this on the fly would be easier than
> writing loads of new call groups into the Even based routing.
>
>
>
> Regards,
>
>
>
> Brian Southworth
>
> Communications Developer
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list