<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:courier,monaco,monospace,sans-serif;font-size:12pt">If you look closely at your trace, you dialed 1001<br>and it tried every extension in your dialplan<br>and none of them match 1001.<br><br>You need to setup something that will match it<br>and route the call to the other phone.<br><br>perhaps a regex of ^1001$ for an exact match.<br>or ^1\d+$ for everything that starts with a 1 etc.<br><br><div>&nbsp;</div><div>Anthony Minessale II<br><br><span>FreeSWITCH <a target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org/</a></span><br><span>ClueCon <a target="_blank" href="http://www.cluecon.com/">http://www.cluecon.com/</a></span><br><br>AIM: anthm<br>MSN:anthony_minessale@hotmail.com<br>GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<br>IRC: irc.freenode.net #freeswitch</div><div><br>FreeSWITCH Developer
 Conference<br>sip:888@conference.freeswitch.org<br>iax:guest@conference.freeswitch.org/888<br>googletalk:conf+888@conference.freeswitch.org<br>pstn:213-799-1400</div><div style="font-family: courier,monaco,monospace,sans-serif; font-size: 12pt;"><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Aadilkhan Maniyar &lt;amaniyar@velankani.com&gt;<br>To: Freeswitch-dev@lists.freeswitch.org<br>Sent: Thursday, January 10, 2008 10:30:33 PM<br>Subject: [Freeswitch-dev] Regex Mismatch<br><br>



 


 
 
 
 

<style>
<!--

 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
span.EmailStyle17
        {font-family:Arial;color:windowtext;}
span.SpellE
        {}
span.GramE
        {}
 _filtered {margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {}
-->
</style>



<div class="Section1">

<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Hi,</span></font></p> 

<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> &nbsp;</span></font></p> 

<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">I have installed <span class="SpellE">FreeSwitch</span> on <span class="GramE">a</span> <span class="SpellE">OpenSuse</span> box. As per the
instructions given in the “Getting started” document, I am trying
to make a call between tow <span class="SpellE">Xlite</span> <span class="SpellE">softphones</span>
registered with the numbers 1000 and 1001 to <span class="SpellE">FreeSwitch</span>.</span></font></p> 

<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> &nbsp;</span></font></p> 

<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">The registration happens successfully but when I try to make
a call between these two there is an error (FS responds with a 404). According
to the logs there is a <span class="SpellE">Regex</span> Mismatch in one of the
files. I am unable to understand where the problem is. I have attached the log
with this email.</span></font></p> 

<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> &nbsp;</span></font></p> 

<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">I have not modified any of the files in the conf directory.</span></font></p> 

<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> &nbsp;</span></font></p> 

<p class="MsoNormal"><span class="GramE"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Would be grateful if anyone could
help me out.</span></font></span><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p> 

<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> &nbsp;</span></font></p> 

<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Thanks &amp; Regards,</span></font></p> 

<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Aadil</span></font></p> 

<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> &nbsp;</span></font></p> 

<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> &nbsp;</span></font></p> 

<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> &nbsp;</span></font></p> 

</div>

<!-- kill --><div><br><br>-----Inline Attachment Follows-----<br><br>freeswitch@d286&gt; 2008-01-10 16:19:34 [DEBUG] sofia_reg.c:471
 sofia_reg_handle_register() Register:<br>From:&nbsp; &nbsp; [1001@10.0.16.29]<br>Contact: ["1001" &lt;sip:1001@10.0.16.29:5070&gt;]<br>Expires: [1800]<br>nta_agent: received garbage from udp/10.0.16.29:5090/sip<br>2008-01-10 16:19:42 [DEBUG] sofia_reg.c:471 sofia_reg_handle_register()
 Register:<br>From:&nbsp; &nbsp; [1000@10.0.16.29]<br>Contact: ["1000" &lt;sip:1000@10.0.16.32:5060&gt;]<br>Expires: [1800]<br>nta_agent: received garbage from udp/10.0.16.32:5090/sip<br>nta_agent: received garbage from udp/10.0.16.29:5090/sip<br>2008-01-10 16:19:53 [NOTICE] switch_channel.c:385
 switch_channel_set_name() New Chan sofia/mydomain.com/1000@10.0.16.29:5060
 [2f029610-85df-4049-bc8d-048df6d98465]<br>2008-01-10 16:19:53 [DEBUG] sofia.c:1028 sofia_handle_sip_i_state()
 Channel sofia/mydomain.com/1000@10.0.16.29:5060 entering state [received]<br>2008-01-10 16:19:53 [DEBUG] sofia.c:1032 sofia_handle_sip_i_state()
 Remote SDP:<br>v=0<br>o=1000 1665729037 1665729069 IN IP4 10.0.16.32<br>s=X-Lite<br>c=IN IP4 10.0.16.32<br>t=0 0<br>m=audio 8000 RTP/AVP 0 8 98 97 101<br>a=rtpmap:0 pcmu/8000<br>a=rtpmap:8 pcma/8000<br>a=rtpmap:98 iLBC/8000<br>a=rtpmap:97 speex/8000<br>a=rtpmap:101 telephone-event/8000<br>a=fmtp:101 0-15<br><br>2008-01-10 16:19:53 [DEBUG] sofia_glue.c:1200
 sofia_glue_negotiate_sdp() Audio Codec Compare [pcmu:0:8000]/[PCMU:0:8000]<br>2008-01-10 16:19:53 [DEBUG] sofia_glue.c:810
 sofia_glue_tech_set_codec() Set Codec sofia/mydomain.com/1000@10.0.16.29:5060 pcmu/8000 20 ms 160
 samples<br>2008-01-10 16:19:53 [DEBUG] sofia_glue.c:1164
 sofia_glue_negotiate_sdp() Set 2833 dtmf payload to 101<br>2008-01-10 16:19:53 [DEBUG] sofia.c:1132 sofia_handle_sip_i_state()
 sofia/mydomain.com/1000@10.0.16.29:5060 State Change CS_NEW -&gt; CS_INIT<br>2008-01-10 16:19:53 [DEBUG] switch_core_session.c:647
 switch_core_session_signal_state_change() Kill sofia/mydomain.com/1000@10.0.16.29:5060
 [BREAK]<br>2008-01-10 16:19:53 [DEBUG] switch_core_state_machine.c:383
 switch_core_session_run() (sofia/mydomain.com/1000@10.0.16.29:5060) State INIT<br>2008-01-10 16:19:53 [DEBUG] mod_sofia.c:92 sofia_on_init() SOFIA INIT<br>2008-01-10 16:19:53 [DEBUG] mod_sofia.c:105 sofia_on_init()
 sofia/mydomain.com/1000@10.0.16.29:5060 State Change CS_INIT -&gt; CS_RING<br>2008-01-10 16:19:53 [DEBUG] switch_core_session.c:647
 switch_core_session_signal_state_change() Kill sofia/mydomain.com/1000@10.0.16.29:5060
 [BREAK]<br>2008-01-10 16:19:53 [DEBUG] switch_core_state_machine.c:418
 switch_core_session_run() (sofia/mydomain.com/1000@10.0.16.29:5060) State RING<br>2008-01-10 16:19:53 [DEBUG] mod_sofia.c:120 sofia_on_ring() SOFIA RING<br>2008-01-10 16:19:53 [DEBUG] switch_core_state_machine.c:64
 switch_core_standard_on_ring() Standard RING
 sofia/mydomain.com/1000@10.0.16.29:5060<br>2008-01-10 16:19:53 [INFO] mod_dialplan_xml.c:316 dialplan_hunt()
 Processing 1000-&gt;1001!<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten() test
 conditions destination_number(1001) =~ /^556$/<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:118 parse_exten() Regex
 mismatch<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten() test
 conditions destination_number(1001) =~ /^9193$/<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:118 parse_exten() Regex
 mismatch<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten() test
 conditions destination_number(1001) =~ /^9192$/<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:118 parse_exten() Regex
 mismatch<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten() test
 conditions destination_number(1001) =~ /^9191$/<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:118 parse_exten() Regex
 mismatch<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten() test
 conditions destination_number(1001) =~
 /^(18(0{2}|8{2}|7{2}|6{2})\d{7})$/<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:118 parse_exten() Regex
 mismatch<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten() test
 conditions source(mod_sofia) =~ /mod_portaudio/<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:118 parse_exten() Regex
 mismatch<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten() test
 conditions destination_number(1001) =~ /^1234$/<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:118 parse_exten() Regex
 mismatch<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten() test
 conditions destination_number(1001) =~ /^1000$/<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:118 parse_exten() Regex
 mismatch<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten() test
 conditions destination_number(1001) =~ /^2000$/<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:118 parse_exten() Regex
 mismatch<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten() test
 conditions source(mod_sofia) =~ /mod_sofia/<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten() test
 conditions destination_number(1001) =~ /^4(\d+)/<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:118 parse_exten() Regex
 mismatch<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten() test
 conditions source(mod_sofia) =~ /mod_sofia/<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten() test
 conditions destination_number(1001) =~ /^4(\d+)/<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:118 parse_exten() Regex
 mismatch<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten() test
 conditions rdnis() =~ /8881231234/<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:118 parse_exten() Regex
 mismatch<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten() test
 conditions source(mod_sofia) =~ /mod_iax/<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:118 parse_exten() Regex
 mismatch<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten() test
 conditions destination_number(1001) =~ /0911/<br>2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:118 parse_exten() Regex
 mismatch<br>2008-01-10 16:19:53 [INFO] switch_core_state_machine.c:111
 switch_core_standard_on_ring() No Route, Aborting<br>2008-01-10 16:19:53 [NOTICE] switch_core_state_machine.c:112
 switch_core_standard_on_ring() Hangup sofia/mydomain.com/1000@10.0.16.29:5060
 [CS_RING] [NO_ROUTE_DESTINATION]<br>2008-01-10 16:19:53 [DEBUG] switch_channel.c:1076
 switch_channel_perform_hangup() Kill sofia/mydomain.com/1000@10.0.16.29:5060 [KILL]<br>2008-01-10 16:19:53 [DEBUG] switch_core_session.c:647
 switch_core_session_signal_state_change() Kill sofia/mydomain.com/1000@10.0.16.29:5060
 [BREAK]<br>2008-01-10 16:19:53 [DEBUG] switch_core_state_machine.c:347
 switch_core_session_run() (sofia/mydomain.com/1000@10.0.16.29:5060) State HANGUP<br>2008-01-10 16:19:53 [DEBUG] mod_sofia.c:217 sofia_on_hangup() Channel
 sofia/mydomain.com/1000@10.0.16.29:5060 hanging up, cause:
 NO_ROUTE_DESTINATION<br>2008-01-10 16:19:53 [DEBUG] mod_sofia.c:239 sofia_on_hangup()
 Responding to INVITE with: 404<br>2008-01-10 16:19:53 [DEBUG] sofia.c:71 sofia_event_callback() event
 [nua_i_state] status [404][Call state] session: n/a<br>2008-01-10 16:19:53 [DEBUG] switch_core_state_machine.c:45
 switch_core_standard_on_hangup() Standard HANGUP
 sofia/mydomain.com/1000@10.0.16.29:5060, cause: NO_ROUTE_DESTINATION<br>2008-01-10 16:19:53 [DEBUG] switch_core_session.c:706
 switch_core_session_thread() Session 1 (sofia/mydomain.com/1000@10.0.16.29:5060) Locked,
 Waiting on external entities<br>2008-01-10 16:19:53 [INFO] switch_core_session.c:712
 switch_core_session_thread() Session 1 (sofia/mydomain.com/1000@10.0.16.29:5060) Ended<br>2008-01-10 16:19:53 [NOTICE] switch_core_session.c:714
 switch_core_session_thread() Close Channel sofia/mydomain.com/1000@10.0.16.29:5060
 [CS_HANGUP]<br>nta_agent: received garbage from udp/10.0.16.32:5090/sip<br>2008-01-10 16:20:01 [CONSOLE] switch_core.c:654 switch_core_destroy()
 End existing sessions<br>2008-01-10 16:20:01 [CONSOLE] switch_core.c:656 switch_core_destroy()
 Clean up modules.<br>2008-01-10 16:20:01 [NOTICE] switch_loadable_module.c:410
 switch_loadable_module_unprocess() Deleting Endpoint 'sofia'<br>2008-01-10 16:20:01 [NOTICE] switch_loadable_module.c:503
 switch_loadable_module_unprocess() Deleting API Function 'sofia'<br>2008-01-10 16:20:01 [NOTICE] switch_loadable_module.c:589
 switch_loadable_module_unprocess() Deleting Chat interface 'sip'<br>2008-01-10 16:20:01 [NOTICE] switch_loadable_module.c:621
 switch_loadable_module_unprocess() Deleting Management interface 'mod_sofia'
 OID[.1.3.6.1.4.1.27880.1]<br>2008-01-10 16:20:01 [CONSOLE] switch_loadable_module.c:1052
 do_shutdown() Stopping: mod_sofia<br>nta_agent: received garbage from udp/10.0.16.29:5090/sip<br></div></div><br></div></div><br>

      <hr size=1>Never miss a thing.  <a href="http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs"> Make Yahoo your homepage.</a>

</body></html>