<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hi David and Brian<br><br>sorry to bother you again<br>the domain name : sip.yeah.com is not real, How to fix the issue<br><br>FreeSwitch register to sip server with user 071234 successull<br>FreeSwitch receive incomming from sip server and then transfer to 1000 extension successfull<br>the extension make call out using the sip server is fail<br>and the error :<br>sres_cache_get(0x93b4538, A, "sip.yeah.com.") returned 1 entries<br>
nta: for "sip.yeah.com" query "sip.yeah.com" A (cached)<br>
nua(0x9473108): call state changed: init -&gt; calling, sent offer<br>
soa_get_local_sdp(static::0xb7892a68, [0xb774b080], [0xb774b07c], [(nil)]) called<br>
nua(0x9473108): event i_state INVITE sent<br>
nua(0x9473108): event r_invite 503 DNS Error<br>
nua(0x9473108): call state changed: calling -&gt; init<br>
nua(0x9473108): event i_state 503 DNS Error<br>
nua(0x9473108): event i_terminated 503 DNS Error<br><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">i create 3 file:<br>&nbsp;&nbsp;&nbsp; 1 file 071234.xml in /usr/local/freeswitch/conf/sip_profiles/external for register to sip server<br>&nbsp;&nbsp;&nbsp; 1 file 01_fpt.net.xml in usr/local/freeswitch/conf/dialplan/default for outbound call<br>&nbsp;&nbsp;&nbsp; 1 file 00_inbound_did_fpt.xml in /usr/local/freeswitch/conf/dialplan/public for incomming call<br><br>the content of 071234.xml :<br>&lt;/include&gt;<br>&nbsp;&lt;gateway name="071234"&gt;<br>&nbsp; &lt;param name="username" value="071234"/&gt;<br>&nbsp; &lt;param name="from-user" value="071234"/&gt;<br>&nbsp; &lt;param name="proxy" value="sip.yeah.com"/&gt;<br>&nbsp; &lt;param name="username" value="071234"/&gt;<br>&nbsp; &lt;param name="password" value="hadn"/&gt;<br>&nbsp; &lt;param name="register-proxy" value="x.x.x.x"/&gt;<br>&nbsp; &lt;param
 name="register" value="true"/&gt;<br>&nbsp; &lt;param name="retry-seconds" value="10"/&gt;<br>&nbsp;&lt;/gateway&gt;<br>&lt;/include&gt;<br><br>the content of 00_inbound_did_fpt.xml:<br>&lt;include&gt;<br>&nbsp; &lt;extension name="public_did_fpt"&gt;<br>&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="071234"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="set" data="domain_name=$${domain}"/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="transfer" data="1000 XML default"/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>&nbsp; &lt;/extension&gt;<br>&lt;/include&gt;<br><br>the content of&nbsp; 01_fpt.net.xml:<br>&lt;include&gt;<br>&nbsp; &lt;extension name="sip.yeah.com"&gt;<br>&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^(\d+)$"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="bridge" data="sofia/gateway/071234/$1"/&gt;<br>&nbsp;&nbsp;&nbsp;
 &lt;/condition&gt;<br>&nbsp; &lt;/extension&gt;<br>&lt;/include&gt;<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">Từ:</span></b> David Ponzone &lt;david.ponzone@gmail.com&gt;<br><b><span style="font-weight: bold;">Đến:</span></b> freeswitch-users@lists.freeswitch.org<br><b><span style="font-weight: bold;">Gửi ngày:</span></b> 14:26:13, Thứ Ba, 30 tháng 3 2010 <br><b><span style="font-weight: bold;">Chủ đề:</span></b> Re: [Freeswitch-users] need help on call to gateway<br></font><br>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>&lt;include&gt;</div><div>&nbsp;&nbsp; &nbsp;&lt;extension name="Route_to_sip.yeah.com"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^(\d+)$"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="bridge" data="sofia/gateway/sip.yeah.com/0$1"/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<br></div></div></div></div></div></div></div></div><div>&lt;include&gt;</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>&lt;include&gt;</div><div><div><div><div id="yiv839470592"><div><div><div><div>&nbsp;&nbsp; &lt;extension name="Inbound_from_sip.yeah.com"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^YOUR_DID$"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="transfer" data="1000 XML default"/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<br></div></div></div></div></div></div></div></div><div>&lt;/include&gt;</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> <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;"><div style=""><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;"><div style=""><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#1c00ff">David
 Ponzone &nbsp;</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 rel="nofollow" ymailto="mailto:david.ponzone@ipeva.fr" target="_blank" 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: &nbsp; &nbsp; &nbsp;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: &nbsp; 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">&nbsp;</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: &nbsp; &nbsp; &nbsp;0811 46 26 26</span></font></font></div><div><font class="Apple-style-span" size="3" face="'Helvetica Neue'"><span class="Apple-style-span" style="font-size: 13px;"><div style="margin: 0px; font-family: Arial;
 font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(0, 34, 243);"><span style="text-decoration: underline;"><a rel="nofollow">www.ipeva.fr</a></span><span style="color: rgb(101, 104, 149);">&nbsp; -&nbsp; &nbsp;<span style="color: rgb(0, 34, 243); text-decoration: underline;"><a rel="nofollow">www.ipeva-studio.com</a></span></span></div><div style="margin: 0px; font-family: Arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(0, 34, 243);"><span class="Apple-style-span" style="text-decoration: underline;"><br></span></div><div style="margin: 0px; font-family: Arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(0, 34,
 243);"><span class="Apple-style-span"><div style="margin: 0px; text-align: justify; font-family: Arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-stretch: normal; 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.&nbsp;</i><b><i>IPeva</i></b><i>&nbsp;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 style="" 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;" valign="top">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>&lt;<a rel="nofollow"
 ymailto="mailto:brian@freeswitch.org" target="_blank" href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>&gt;</i></b> đã viết:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>Từ: Brian West &lt;<a rel="nofollow" ymailto="mailto:brian@freeswitch.org" target="_blank" href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>&gt;<br>Chủ đề: Re: [Freeswitch-users] need help on call to gateway<br>Đến: <a rel="nofollow" ymailto="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" 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="" 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;" 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>&lt;/include&gt;<br>&nbsp;&nbsp;&nbsp; &lt;gateway name="<a rel="nofollow" target="_blank" href="http://sip.yeah.com">sip.yeah.com</a>"&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="username" value="071234"/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="from-user" value="071234"/&gt;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="proxy" value="<a
 rel="nofollow" target="_blank" href="http://sip.yeah.com">sip.yeah.com</a>"/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="username" value="071234"/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="password" value="1234"/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="register-proxy" value="118.69.145.5"/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="register" value="true"/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="retry-seconds" value="10"/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/gateway&gt;<br>&lt;/include&gt;<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>&nbsp;&nbsp;&nbsp; &lt;extension name="<a rel="nofollow"
 target="_blank" href="http://sip.yeah.com">sip.yeah.com</a>"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="071234"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="transfer" data="1000 XML default"/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<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 rel="nofollow" target="_blank" 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 rel="nofollow" ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank"
 href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><span><a target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:<a target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br><span><a target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br></blockquote></div><br></div></div></div>
</div><br>
      <hr size=1> <a href="http://sg.rd.yahoo.com/vn/messenger/pingbox/mailtagline/*http://vn.messenger.yahoo.com/pingbox/"> Thiết kế ngay một Pingbox độc đáo cho riêng bạn!</a><br> Tạo một nơi để chat trên blog là chuyện nhỏ.</body></html>