<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18939">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>try to make a condition cond() in your dialplan</FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=xduvox@gmail.com href="mailto:xduvox@gmail.com">Octavio Duarte</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=freeswitch-users@lists.freeswitch.org
href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, December 26, 2010 3:37
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Freeswitch-users] how to know
gateway used by distributor</DIV>
<DIV><BR></DIV><FONT size=2><SPAN style="FONT-FAMILY: tahoma,sans-serif">Hello
everybody</SPAN><BR style="FONT-FAMILY: tahoma,sans-serif"><BR
style="FONT-FAMILY: tahoma,sans-serif"><SPAN
style="FONT-FAMILY: tahoma,sans-serif">I have this problem , when i use
this</SPAN><BR style="FONT-FAMILY: tahoma,sans-serif"></FONT><FONT
style="FONT-FAMILY: tahoma,sans-serif" size=2><BR><action application="set"
data="continue_on_fail=true"/><BR><BR>1 <action
application="bridge" data="sofia/internal/${</FONT><FONT
style="FONT-FAMILY: tahoma,sans-serif"
size=2>distributor(gwusers)}%${</FONT><FONT
style="FONT-FAMILY: tahoma,sans-serif" size=2>domain_name}^$1"
loop="4"/><BR>or<BR>2 <action application="bridge"
data="sofia/gateway/${</FONT><FONT style="FONT-FAMILY: tahoma,sans-serif"
size=2>distributor(gwproviders)}/$1" </FONT><FONT
style="FONT-FAMILY: tahoma,sans-serif" size=2>loop="10"</FONT><FONT
style="FONT-FAMILY: tahoma,sans-serif" size=2>/</FONT><FONT
style="FONT-FAMILY: tahoma,sans-serif" size=2>><BR><BR>both work
perfectly</FONT> <FONT style="FONT-FAMILY: tahoma,sans-serif"
size=2><BR><BR>but i don't know for with gateway call went out<BR><BR>i have
tried with ${bridge_channel} the result for the first example is<BR></FONT><PRE style="FONT-FAMILY: tahoma,sans-serif"><FONT size=2>sofia/internal/sip:1002@1xx.142.1x7.xxx </FONT><FONT style="FONT-FAMILY: tahoma,sans-serif" size=2>it is enough for me! </FONT><FONT size=2><BR><BR></FONT><FONT size=2>but for the second example this is the result <BR>
<BR>sofia/internal/5533186003 and i can't know the gateway that was used!<BR><BR>i use this <param name="master-file-only" value="true"/> in cdr_csv.conf.xml<BR><BR>so my question is: how can i know the gateway was used by distributor?<BR>
<BR>thanks in advance for your help<BR><BR><BR><BR><BR><BR><BR></FONT></PRE><FONT
size=2><BR style="FONT-FAMILY: tahoma,sans-serif"></FONT>
<P>
<HR>
<P></P>_______________________________________________<BR>FreeSWITCH-users
mailing
list<BR>FreeSWITCH-users@lists.freeswitch.org<BR>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<BR>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<BR>http://www.freeswitch.org<BR></BLOCKQUOTE></BODY></HTML>