[Freeswitch-users] How to get info from the b-leg

Anthony Minessale anthony.minessale at gmail.com
Wed Dec 3 07:37:07 PST 2008


outgoing calls to not have an ip value set.
if you want to store the dest ip in the cdr you need to set it as a custom
variable and insert it
into your template for csv cdr or it will just be there in xml cdr

On Wed, Dec 3, 2008 at 8:18 AM, regs at kinetix.gr <regs at kinetix.gr> wrote:

>  b-leg logging is enabled in the cdr module. but in the cdrs I cannot get
> any variables that refer to the b-leg.
>
> I tried the second way using ${sip_to_host} and {bleg_sip_to_host} but :
>
> a) the variable returns the FS IP on the a-leg CDR (correctly)
> b) the variable returns nothing on the b-leg CDR (empty). Shouldn't it
> return the "to" host of the b-leg (my providers address)?
>
>
> Anthony Minessale wrote:
>
> 2 options.
> 1) enable b-leg logging on the cdr module.
> 2) you can use the prefix bleg_ in a variable context to get to
> caller_profile members
> from the b leg.
>
> eg ${bleg_caller_id_name}
>
>
> On Wed, Dec 3, 2008 at 7:30 AM, regs at kinetix.gr <regs at kinetix.gr> wrote:
>
>> Hi,
>>
>>    I am making a simple bridge between two call legs :
>>
>> Client --(a-leg)--> FS --(b-leg)-->Provider
>>
>> How can I get information like network-address of the Provider,
>> media-address,
>> port used, media port used etc. from the second leg (b-leg)?
>>
>> Is all the information provided by the a-leg available for the b-leg as
>> well? If, yese
>> how can I access it? (and log it to my CDR file eventually)
>>
>> _______________________________________________
>> 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
>>
>
>
>
> --
> Anthony Minessale II
>
> FreeSWITCH http://www.freeswitch.org/
> ClueCon http://www.cluecon.com/
>
> AIM: anthm
> MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
> IRC: irc.freenode.net #freeswitch
>
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
> iax:guest at conference.freeswitch.org/888
> googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
> pstn:213-799-1400
>
> ------------------------------
>
> _______________________________________________
> Freeswitch-users mailing listFreeswitch-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://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
>
>


-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20081203/5802373a/attachment-0002.html 


More information about the FreeSWITCH-users mailing list