[Freeswitch-users] Variables in Dialplan - Problem with getting Variables from User Directory
Michal Bielicki
michal.bielicki at seventhsignal.de
Wed Aug 31 17:20:30 MSD 2011
Am 30.08.2011 um 23:06 schrieb Silvio Escher:
> Hi there,
>
> iam really getting crazy these days ;-)
>
> I've changed our Freeswitch Version some Weeks ago ( cannot remember exactly but proably from 1.0.6 ) to the git Head. ).
> Since this Change ( or better since the followed Config File Adaptions ;-) ) i noticed that i cannot use User Variables/Params inside the XML-Dialplan anymore.
>
> Some (relevant?! ;) ) Copy&Paste ..
>
> my Userentry
>
> <include>
> <user id="99">
> <params>
> <param name="password" value="something"/>
> <param name="vm-mailto" value="maybe_me at omeco.de"/>
> <param name="vm-mailfrom" value="noreply at omeco.de"/>
> <param name="vm-enabled" value="true"/>
> <param name="vm-password" value="user-choose"/>
> <param name="vm-email-all-messages" value="false"/>
> <param name="vm-notify-email-all-messages" value="true"/>
> <param name="vm-keep-local-after-email" value="true"/>
> </params>
> <variables>
> <variable name="outbound_caller_id_name" value="Omeco GmbH"/>
> <variable name="outbound_caller_id_number" value="06316803540"/>
> <variable name="effective_caller_id_name" value="Silvio Escher"/>
> <variable name="effective_caller_id_number" value="40"/>
> <variable name="callgroup" value="1"/>
> </variables>
> </user>
> </include>
>
> some dp snippet..
>
> before the change something like
>
> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/>
> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/>
>
> was working fine ..
>
> Actually iam using
>
> <action application="set" data="effective_caller_id_name=${user_data(${username}@${domain_name} var outbound_caller_id_name)}"/>
> <action application="set" data="effective_caller_id_number=${user_data(${username}@${domain_name} var outbound_caller_id_number)}"/>
if you set the user with set_user there is no requirement to use user_data since it should get the params for the respective user automatically.
>
> or an
>
> <action application="set_user" data="$1@${domain_name}"/>
>
> to get some or all Variables.
>
> But i Noticed that the "set_user" Thingie just gets me the Variables - not the Params.
> So i've still Issues with mod_voicemail ( Mailto is undef )
params are checked on call, so only there when required and checked each time, vars are fixed.
>
> 2011-08-30 22:02:32.904211 [DEBUG] switch_utils.c:709 Emailed data to [(null)]
> 2011-08-30 22:02:32.904211 [DEBUG] mod_voicemail.c:2809 Sending notify message to (null)
>
> Maybe i has something todo with an missing auth or wrong Domain or whatever .. but i have no clue where to look further.
>
> Any Help ( from little Hints till complete Miracle Solve ;-) ) is actually very welcome.
>
> Thanks in Advance,
> Silvio
>
>
> --
> Silvio Escher
> omeco GmbH
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
Michal Bielicki
Geschäftsführer / CEO
Seventh Signal Ltd. & Co. KG
Weigandufer 45, Büro 115, D-12059 Berlin
Voice: +49 30 60988730
Amtsgericht Charlottenburg HRA 44413 B
Ust.-ID: DE266981999
Geschäftsführer: Michal Bielicki
Persönlich Haftende Gesellschafterin:
Seventh Signal Ltd, 69 Great Hampton St. Birmingham,
B18 6EW, GB, Company Nr.: 06889439
WWW.: http://www.seventhsignal.de
----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110831/eb8618d1/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list