[Freeswitch-users] How to find destination IP address of b-leg in "show calls" or alike?

Victor Chukalovskiy victor.chukalovskiy at gmail.com
Fri Sep 2 22:22:09 MSD 2016


The IP I saw in the actual "show channels" dump represents the value of 
the far-end signaling IP for incoming (a-leg) of the call. However, for 
b-leg of the call the IP value printed is the far-end IP of the 
corresponding a-leg. So the variable is not just named differently, but 
also doesn't contain expected value for the b-leg of the call.

On 16-09-02 01:22 PM, Michael Jerris wrote:
> look at the actual data.  it doesn’t have the same name ...
>
>> On Sep 2, 2016, at 12:47 PM, Victor Chukalovskiy <victor.chukalovskiy at gmail.com> wrote:
>>
>> Michael,  saw your answer thank you. Yes, would prefer not to mess with DB.
>>
>> I searched and I couldn't find the value of ${network_address} in "show
>> channels" output. I'm on 1.6.6 still if it matters. Here is the header
>> row of "show channels":
>>
>> uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,application,application_data,dialplan,context,read_codec,read_rate,read_bit_rate,write_codec,write_rate,write_bit_rate,secure,hostname,presence_id,presence_data,callstate,callee_name,callee_num,callee_direction,call_uuid,sent_callee_name,sent_callee_num,initial_cid_name,initial_cid_num,initial_ip_addr,initial_dest,initial_dialplan,initial_context
>>
>> "network_address" isn't there :(
>>
>> On 16-09-02 12:34 PM, Michael Jerris wrote:
>>> see my previous answer to this question on this thread.  You don’t need to mess with anything, its already there.
>>>
>>>> On Sep 1, 2016, at 10:11 PM, Victor Chukalovskiy <victor.chukalovskiy at gmail.com> wrote:
>>>>
>>>> Thank you, that would be for a specific call. Anything that will do for all calls at once?
>>>>
>>>>    Original Message
>>>> From: Stanislav Sinyagin
>>>> Sent: Thursday, September 1, 2016 21:16
>>>> To: FreeSWITCH Users Help
>>>> Reply To: FreeSWITCH Users Help
>>>> Subject: Re: [Freeswitch-users] How to find destination IP address of b-leg in "show calls" or alike?
>>>>
>>>> uuid_dump should show all variables
>>>>
>>>> On Thu, Sep 1, 2016 at 8:49 PM, Victor Chukalovskiy
>>>> <victor.chukalovskiy at gmail.com> wrote:
>>>>> Good day, I've been studying output of "show calls", "show detailed
>>>>> calls", and "show channels" for quite some time.
>>>>>
>>>>> Surprisingly, I can't find a value of ${network_address} variable or
>>>>> anything similar that will tell me for each outgoing leg SIP IP address
>>>>> on the far end. In other words, how do I find IP address of SIP UAS
>>>>> FreeSWITCH is communicating with on every outgoing call leg?
>>>>>
>>>>> I managed to get it in CDRs by dumping ${network_address}, but can't get
>>>>> it for active calls dump. Is there truly nothing in "show calls" or
>>>>> equivalent that will help me? Should I submit a feature request then?
>>>>>
>>>>> Few cents on my call scenario:
>>>>>
>>>>> SIP call coming in (a-leg) --> multiple sip calls going out (b-legs).
>>>>> I'm originating my b-legs via sofia gateways (so IP address of the
>>>>> far-end is picked up from gateway config, and not mentioned in the
>>>>> dial-plan in any way or form).
>>>>>
>>>>> Many thanks,
>>>>>
>>>>> -Victor
>>>>>
>>> _________________________________________________________________________
>>> 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
>>
>> _________________________________________________________________________
>> 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
>
> _________________________________________________________________________
> 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




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