[Freeswitch-users] channel variable access issue

John Nash john.nash778 at gmail.com
Thu Sep 24 10:53:16 MSD 2015


Thank you. It turned out to be yet another stupid mistake of mine. I did
not add X- and as a result header was not being added. Problem is solved
but simple exporting variables should also work right? I will check more
closely later.

On Thu, Sep 24, 2015 at 9:45 AM, Brian West <brian at freeswitch.org> wrote:

> Verify the X headers are there on the outbound invite
>
>
> On Wednesday, September 23, 2015, John Nash <john.nash778 at gmail.com>
> wrote:
>
>> No not using loopback end point. I am just using uri of my freeswitch
>> profile in bridge application. Intention is same
>>
>> My freeswutch sip profile is listening to 127.0.0.1:5072 i need loopback
>> call to this profile only...
>>
>> 1- UA -----> Freeswitch 127.0.0.1:5072
>> 2- Freeswitch forks to two destination one is 127.0.0.1:5060 (My
>> gateway) and another back to 127.0.0.1:5072 where i catch it in
>> different extension this time.
>>
>>
>>
>>
>> On Thu, Sep 24, 2015 at 9:38 AM, Brian West <brian at freeswitch.org> wrote:
>>
>>> Are you using the loop back endpoint to do this? If so don't expect X
>>> headers to work there
>>>
>>>
>>> On Wednesday, September 23, 2015, John Nash <john.nash778 at gmail.com>
>>> wrote:
>>>
>>>> Yes I used INFO application but I do not see any of the custom
>>>> variables. I am using bridge application like
>>>> <action application="bridge" data="{ignore_early_media=true}
>>>> sofia/${sofia_profile_name}/iv-${regex(${sip_req_uri}|^kb-(.+)$|%1)},sofia/${sofia_profile_name}/${regex(${sip_req_uri}|^kb-(.+)$|%1)};fs_path=sip:
>>>> 127.0.0.1:5060"/>
>>>>
>>>> First destination in bridge application is coming back to my extension
>>>> matching with iv-(.*) but strangely I do not see a new invite in wireshark.
>>>>
>>>> I also saw loopback application in documentation is this something I
>>>> should try?..or I am using bridge application wrong way
>>>>
>>>> On Thu, Sep 24, 2015 at 8:40 AM, Brian West <brian at freeswitch.org>
>>>> wrote:
>>>>
>>>>> Have you tried the info app to see if the variable is there with a
>>>>> different prefix?
>>>>>
>>>>>
>>>>> On Wednesday, September 23, 2015, John Nash <john.nash778 at gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Here is my call flow and issue
>>>>>>
>>>>>> Step1 -- Call comes to freeswitch default dialplan
>>>>>> Step2 -- I set some custom channel variables )sip_h_my_var
>>>>>> Step3 -- I fork the call to multiple destinations using bridge
>>>>>> application with coma separated list.
>>>>>> Step4 - As one of the destination is my own freeswitch itself, call
>>>>>> again comes to same profile with different destination prefix
>>>>>> Step5 - I catch the call in different extension and try to access
>>>>>> channel variable sip_h_my_var but get nil value
>>>>>>
>>>>>> I tried export application and Bridge application arguments to pass
>>>>>> variables but I do not see my variables when i dump variables using Info
>>>>>> application. I only see the variables as per the Initial invite (It
>>>>>> converts some X- variables to sip_h_X variables)
>>>>>>
>>>>>> What else can I try?
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> *Brian West*
>>>>> brian at freeswitch.org
>>>>>
>>>>>
>>>>> *Twitter: @FreeSWITCH , @briankwest*
>>>>> http://www.freeswitchbook.com
>>>>> http://www.freeswitchcookbook.com
>>>>>
>>>>> Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit:
>>>>> /r/freeswitch <https://www.reddit.com/r/freeswitch>
>>>>>
>>>>> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
>>>>> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
>>>>>
>>>>>
>>>>>
>>>>> _________________________________________________________________________
>>>>> Professional FreeSWITCH Consulting Services:
>>>>> consulting at freeswitch.org
>>>>> http://www.freeswitchsolutions.com
>>>>>
>>>>> Official FreeSWITCH Sites
>>>>> http://www.freeswitch.org
>>>>> http://confluence.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
>>>>>
>>>>
>>>>
>>>
>>> --
>>>
>>> *Brian West*
>>> brian at freeswitch.org
>>>
>>>
>>> *Twitter: @FreeSWITCH , @briankwest*
>>> http://www.freeswitchbook.com
>>> http://www.freeswitchcookbook.com
>>>
>>> Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit:
>>> /r/freeswitch <https://www.reddit.com/r/freeswitch>
>>>
>>> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
>>> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
>>>
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://confluence.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
>>>
>>
>>
>
> --
>
> *Brian West*
> brian at freeswitch.org
>
>
> *Twitter: @FreeSWITCH , @briankwest*
> http://www.freeswitchbook.com
> http://www.freeswitchcookbook.com
>
> Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit:
> /r/freeswitch <https://www.reddit.com/r/freeswitch>
>
> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.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/20150924/3c2c968b/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list