[Freeswitch-dev] Regex Mismatch

Michael Jerris mike at jerris.com
Mon Jan 14 09:49:12 EST 2008


If you are calling a freeswitch conference, there is no second ua or  
second call leg when yo make a call, it just terminates to the  
freeswitch conference application.  What results are you expecting?

Mike

On Jan 14, 2008, at 2:32 AM, Aadilkhan Maniyar wrote:

> I have added the following lines in the default_context.xml config  
> file
>
> <extension name="1000">
>                         <condition field="destination_number"  
> expression="^1001$">
>                          <action application="conference"  
> data="freeswitch"/>
>                         </condition>
>             </extension>
>
> But this time round the INVITE (while calling to 1001 from 1000) is  
> received by FS but it is not forwarded to the second UA.
> The FS sends a 200OK in response to this INVITE and the UA i.e. 1000  
> is in the connected state.
>
> In order to add the users 1000 and 1001 what config file do I have  
> to edit?
>
> Thanks,
> Aadil
> -----Original Message-----
> From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org 
> ] On Behalf Of Anthony Minessale
> Sent: Friday, January 11, 2008 7:50 PM
> To: freeswitch-dev at lists.freeswitch.org
> Subject: Re: [Freeswitch-dev] Regex Mismatch
>
> If you look closely at your trace, you dialed 1001
> and it tried every extension in your dialplan
> and none of them match 1001.
>
> You need to setup something that will match it
> and route the call to the other phone.
>
> perhaps a regex of ^1001$ for an exact match.
> or ^1\d+$ for everything that starts with a 1 etc.
>
> Anthony Minessale II
>
> FreeSWITCH http://www.freeswitch.org/
> ClueCon http://www.cluecon.com/
>
> AIM: anthm
> MSN:anthony_minessale at hotmail.com
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
> IRC: irc.freenode.net #freeswitch
>
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org
> iax:guest at conference.freeswitch.org/888
> googletalk:conf+888 at conference.freeswitch.org
> pstn:213-799-1400
>
> ----- Original Message ----
> From: Aadilkhan Maniyar <amaniyar at velankani.com>
> To: Freeswitch-dev at lists.freeswitch.org
> Sent: Thursday, January 10, 2008 10:30:33 PM
> Subject: [Freeswitch-dev] Regex Mismatch
> Hi,
>
> I have installed FreeSwitch on a OpenSuse box. As per the  
> instructions given in the “Getting started” document, I am trying to  
> make a call between towXlite softphones registered with the numbers  
> 1000 and 1001 to FreeSwitch.
>
> 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 Regex Mismatch in one of the files.  
> I am unable to understand where the problem is. I have attached the  
> log with this email.
>
> I have not modified any of the files in the conf directory.
>
> Would be grateful if anyone could help me out.
>
> Thanks & Regards,
> Aadil
>
>
>
>
>
> -----Inline Attachment Follows-----
>
> freeswitch at d286> 2008-01-10 16:19:34 [DEBUG] sofia_reg.c:471  
> sofia_reg_handle_register() Register:
> From:    [1001 at 10.0.16.29]
> Contact: ["1001" <sip:1001 at 10.0.16.29:5070>]
> Expires: [1800]
> nta_agent: received garbage from udp/10.0.16.29:5090/sip
> 2008-01-10 16:19:42 [DEBUG] sofia_reg.c:471  
> sofia_reg_handle_register() Register:
> From:    [1000 at 10.0.16.29]
> Contact: ["1000" <sip:1000 at 10.0.16.32:5060>]
> Expires: [1800]
> nta_agent: received garbage from udp/10.0.16.32:5090/sip
> nta_agent: received garbage from udp/10.0.16.29:5090/sip
> 2008-01-10 16:19:53 [NOTICE] switch_channel.c:385  
> switch_channel_set_name() New Chansofia/mydomain.com/ 
> 1000 at 10.0.16.29:5060 [2f029610-85df-4049-bc8d-048df6d98465]
> 2008-01-10 16:19:53 [DEBUG] sofia.c:1028 sofia_handle_sip_i_state()  
> Channel sofia/mydomain.com/1000 at 10.0.16.29:5060 entering state  
> [received]
> 2008-01-10 16:19:53 [DEBUG] sofia.c:1032 sofia_handle_sip_i_state()  
> Remote SDP:
> v=0
> o=1000 1665729037 1665729069 IN IP4 10.0.16.32
> s=X-Lite
> c=IN IP4 10.0.16.32
> t=0 0
> m=audio 8000 RTP/AVP 0 8 98 97 101
> a=rtpmap:0 pcmu/8000
> a=rtpmap:8 pcma/8000
> a=rtpmap:98 iLBC/8000
> a=rtpmap:97 speex/8000
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-15
>
> 2008-01-10 16:19:53 [DEBUG] sofia_glue.c:1200  
> sofia_glue_negotiate_sdp() Audio Codec Compare [pcmu:0:8000]/[PCMU: 
> 0:8000]
> 2008-01-10 16:19:53 [DEBUG] sofia_glue.c:810  
> sofia_glue_tech_set_codec() Set Codec sofia/mydomain.com/1000 at 10.0.16.29 
> :5060 pcmu/8000 20 ms 160 samples
> 2008-01-10 16:19:53 [DEBUG] sofia_glue.c:1164  
> sofia_glue_negotiate_sdp() Set 2833 dtmf payload to 101
> 2008-01-10 16:19:53 [DEBUG] sofia.c:1132 sofia_handle_sip_i_state() sofia/mydomain.com/1000 at 10.0.16.29 
> :5060 State Change CS_NEW -> CS_INIT
> 2008-01-10 16:19:53 [DEBUG] switch_core_session.c:647  
> switch_core_session_signal_state_change() Killsofia/mydomain.com/1000 at 10.0.16.29 
> :5060 [BREAK]
> 2008-01-10 16:19:53 [DEBUG] switch_core_state_machine.c:383  
> switch_core_session_run() (sofia/mydomain.com/1000 at 10.0.16.29:5060)  
> State INIT
> 2008-01-10 16:19:53 [DEBUG] mod_sofia.c:92 sofia_on_init() SOFIA INIT
> 2008-01-10 16:19:53 [DEBUG] mod_sofia.c:105 sofia_on_init() sofia/mydomain.com/1000 at 10.0.16.29 
> :5060 State Change CS_INIT -> CS_RING
> 2008-01-10 16:19:53 [DEBUG] switch_core_session.c:647  
> switch_core_session_signal_state_change() Killsofia/mydomain.com/1000 at 10.0.16.29 
> :5060 [BREAK]
> 2008-01-10 16:19:53 [DEBUG] switch_core_state_machine.c:418  
> switch_core_session_run() (sofia/mydomain.com/1000 at 10.0.16.29:5060)  
> State RING
> 2008-01-10 16:19:53 [DEBUG] mod_sofia.c:120 sofia_on_ring() SOFIA RING
> 2008-01-10 16:19:53 [DEBUG] switch_core_state_machine.c:64  
> switch_core_standard_on_ring() Standard RINGsofia/mydomain.com/1000 at 10.0.16.29 
> :5060
> 2008-01-10 16:19:53 [INFO] mod_dialplan_xml.c:316 dialplan_hunt()  
> Processing 1000->1001!
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten()  
> test conditions destination_number(1001) =~ /^556$/
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:118 parse_exten()  
> Regex mismatch
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten()  
> test conditions destination_number(1001) =~ /^9193$/
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:118 parse_exten()  
> Regex mismatch
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten()  
> test conditions destination_number(1001) =~ /^9192$/
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:118 parse_exten()  
> Regex mismatch
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten()  
> test conditions destination_number(1001) =~ /^9191$/
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:118 parse_exten()  
> Regex mismatch
> 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})$/
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:118 parse_exten()  
> Regex mismatch
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten()  
> test conditions source(mod_sofia) =~ /mod_portaudio/
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:118 parse_exten()  
> Regex mismatch
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten()  
> test conditions destination_number(1001) =~ /^1234$/
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:118 parse_exten()  
> Regex mismatch
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten()  
> test conditions destination_number(1001) =~ /^1000$/
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:118 parse_exten()  
> Regex mismatch
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten()  
> test conditions destination_number(1001) =~ /^2000$/
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:118 parse_exten()  
> Regex mismatch
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten()  
> test conditions source(mod_sofia) =~ /mod_sofia/
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten()  
> test conditions destination_number(1001) =~ /^4(\d+)/
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:118 parse_exten()  
> Regex mismatch
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten()  
> test conditions source(mod_sofia) =~ /mod_sofia/
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten()  
> test conditions destination_number(1001) =~ /^4(\d+)/
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:118 parse_exten()  
> Regex mismatch
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten()  
> test conditions rdnis() =~ /8881231234/
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:118 parse_exten()  
> Regex mismatch
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten()  
> test conditions source(mod_sofia) =~ /mod_iax/
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:118 parse_exten()  
> Regex mismatch
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:116 parse_exten()  
> test conditions destination_number(1001) =~ /0911/
> 2008-01-10 16:19:53 [DEBUG] mod_dialplan_xml.c:118 parse_exten()  
> Regex mismatch
> 2008-01-10 16:19:53 [INFO] switch_core_state_machine.c:111  
> switch_core_standard_on_ring() No Route, Aborting
> 2008-01-10 16:19:53 [NOTICE] switch_core_state_machine.c:112  
> switch_core_standard_on_ring() Hangupsofia/mydomain.com/1000 at 10.0.16.29 
> :5060 [CS_RING] [NO_ROUTE_DESTINATION]
> 2008-01-10 16:19:53 [DEBUG] switch_channel.c:1076  
> switch_channel_perform_hangup() Killsofia/mydomain.com/ 
> 1000 at 10.0.16.29:5060 [KILL]
> 2008-01-10 16:19:53 [DEBUG] switch_core_session.c:647  
> switch_core_session_signal_state_change() Killsofia/mydomain.com/1000 at 10.0.16.29 
> :5060 [BREAK]
> 2008-01-10 16:19:53 [DEBUG] switch_core_state_machine.c:347  
> switch_core_session_run() (sofia/mydomain.com/1000 at 10.0.16.29:5060)  
> State HANGUP
> 2008-01-10 16:19:53 [DEBUG] mod_sofia.c:217 sofia_on_hangup()  
> Channel sofia/mydomain.com/1000 at 10.0.16.29:5060 hanging up, cause:  
> NO_ROUTE_DESTINATION
> 2008-01-10 16:19:53 [DEBUG] mod_sofia.c:239 sofia_on_hangup()  
> Responding to INVITE with: 404
> 2008-01-10 16:19:53 [DEBUG] sofia.c:71 sofia_event_callback() event  
> [nua_i_state] status [404][Call state] session: n/a
> 2008-01-10 16:19:53 [DEBUG] switch_core_state_machine.c:45  
> switch_core_standard_on_hangup() Standard HANGUPsofia/mydomain.com/1000 at 10.0.16.29 
> :5060, cause: NO_ROUTE_DESTINATION
> 2008-01-10 16:19:53 [DEBUG] switch_core_session.c:706  
> switch_core_session_thread() Session 1 (sofia/mydomain.com/1000 at 10.0.16.29 
> :5060) Locked, Waiting on external entities
> 2008-01-10 16:19:53 [INFO] switch_core_session.c:712  
> switch_core_session_thread() Session 1 (sofia/mydomain.com/1000 at 10.0.16.29 
> :5060) Ended
> 2008-01-10 16:19:53 [NOTICE] switch_core_session.c:714  
> switch_core_session_thread() Close Channelsofia/mydomain.com/1000 at 10.0.16.29 
> :5060 [CS_HANGUP]
> nta_agent: received garbage from udp/10.0.16.32:5090/sip
> 2008-01-10 16:20:01 [CONSOLE] switch_core.c:654  
> switch_core_destroy() End existing sessions
> 2008-01-10 16:20:01 [CONSOLE] switch_core.c:656  
> switch_core_destroy() Clean up modules.
> 2008-01-10 16:20:01 [NOTICE] switch_loadable_module.c:410  
> switch_loadable_module_unprocess() Deleting Endpoint 'sofia'
> 2008-01-10 16:20:01 [NOTICE] switch_loadable_module.c:503  
> switch_loadable_module_unprocess() Deleting API Function 'sofia'
> 2008-01-10 16:20:01 [NOTICE] switch_loadable_module.c:589  
> switch_loadable_module_unprocess() Deleting Chat interface 'sip'
> 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]
> 2008-01-10 16:20:01 [CONSOLE] switch_loadable_module.c:1052  
> do_shutdown() Stopping: mod_sofia
> nta_agent: received garbage from udp/10.0.16.29:5090/sip
>
>
> Never miss a thing. Make Yahoo your homepage.
> _______________________________________________
> Freeswitch-dev mailing list
> Freeswitch-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20080114/17aca03e/attachment-0001.html 


More information about the Freeswitch-dev mailing list