[Freeswitch-users] User variables are not inserted when bridging to user

Stanislav Sinyagin ssinyagin at yahoo.com
Sun Jun 16 16:26:19 MSD 2013


at https://wiki.freeswitch.org/wiki/XML_User_Directory_Guide

it says:
Any variables defined in the domain or user will be defined as channel 
variables when there is a call to user or when there is an inbound calls
 from that user. 

So, when the user places a call, I see the variables injected into the channel as expected.

When the call is routed to the user through Local_Extensions via bridge user/7012, there's no indication that these variables are added to the channel.

You can see a piece of my XML User directory below, and the rest is pretty much like in vanilla config.







>________________________________
> From: Michael Collins <msc at freeswitch.org>
>To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org> 
>Sent: Sunday, June 16, 2013 6:04 AM
>Subject: Re: [Freeswitch-users] User variables are not inserted when bridging to user
> 
>
>
>
>
>
>
>
>On Sat, Jun 15, 2013 at 6:12 PM, Stanislav Sinyagin <ssinyagin at yahoo.com> wrote:
>
>I solved the problem by enabling only G722 on the client. But still, the user variables seem to be applied in calls from the user only, and not when a call is bridged to the user. After bridging, only the variables in dial-string are taken into account.
>>
>>
>>So, either Wiki is wrong, or there's a bug in the code.
>>
>** Citation needed
>
>
>Can you point out what you tried in the wiki? Also, do you have logs and config samples up on the pastebin?
>
>-MC
> 
>
>
>>
>>
>>
>>
>>>________________________________
>>> From: Michael Collins <msc at freeswitch.org>
>>>To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org> 
>>>Sent: Sunday, June 16, 2013 2:18 AM
>>>Subject: Re: [Freeswitch-users] User variables are not inserted when bridging to user
>>> 
>>>
>>>
>>>Look at the discussion on the wiki about inbound late negotiation - that may help you put all the pieces together.
>>>
>>>-MC
>>>
>>>http://wiki.freeswitch.org/wiki/Codec_Negotiation
>>>
>>>
>>>
>>>
>>>
>>>On Fri, Jun 14, 2013 at 6:15 PM, Stanislav Sinyagin <ssinyagin at yahoo.com> wrote:
>>>
>>>I'm using the latest 1.2 stable branch.
>>>>
>>>>
>>>>I want one of my directory users to have specific codec preferences, so I do in my XML directory:
>>>>
>>>>
>>>>  <user id="7012">
>>>>    <params>
>>>>      <param name="a1-hash"
 value="538db5a1dcf95cd9df44bf2ff0430c4b"/>
>>>>    </params>
>>>>    <variables>
>>>>      <variable name="absolute_codec_string" value="G722,PCMA,PCMU"/>
>>>>    </variables>
>>>>  </user>
>>>>
>>>>
>>>>
>>>>But when the call is bridged to user/7012, this variable is not taken into account, and the session inherits the codec from A-leg.
>>>>
>>>>
>>>>When the user dials out, I see this variable in the "info" output, but not when the user extension gets called.
>>>>
>>>>
>>>>Any idea why? Wiki says, the user variables should be used in both in- and out- calls, and the source code looks quite right.
>>>>
>>>>
>>>>
>>>>
>>>>thanks
>>>>
>>>>_________________________________________________________________________
>>>>Professional FreeSWITCH Consulting Services:
>>>>consulting at freeswitch.org
>>>>http://www.freeswitchsolutions.com
>>>>
>>>>
>>>>
>>>>
>>>>Official FreeSWITCH Sites
>>>>http://www.freeswitch.org
>>>>http://wiki.freeswitch.org
>>>>http://www.cluecon.com
>>>>
>>>>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
>>>>
>>>>
>>>
>>>
>>>-- 
>>>Michael S Collins
>>>Twitter: @mercutioviz
>>>http://www.FreeSWITCH.org
>>>http://www.ClueCon.com
>>>http://www.OSTAG.org
>>>
>>>
>>>_________________________________________________________________________
>>>Professional FreeSWITCH Consulting Services:
>>>consulting at freeswitch.org
>>>http://www.freeswitchsolutions.com
>>>
>>>
>>>
>>>
>>>Official FreeSWITCH Sites
>>>http://www.freeswitch.org
>>>http://wiki.freeswitch.org
>>>http://www.cluecon.com
>>>
>>>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
>>>
>>>
>>>
>>_________________________________________________________________________
>>Professional FreeSWITCH Consulting Services:
>>consulting at freeswitch.org
>>http://www.freeswitchsolutions.com
>>
>>
>>
>>
>>Official FreeSWITCH Sites
>>http://www.freeswitch.org
>>http://wiki.freeswitch.org
>>http://www.cluecon.com
>>
>>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
>>
>>
>
>
>-- 
>Michael S Collins
>Twitter: @mercutioviz
>http://www.FreeSWITCH.org
>http://www.ClueCon.com
>http://www.OSTAG.org
>
>
>_________________________________________________________________________
>Professional FreeSWITCH Consulting Services:
>consulting at freeswitch.org
>http://www.freeswitchsolutions.com
>
>
>
>
>Official FreeSWITCH Sites
>http://www.freeswitch.org
>http://wiki.freeswitch.org
>http://www.cluecon.com
>
>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/20130616/263ac2f6/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list