GEOLOC_PROFILE(parameter[,options])
When used to set a parameter on a profile, if the profile doesn't already exist, a new one will be created automatically.
The ${GEOLOCPROFILESTATUS} channel variable will be set with a return code indicating the result of the operation. Possible values are:
0- Success-1- No or not enough parameters were supplied-2- There was an internal error finding or creating a profile-3- There was an issue specific to the parameter specified (value not valid or parameter name not found, etc.)
parameterrequired - The profile parameter to operate on. The following fields from the Location and Profile objects are supported.idlocation_referencemethodallow_routing_useprofile_precedenceformatpidf_elementpidf_element_idlocation_sourcenoteslocation_infolocation_info_refinementlocation_variableseffective_locationusage_rulesconfidencedevice_id
optionsa- Append provided value to the specified parameter instead of replacing the existing value. This only applies to variable list parameters likelocation_info_refinement.-
r- Before reading or after writing the specified parameter, re-resolve theeffective_locationandusage_rulesparameters using thelocation_variablesparameter and the variables set on the channel in effect at the time this function is called.Note
On a read operation, this does not alter the actual profile in any way. On a write operation however, the
effective_locationand/orusage_rulesparameters may indeed change and those changes will be passed on to any outgoing channel.
User Notes
No notes yet. Be the first to contribute a tip or example.
Contribute a note
Share a tip, gotcha, or practical example. Keep it under 2000 characters. No questions (use the Asterisk community forums for support). Wrap code in backticks.