[SR-Users] Add country code on incoming calls - if not present

Daniel Tryba d.tryba at pocos.nl
Tue Sep 1 18:01:26 CEST 2015


On Tuesday 01 September 2015 17:37:36 Michael Nielsen wrote:
> What if I just want to lookup the country code IF the country code is not
> set.
> Then queries to MySQL for this would only be made in the cases where the
> subscriber do not type in + or 00?

if(!$rU!="^(\+|00)")
 
> I've tried to look at avpops which apparently uses the usr_preferences as
> standard - but without any luck...

Should work, start by debugging the queries made when you call the avp* 
functions.



More information about the sr-users mailing list