[SR-Users] Extract user from AOR

Grant Bagdasarian grantbagdasarian at gmail.com
Tue Sep 24 19:45:53 CEST 2019


Hello,

I've been trying to extract the user part from an AoR using
transformations in Python (KEMI), but without success.

The reg_fetch_contacts function has been called successfully before
trying to access the AoR.

None of the below statements work for me. They all return None.

user = _.pv.get("$(ulc(profile=>aor){uri.user})")
user = _.pv.get("$(ulc(profile=>aor){tobody.user})")

or

_.pv.sets("$var(aor)", _.pv.get("$(ulc(profile=>aor))"))
user = _.pv.get("$(var(aor){tobody.user})")
user = _.pv.get("$(var(aor){uri.user})")

I'm not sure what's causing the None result.
Could it be the curly braces being used for string interpolation in Python?
Or are these transformations not able to extract the value since the
AoR has the following format: user at domain?

If the same can be accomplished in another way, please let me know.

Regards,

Grant



More information about the sr-users mailing list