I took the out-of-the-box public context dialplan,
added an entry to dial a 10 digit number through the default context and when
it ran, I noticed in the console log that all the values below are either null
or empty.
To be more specific:
In the public context I’ve added
this extension in the beginning:
<extension name="UV_caller">
<condition
field="destination_number" expression="^123456$">
<action
application="transfer" data="1555123456 XML default"/>
</condition>
</extension>
If you want, I can pastebin the log for
you to see. It would be easier for you to replicate it yourself and see. It’s
quite easy to replicate.
From:
Sent: Saturday, February 07, 2009
8:51 PM
To:
Subject: Re: [Freeswitch-users]
Global Variables forgotten through thepublic context?
No the vars are there can you provide more detail on what exactly
you're doing? The default config uses the call_debug variable and its a
global set in vars.xml.
/b
On Feb 7, 2009, at 3:40 AM, UV wrote:
Another question:
When I try routing calls through the
public context to the default context, global variables (set in vars.xml) seem
to be “forgotten” and appear blank.
I’m trying a very simple scenario
of an incoming call on the public context routed to a phone number which is
rightfully captured at “local.example.com” but all three variables
${outbound_caller_id_number}, ${outbound_caller_id_name} and ${default_gateway}
appear to be blanked out (according to the console debug output).
Again, any idea what am I doing wrong?