Hello, in a bridge I can evaluate a sofia contact like <action application="bridge" data="${sofia_contact(internal/100@sys.local)}^222" /> that works fine. If I try to use the same approach in a originate like: originate ${sofia_contact(user/1000)} &park I can see: 2014-01-23 20:14:18.216587 [DEBUG] switch_ivr_originate.c:2050 Parsing global variables 2014-01-23 20:14:18.216587 [ERR] switch_core_session.c:496 Could not locate channel type ${sofia_contact(user 2014-01-23 20:14:18.216587 [NOTICE] switch_ivr_originate.c:2651 Cannot create outgoing channel of type [${sofia_contact(user] cause: [CHAN_NOT_IMPLEMENTED] 2014-01-23 20:14:18.216587 [DEBUG] switch_ivr_originate.c:3622 Originate Resulted in Error Cause: 66 [CHAN_NOT_IMPLEMENTED] Is there a way to resolve/evaluate sofia_contact also in an originate? Thanks Markus
Perhaps you need expand - - http://wiki.freeswitch.org/wiki/Mod_commands#expand Example: expand originate sofia/internal/1001%${domain} 9999 In this example the value of ${domain} is expanded. If the domain were, for example, "192.168.1.1" then this command would be executed: originate sofia/internal/1001%192.168.1.1 9999 [edit<http://wiki.freeswitch.org/index.php?title=Fsctl&action=edit§ion=T-1> ] -Avi
"expand originate ${sofia_contact(user/1001)} &park“ works! Many Thanks Markus Am 23.01.2014 um 21:22 schrieb Avi Marcus <avi@avimarcus.net>:
Perhaps you need expand - - http://wiki.freeswitch.org/wiki/Mod_commands#expand
Example:
expand originate sofia/internal/1001%${domain} 9999 In this example the value of ${domain} is expanded. If the domain were, for example, "192.168.1.1" then this command would be executed:
originate sofia/internal/1001%192.168.1.1 9999 [edit] -Avi _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Avi Marcus
-
mbo