Re: [OpenSIPS-Users] Database search inside opensips

2018-02-12 Thread Schneur Rosenberg
You can use avp_db_query


http://www.avg.com/email-signature?utm_medium=email_source=link_campaign=sig-email_content=webmail;
target="_blank">https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png;
alt="" width="46" height="29" style="width: 46px; height: 29px;"
/>
Virus-free. http://www.avg.com/email-signature?utm_medium=email_source=link_campaign=sig-email_content=webmail;
target="_blank" style="color: #4453ea;">www.avg.com




On Mon, Feb 12, 2018 at 4:48 PM, Brian Southworth
 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@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Database search inside opensips

2018-02-12 Thread Brian Southworth
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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users