FYI, we have several resources to help<br><a href="http://wiki.freeswitch.org/wiki/Regular_Expression">http://wiki.freeswitch.org/wiki/Regular_Expression</a><br><a href="http://bit.ly/aijtAC">http://bit.ly/aijtAC</a><br><br>
:)<br><br>-MC<br><br><div class="gmail_quote">On Thu, Oct 14, 2010 at 11:18 AM, Jeffrey Leung <span dir="ltr"><<a href="mailto:curriegrad2004@gmail.com">curriegrad2004@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Dialplan's regex doesn't look right to me. You'll need to fix that<br>
before you do anything else.<br>
<br>
I'd suggest this regex instead of the one you provided:<br>
^[0-4]0(10[1-9][0-9])$<br>
<br>
instead of this one<br>
^([0-4]0[01][0-9])$<br>
<br>
If you can't get the grasp of regular expressions, I'd highly suggest<br>
you to pick up a book and read up on it. Knowing regular expressions<br>
is a great skill to have ;)<br>
<br>
2010/10/14 江 Chiang 至中 Chih-Chung Wybie <<a href="mailto:tear152@hotmail.com">tear152@hotmail.com</a>>:<br>
> I tried use 1013@38 calls to 1019@37<br>
><br>
> show log below<br>
><br>
> 2010-10-14 17:50:41.249876 [NOTICE] switch_channel.c:675 New Channel<br>
> sofia/internal/<a href="mailto:1013@60.248.175.38">1013@60.248.175.38</a> [875fdeef-b94e-41fb-a621-ea005bbaedbd]<br>
> 2010-10-14 17:50:41.263809 [INFO] mod_dialplan_xml.c:331 Processing<br>
> 1013->1019 in context public<br>
> 2010-10-14 17:50:41.263809 [NOTICE] switch_ivr.c:1450 Transfer<br>
> sofia/internal/<a href="mailto:1013@60.248.175.38">1013@60.248.175.38</a> to XML[1019@default]<br>
> 2010-10-14 17:50:41.263809 [INFO] mod_dialplan_xml.c:331 Processing<br>
> 1013->1019 in context default<br>
> 2010-10-14 17:50:41.283904 [INFO] switch_core_session.c:1764 Sending early<br>
> media<br>
> 2010-10-14 17:50:41.285023 [NOTICE] mod_sofia.c:1994 Pre-Answer<br>
> sofia/internal/<a href="mailto:1013@60.248.175.38">1013@60.248.175.38</a>!<br>
><br>
> seems not work<br>
><br>
> Thank you for you attension<br>
> Best Regards<br>
><br>
> Gary<br>
><br>
><br>
><br>
> ________________________________<br>
> From: <a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a><br>
> To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
> Date: Thu, 14 Oct 2010 10:16:28 +0200<br>
> Subject: Re: [Freeswitch-users] some questions of freeswitch & X-Lite<br>
><br>
> I think we would need a complete log from the target FS, in order to provide<br>
> you with any efficient help.<br>
> Thank<br>
> David Ponzone Direction Technique<br>
> email: <a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a><br>
> tel: 01 74 03 18 97<br>
> gsm: 06 66 98 76 34<br>
> Service Client IPeva<br>
> tel: 0811 46 26 26<br>
> <a href="http://www.ipeva.fr" target="_blank">www.ipeva.fr</a> - <a href="http://www.ipeva-studio.com" target="_blank">www.ipeva-studio.com</a><br>
> Ce message et toutes les pièces jointes sont confidentiels et établis à<br>
> l'intention exclusive de ses destinataires. Toute utilisation ou diffusion<br>
> non autorisée est interdite. Tout message électronique est susceptible<br>
> d'altération. IPeva décline toute responsabilité au titre de ce message s'il<br>
> a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce<br>
> message, merci de le détruire immédiatement et d'avertir l'expéditeur.<br>
><br>
><br>
><br>
> Le 14/10/2010 à 09:55, 江 Chiang 至中 Chih-Chung Wybie a écrit :<br>
><br>
> I tried Connect Two FreeSWITCH<br>
> Boxes <a href="http://wiki.freeswitch.org/wiki/Connect_Two_FreeSWITCH_Boxes" target="_blank">http://wiki.freeswitch.org/wiki/Connect_Two_FreeSWITCH_Boxes</a><br>
> and my configuration :<br>
><br>
> 60.248.175.37<br>
><br>
> (autoload_configs/act.conf.xml)<br>
> <list name="domains" default="deny"><br>
> <node type="allow" cidr="<a href="http://60.248.175.38/28" target="_blank">60.248.175.38/28</a>"/><br>
> <!-- <node type="allow" domain="$${domain}"/>--><br>
> </list><br>
><br>
> (dialplan/default.xml)<br>
><br>
> <extension name="Dial to 38"><br>
> <condition field="destination_number"<br>
> expression="^([0-4]0[01][0-9])$"><br>
> <action application="bridge"<br>
> data="sofia/internal/$<a href="mailto:1@60.248.175.38">1@60.248.175.38</a>"/><br>
> </condition><br>
> </extension><br>
><br>
> (dialplan/public.xml)<br>
><br>
> <extension name="Calls from 38"><br>
> <condition field="destination_number"<br>
> expression="^([0-4]0[01][0-9])$"><br>
> <action application="transfer" data="$1 XML default"/><br>
> </condition><br>
> </extension><br>
><br>
><br>
><br>
> 60.248.175.38<br>
><br>
> (autoload_configs/act.conf.xml)<br>
> <list name="domains" default="deny"><br>
> <node type="allow" cidr="<a href="http://60.248.175.37/28" target="_blank">60.248.175.37/28</a>"/><br>
> <!-- <node type="allow" domain="$${domain}"/>--><br>
> </list><br>
><br>
> (dialplan/default.xml)<br>
><br>
> <extension name="Dial to 37"><br>
> <condition field="destination_number"<br>
> expression="^([0-4]0[01][0-9])$"><br>
> <action application="bridge"<br>
> data="sofia/internal/$<a href="mailto:1@60.248.175.37">1@60.248.175.37</a>"/><br>
> </condition><br>
> </extension><br>
><br>
> (dialplan/public.xml)<br>
><br>
> <extension name="Calls from 37"><br>
> <condition field="destination_number"<br>
> expression="^([0-4]0[01][0-9])$"><br>
> <action application="transfer" data="$1 XML default"/><br>
> </condition><br>
> </extension><br>
><br>
> when I use 1007@38 calls to 1007@37<br>
> it won't show errors but still not work<br>
><br>
> how should I change something ?<br>
><br>
> Thank you for your attension<br>
><br>
> Best Regards<br>
> Gary<br>
><br>
><br>
><br>
><br>
><br>
>> Date: Wed, 13 Oct 2010 22:17:13 -0700<br>
>> From: <a href="mailto:curriegrad2004@gmail.com">curriegrad2004@gmail.com</a><br>
>> To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
>> Subject: Re: [Freeswitch-users] some questions of freeswitch & X-Lite<br>
>><br>
>> You can create a SIP trunk between the two servers so calls can be<br>
>> routed back and forth from the servers you've specified.<br>
>><br>
>> 2010/10/13 江 Chiang 至中 Chih-Chung Wybie <<a href="mailto:tear152@hotmail.com">tear152@hotmail.com</a>>:<br>
>> > I tried it<br>
>> > but not working<br>
>> > and show errors below<br>
>> > 2010-10-14 11:03:05.336206 [ERR] switch_ivr_originate.c:2493 Cannot<br>
>> > create<br>
>> > outgoing channel of type [error] cause: [USER_NOT_REGISTERED]<br>
>> > 2010-10-14 11:03:05.338283 [ERR] switch_ivr_originate.c:2493 Cannot<br>
>> > create<br>
>> > outgoing channel of type [user] cause: [USER_NOT_REGISTERED]<br>
>> > 2010-10-14 11:03:05.338283 [INFO] mod_dptools.c:2356 Originate Failed.<br>
>> > Cause: USER_NOT_REGISTERED<br>
>> ><br>
>> > and for example<br>
>> > I use SIP server 60.248.175.38 user id=1007<br>
>> > and I call to <a href="mailto:1007@60.248.175.37">1007@60.248.175.37</a> that will show these errors<br>
>> ><br>
>> > how should set more?<br>
>> ><br>
>> > thank you for your attension<br>
>> ><br>
>> > Best Regards<br>
>> > Gary<br>
>> ><br>
>> > ________________________________<br>
>> > Date: Thu, 14 Oct 2010 10:55:49 +0800<br>
>> > From: <a href="mailto:xyangni@gmail.com">xyangni@gmail.com</a><br>
>> > To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
>> > Subject: Re: [Freeswitch-users] some questions of freeswitch & X-Lite<br>
>> ><br>
>> > I think you can reg at server A and than call B as a normal SIP call to<br>
>> > external domain.<br>
>> ><br>
>> > 2010/10/14 江 Chiang 至中 Chih-Chung Wybie <<a href="mailto:tear152@hotmail.com">tear152@hotmail.com</a>><br>
>> ><br>
>> ><br>
>> ><br>
>> > Hello<br>
>> ><br>
>> > I set two SIP servers 60.248.175.37 & 60.248.175.38 and use X-Lite to<br>
>> > call<br>
>> ><br>
>> > my question is how can I call between these servers?<br>
>> ><br>
>> > if I can , how shoould I set in *.xml? or X-Lite?<br>
>> ><br>
>> > thank you for your attension<br>
>> ><br>
>> ><br>
>> > Best Regards<br>
>> > Gary<br>
>> ><br>
>> > _______________________________________________<br>
>> > FreeSWITCH-users mailing list<br>
>> > <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>> ><br>
>> ><br>
>> ><br>
>> > _______________________________________________ FreeSWITCH-users mailing<br>
>> > list <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>> > _______________________________________________<br>
>> > FreeSWITCH-users mailing list<br>
>> > <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>> ><br>
>> ><br>
>><br>
>> _______________________________________________<br>
>> FreeSWITCH-users mailing list<br>
>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> _______________________________________________<br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
> _______________________________________________ FreeSWITCH-users mailing<br>
> list <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> _______________________________________________<br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br>