[Freeswitch-users] how to know gateway used by distributor

Madovsky infos at madovsky.org
Mon Dec 27 02:38:39 MSK 2010


try to make a condition cond() in your dialplan
  ----- Original Message ----- 
  From: Octavio Duarte 
  To: freeswitch-users at lists.freeswitch.org 
  Sent: Sunday, December 26, 2010 3:37 PM
  Subject: [Freeswitch-users] how to know gateway used by distributor


  Hello everybody

  I have this problem , when i use this

  <action application="set" data="continue_on_fail=true"/>

  1   <action application="bridge" data="sofia/internal/${distributor(gwusers)}%${domain_name}^$1"  loop="4"/>
  or
  2   <action application="bridge" data="sofia/gateway/${distributor(gwproviders)}/$1"  loop="10"/>

  both work perfectly 

  but i don't know for with gateway call went out

  i have tried with ${bridge_channel} the result for the first example is

sofia/internal/sip:1002 at 1xx.142.1x7.xxx  it is enough for me! but for the second example this is the result 
sofia/internal/5533186003 and i can't know the gateway that was used!i use this <param name="master-file-only" value="true"/>   in cdr_csv.conf.xmlso my question is:  how can i know the gateway was used by distributor?
thanks in advance for your help



------------------------------------------------------------------------------


  _______________________________________________
  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/20101226/f6a19c0b/attachment.html 


More information about the FreeSWITCH-users mailing list