[Freeswitch-users] variable direction

David Ponzone david.ponzone at ipeva.fr
Fri Apr 22 12:09:44 MSD 2011


Boris,

you don't set direction, it is set automatically.
If you call from the user you was talking about, the A-leg (from the user to FS) will be inbound, and the B-leg (from FS to the callee party) will be outbound.
If you call the user, it's the other way around, of course.

David Ponzone  Direction Technique
email: david.ponzone at ipeva.fr
tel:      01 74 03 18 97
gsm:   06 66 98 76 34

Service Client IPeva
tel:      0811 46 26 26
www.ipeva.fr  -   www.ipeva-studio.com

Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.




Le 22/04/2011 à 08:08, Boris Kovalenko a écrit :

> Hello!
> 
>     Yes, but this form of variable is available only to gateways? I've tried to set direction for user variable too without success. Variable is always present. My test enviroment:
> 
> <include>
>   <user id="73435230024">
>     <params>
>       <param name="password" value="012345"/>
>       <param name="vm-enabled" value="false"/>
>       <param name="vm-password" value="326699"/>
>     </params>
>     <variables>
>       <variable name="toll_allow" value="internal,local,domestic,international"/>
>       <variable name="v_test1" value="test1" direction="inbound"/>
>       <variable name="v_test2" value="test2" direction="outbound"/>
>       <!-- <variable name="v_tagnet_context" value="ho"/>-->
>     </variables>
>   </user>
> </include>
> 
> I do a call from this user to external gateway and see both variables are set with application=info.
> 
>> The direction variable is set at the time of the call based upon whether or not the user is the caller (outbound) or callee (inbound).
>> 
>> -MC
>> 
>> On Thu, Apr 21, 2011 at 7:01 PM, Boris Kovalenko <boris at tagnet.ru> wrote:
>> Hello!
>> 
>>     I found that with gateways I may use <variable ....
>> direction="..."/>. Is this possible with regular (directory) users too?
>> If not, may somebody explain why?
>> 
>> --
>> С уважением,
>>   Борис Коваленко
>>   ЗАО "Тагнет"
>>   тел. +7 (3435) 230001
>>   факс +7 (3435) 230005
>> 
>> 
>> _______________________________________________
>> 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
>> 
>> 
>> _______________________________________________
>> 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
> 
> 
> -- 
> С уважением,
>   Борис Коваленко
>   ЗАО "Тагнет"
>   тел. +7 (3435) 230001
>   факс +7 (3435) 230005
> _______________________________________________
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110422/7dae089f/attachment-0001.html 


More information about the FreeSWITCH-users mailing list