The example in documentation for "set_dlg_profile()" shows:
Example 1.37. set_dlg_profile usage ... set_dlg_profile("inbound_call");
But the fact is that profile name doesn't allow non alphanumeric chars:
ERROR:dialog:add_profile_definitions: bad profile name <to_gw>, char _ - use only alphanumerical characters
¿?