<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">False,<div><br></div><div>I think Brian is sleeping so I give you a quick answer.</div><div><br></div><div>For OUTBOUND:</div><div><br></div><div>Following my previous mail, you have to check if your user 1000 has the default context configured.</div><div>If it does, then you just need to add a file named 01_whatever.xml in conf/dialplan/default/.</div><div>(You may also remove from this path the remaining .xml files from the default install)</div><div>In 01_whatever.xml, put:</div><div><div><div><div id="yiv839470592"><div><div><div><div><br></div><div><include></div><div> <extension name="Route_to_sip.yeah.com"><br> <condition field="destination_number" expression="^(\d+)$"><br> <action application="bridge" data="sofia/gateway/sip.yeah.com/0$1"/><br> </condition><br> </extension><br></div></div></div></div></div></div></div></div><div><include></div><div><br></div><div>So when you dial any number not previously matched in default.xml (local users, voicemail, ...), this will bridge it to your gateway, adding 0 as a prefix.</div><div><br></div><div>For INBOUND:</div><div><br></div><div>In conf/dialplan/public/, add a file named whatever.xml with the following content:</div><div><br></div><div><include></div><div><div><div><div id="yiv839470592"><div><div><div><div> <extension name="Inbound_from_sip.yeah.com"><br> <condition field="destination_number" expression="^YOUR_DID$"><br> <action application="transfer" data="1000 XML default"/><br> </condition><br> </extension><br></div></div></div></div></div></div></div></div><div></include></div><div><br></div><div>Here, YOUR_DID is the DID number your provider allocated to you.</div><div>That is an exact match, so if you're not sure about the exact format, remove the leading ^, and match that on the longest part of the number you know about.</div><div><br></div><div>Of course, after doing all this, reloadxml.</div><div><br></div><div>It will perhaps not fit in your config exactly, but you should get the idea to get started.</div><div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#1C00FF">David Ponzone </font><font class="Apple-style-span" color="#000000" size="3"><span class="Apple-style-span" style="font-size: 12px; ">Direction Technique</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">email: <a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a></span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: 01 74 03 18 97</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">gsm: 06 66 98 76 34</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><br></font></div><div><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">Service Client<span class="Apple-converted-space"> </span></font><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#FF0000">IP</font></font><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">eva</font></div><div><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'"><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; "><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: 0811 46 26 26</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'" size="3"><span class="Apple-style-span" style="font-size: 13px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span style="text-decoration: underline; "><a href="BLOCKED::http://www.ipeva.fr/">www.ipeva.fr</a></span><span style="color: rgb(101, 104, 149); "> - <span style="color: rgb(0, 34, 243); text-decoration: underline; "><a href="BLOCKED::http://www.ipeva-studio.com/">www.ipeva-studio.com</a></span></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span class="Apple-style-span" style="text-decoration: underline; "><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span class="Apple-style-span"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-align: justify; font: normal normal normal 10px/normal Arial; color: rgb(192, 192, 192); "><i>Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. </i><b><i>IPeva</i></b><i> décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.</i></div><div style="text-decoration: underline; text-align: justify; "><font class="Apple-style-span" color="#C0C0C0"><i><br></i></font></div></span></div></span></font></div></span></font></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"> </div><br><div><div>Le 30/03/2010 à 09:01, false a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><table cellspacing="0" cellpadding="0" border="0" style="position: static; z-index: auto; "><tbody><tr><td valign="top" style="font: inherit;">Hi Brian<br><br>could you guide me more to config on freeswitch<br><br>i want xilte with user 1000 can make call out to sip server <br>and the prefix when make call out to sip server : 0<br>and receive incomming call from SIP server<br><br>what file name i should create <br><br>Thank you<br><br><br>--- Ngày <b>Thứ 3, 30/03/10, Brian West <i><<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>></i></b> đã viết:<br><blockquote style="border-left-width: 2px; border-left-style: solid; border-left-color: rgb(16, 16, 255); margin-left: 5px; padding-left: 5px; position: static; z-index: auto; "><br>Từ: Brian West <<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>><br>Chủ đề: Re: [Freeswitch-users] need help on call to gateway<br>Đến: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>Ngày: Thứ Ba, 30 tháng 3, 2010, 4:37<br><br><div id="yiv839470592">its looking in context default... not public.<div><br></div><div>/b</div><div><br><div><div>On Mar 29, 2010, at 11:33 PM, false wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><table style="position: static; z-index: auto; " border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit; -x-system-font: none;" valign="top">Hi all<br><br>i use freeswitch to register to sip server<br>the domain is not real: <a rel="nofollow" target="_blank" href="http://sip.yeah.com">sip.yeah.com</a><br>the outbound proxy : 118.69.145.5<br><br>i create the sip.yeah.com.xml in /usr/local/freeswitch/conf/sip_profiles/external folder<br></include><br> <gateway name="<a rel="nofollow" target="_blank" href="http://sip.yeah.com">sip.yeah.com</a>"><br> <param name="username" value="071234"/><br> <param name="from-user" value="071234"/> <br> <param name="proxy" value="<a rel="nofollow" target="_blank" href="http://sip.yeah.com">sip.yeah.com</a>"/><br> <param name="username" value="071234"/><br> <param name="password" value="1234"/><br> <param name="register-proxy" value="118.69.145.5"/><br> <param name="register" value="true"/><br> <param name="retry-seconds" value="10"/><br> </gateway><br></include><br><br>so i use xlite register to freeswitch with user 1000<br>i start freeswitch , freeswitch start ok,<br>freeswitch register to sip server successfull with username 071234<br>xlite register to freeswitch successfull<br><br>so i edit the public.xml<br>for incomming call from sip server, i will forward to extension 1000<br> <extension name="<a rel="nofollow" target="_blank" href="http://sip.yeah.com">sip.yeah.com</a>"><br> <condition field="destination_number" expression="071234"><br> <action application="transfer" data="1000 XML default"/><br> </condition><br> </extension><br><br>but when i use xlite make call out from freeswitch to sip server and get no routing<br></td></tr></tbody></table></blockquote></div></div></div><br></blockquote></td></tr></tbody></table><br> <hr size="1"> Tốt hơn, thoáng gọn hơn, nhanh hơn - <a href="http://vn.mail.yahoo.com"> Trải nghiệm Yahoo! Mail mới hôm nay! </a>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><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></div><br></div></body></html>