I am integrating cgrates with FusionPBX. I have added 3 new variable to the extension page, cgr_reqtype, cgr_subsystems and cgr_acd. I've added these to the database and they are being updated when the extension is updated. I am trying to use the Dialplan manager app to add these variables. (Dialplan | Dialplan Manager | Variables)
First to test this is the place to set the variable I did - action set cgr_reqtype=*prepaid and this created the correct record in Cgrate DB. So it's the right place.
Next I tried:
cgr_reqtype=${user_data ${destination_number}@${domain_name} var cgr_reqtype} . I get the result (cgr_reqtype=) in the FS_CLI console
To verify the syntax is correct and I can retrieve extension variables I tried:
cgr_reqtype=${user_data ${destination_number}@${domain_name} var extension_uuid} and see the result (cgr_reqtype=dbaae5da-6e08-4e41-88d2-cb4c1e4a7e59) which is correct.
How can I retrieve the cgr_reqtype variable?
First to test this is the place to set the variable I did - action set cgr_reqtype=*prepaid and this created the correct record in Cgrate DB. So it's the right place.
Next I tried:
cgr_reqtype=${user_data ${destination_number}@${domain_name} var cgr_reqtype} . I get the result (cgr_reqtype=) in the FS_CLI console
To verify the syntax is correct and I can retrieve extension variables I tried:
cgr_reqtype=${user_data ${destination_number}@${domain_name} var extension_uuid} and see the result (cgr_reqtype=dbaae5da-6e08-4e41-88d2-cb4c1e4a7e59) which is correct.
How can I retrieve the cgr_reqtype variable?