<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to UsingFilters</title><link>https://sourceforge.net/p/csipsimple/wiki/UsingFilters/</link><description>Recent changes to UsingFilters</description><atom:link href="https://sourceforge.net/p/csipsimple/wiki/UsingFilters/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 17 Dec 2016 13:11:41 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/csipsimple/wiki/UsingFilters/feed" rel="self" type="application/rss+xml"/><item><title>Discussion for UsingFilters page</title><link>https://sourceforge.net/p/csipsimple/wiki/UsingFilters/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;It took me a while to get it working the way I want it, and I think that an example could be useful to others.  Here are my notes.&lt;/p&gt;
&lt;p&gt;I'm using a data only plan, but calls through Mobile will go through but will be very expensive.  I want to keep the possibility to use it by adding a prefix to the number.  In my region, a fixed format of 10 digits is used, and I don't need to worry about calling oversees with other dialing formats.&lt;/p&gt;
&lt;p&gt;My objective is to configure CSipSimple to intercept calling attempts from the native dialer, select the proper account and refomat the numbers as required.  Once configuration is completed, accessing the user interface of CSipSimple will not be required; all dialing will be done from the native dialer, and a popup screen might show up on screen to select the account if the filters are not explicit enough.  In my case, I don't want the popup screen to show up.&lt;/p&gt;
&lt;p&gt;My objectives are:&lt;br/&gt;
&lt;em&gt; Always use Mobile Phone to call 911&lt;br/&gt;
&lt;/em&gt; Use SIP account for all other calls&lt;br/&gt;
* Adding a prefix "9" to a complete 10 digits phone number will route the call through Mobile.  The filter will delete the prefix before calling.&lt;/p&gt;
&lt;p&gt;Configure CSipSimple as follows:&lt;/p&gt;
&lt;p&gt;Integrate with Android&lt;br/&gt;
&lt;em&gt; Availability Profile: Always Available&lt;br/&gt;
&lt;/em&gt; I'm allowed to use mobile&lt;br/&gt;
Network&lt;br/&gt;
&lt;em&gt; For Incoming Calls: Select all&lt;br/&gt;
&lt;/em&gt; For Outgoing Calls: Select all&lt;br/&gt;
Dialer Integration&lt;br/&gt;
&lt;em&gt; Call logs integration&lt;br/&gt;
&lt;/em&gt; Mobile Phone Integration: AUTO&lt;/p&gt;
&lt;p&gt;Filters:&lt;/p&gt;
&lt;p&gt;SIP account:&lt;br/&gt;
&lt;em&gt; Stop Processing, Starts With, 9&lt;br/&gt;
&lt;/em&gt; Directly Call, All&lt;/p&gt;
&lt;p&gt;Use Mobile:&lt;br/&gt;
&lt;em&gt; Directly Call, Is exactly, 911&lt;br/&gt;
&lt;/em&gt; Stop Processing, Custom RegExp, ^(?![9]&lt;span&gt;[0-9]&lt;/span&gt;{10}$).&lt;em&gt;&lt;br/&gt;
&lt;/em&gt; Rewrite, Starts With, 9, Replace Match By,   &lt;span&gt;[empty!]&lt;/span&gt;&lt;br/&gt;
* Directly Call, All&lt;/p&gt;
&lt;p&gt;I'm not completely done with all testing, but initial tests seems to work as intended.&lt;br/&gt;
I'm a total rookie with regex, so don't ask questions!  This site was a useful reference:&lt;br/&gt;
&lt;a href="https://regex101.com/" rel="nofollow"&gt;https://regex101.com/&lt;/a&gt;&lt;br/&gt;
In my case, the intent of the regex is to be TRUE all the time except for the exact fomat that I'm looking for.&lt;/p&gt;
&lt;p&gt;Hope it helps someone.&lt;br/&gt;
I'd like to see your recommendations to improve my setup.&lt;br/&gt;
Thanks.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Papati Patata</dc:creator><pubDate>Sat, 17 Dec 2016 13:11:41 -0000</pubDate><guid>https://sourceforge.netc18092971205fbe0454288c54009b80c7ddb7327</guid></item><item><title>Discussion for UsingFilters page</title><link>https://sourceforge.net/p/csipsimple/wiki/UsingFilters/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Originally posted by: &lt;a class="" href="http://code.google.com/u/111140558441891965124" rel="nofollow"&gt;putuindr...@gmail.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;can you please tell me what this is? I would like to deepen &lt;a href="http://wdfshare.blogspot.com" rel="nofollow"&gt;http://wdfshare.blogspot.com&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 15 Apr 2015 13:53:52 -0000</pubDate><guid>https://sourceforge.netdb097327dadf2ca79386adf2ece7501959873262</guid></item><item><title>Discussion for UsingFilters page</title><link>https://sourceforge.net/p/csipsimple/wiki/UsingFilters/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Originally posted by: misbi...@gmail.com&lt;/p&gt;
&lt;p&gt;Great app! Just in case someone else has the same problem I just solved for myself: &lt;/p&gt;
&lt;p&gt;I have two VOIP providers for outgoing calls. I am using the first for mobiles in Hungary and Italy, the second for all other calls. It was easy to set the filter for the 2nd provider: I just used the "Can't call" filter with the "Starts with" condition, and I added 4 filters for +3620, +3630, +3670 and +393. &lt;/p&gt;
&lt;p&gt;Setting the filter for the first provider was much trickier, I ended up using a regexp with negative lookahead. The filter type is "Can't call", with the following "Custom RegExp": &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;^&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;?!&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mi"&gt;36&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;237&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mi"&gt;393&lt;/span&gt;&lt;span class="p"&gt;)).&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;This way, the dialer always offers the right choice. I hope this might help someone some day. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 15 Apr 2015 13:53:52 -0000</pubDate><guid>https://sourceforge.net525fab43faa01ab01de10a2fae157c407860a50d</guid></item><item><title>Discussion for UsingFilters page</title><link>https://sourceforge.net/p/csipsimple/wiki/UsingFilters/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Originally posted by: d230...@gmail.com&lt;/p&gt;
&lt;p&gt;you can test java regular expressions online here: &lt;a href="http://java-regex-tester.appspot.com" rel="nofollow"&gt;http://java-regex-tester.appspot.com/&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 15 Apr 2015 13:53:52 -0000</pubDate><guid>https://sourceforge.net5b095019be8d2212872c75c272dd32882bf2a07e</guid></item><item><title>Discussion for UsingFilters page</title><link>https://sourceforge.net/p/csipsimple/wiki/UsingFilters/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Originally posted by: &lt;a class="" href="http://code.google.com/u/hutchinsfairy" rel="nofollow"&gt;hutchinsfairy&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I'd like to echo to.djet and say that it would be really useful to specify which filters take priority. It seems that the "Use Mobile" filters are processed before any SIP ones. It would be easier for me if CSipSimple could process the SIP filters first, then the "Use Mobile" ones. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 15 Apr 2015 13:53:52 -0000</pubDate><guid>https://sourceforge.net7b8130a162bea066df147dc6bacddeeeaa5a17a0</guid></item><item><title>Discussion for UsingFilters page</title><link>https://sourceforge.net/p/csipsimple/wiki/UsingFilters/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Originally posted by: &lt;a class="" href="http://code.google.com/u/102297037445415453740" rel="nofollow"&gt;sey...@gmail.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I am having trouble understanding how to set the filter. &lt;/p&gt;
&lt;p&gt;I want all calls starting with 0&lt;span&gt;[2-9]&lt;/span&gt; or +49&lt;span&gt;[2-9]&lt;/span&gt; to go over voip automatically. How do I do that? &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 15 Apr 2015 13:53:51 -0000</pubDate><guid>https://sourceforge.net4c1ab22c8c4e19f85df7a9cc78fb92bdea29d4ef</guid></item><item><title>Discussion for UsingFilters page</title><link>https://sourceforge.net/p/csipsimple/wiki/UsingFilters/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Originally posted by: &lt;a class="" href="http://code.google.com/u/100145261222872614532" rel="nofollow"&gt;JoshuaJa...@gmail.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have been a dedicated Google user for years. Using their services for my online experience has been great. The services I have used are always free, and they are constantly updating, integrating across platforms, streamlining settings and passwords all the while keeping my data secure whilst keeping spam, hackers and viruses at bay. Open source code, for what little I understand, has opened up the internet to allow us(the users) to send/receive information via voice/video/text/etc. through multiple and different interfaces seamlessly as possible across all different types of platforms. What I am trying to say is more-so, now that I have an android phone(lg pheonix android v-2.2.2) why am I having so much difficulty integrating my google # so as when placing/receiving calls/txts, why is my dumb ATT GO Phone # have to get in the way. I wish there was an app that, after being downloaded from the android market, would in essence unlock the phones pre-programmed applications, intake all my different account ID/Passwords for each and every account I might have throughout every corner of the internet whether it be bank accounts, credit cards, state id's, student id's, video sharing, social networking, video/txt messaging, music, gaming, routers/modems, and all the above/etc. and streamline it into one online account interface to control access/settings so as to then reprogram the phone's applications and widgets to save energy, money, memory and bandwith accross the network as a whole. That is the world I see. Sorry if I have gone on and on, but, maybe you can help me with just a part of that whole scenario. I guess I don't know enough about SIP to know wether or not I can install your APP and have it intergrate with my google voice # so I can place/receive txts/calls via my phones WIFI connection all the while switching to the ATT GO PHONE service when WIFI not available? &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 15 Apr 2015 13:53:51 -0000</pubDate><guid>https://sourceforge.net9172f5bdd51f99382975ad547d36696032a0390b</guid></item><item><title>Discussion for UsingFilters page</title><link>https://sourceforge.net/p/csipsimple/wiki/UsingFilters/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Originally posted by: &lt;a class="" href="http://code.google.com/u/117677182396789299432" rel="nofollow"&gt;viktor.b...@gmail.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hi all, I've been battling with the custom regexs which I finally got to work. I thought I'd give others an important hint, which wasn't obvious to me. Normally regexs match the search pattern anywhere. e.g. &lt;code&gt;^#&lt;/code&gt; will match &lt;code&gt;#whatever&lt;/code&gt; at the beginning of a line. Not here though - the regex needs to match the WHOLE string. So to match &lt;code&gt;#whatever&lt;/code&gt; (or anything else starting with hash), you need &lt;code&gt;^#.*&lt;/code&gt; Took me ages to work that out! Maybe I'm dumb :-) In general though, the filters seem to work (I've tried "stop processing", "directly call", "rewrite" and "can't call"), though some experimentation is needed to figure out what works and what doesn't. &lt;/p&gt;
&lt;p&gt;One thing that didn't seem to work properly is that if there is only a single possibility for which SIP account to use in the dialer selector menu (with dialer integration enabled) after you're filtered out other accouts, a final "call directly all" filter for the surviving account doesn't seem to work. I needed to remove a "can't call" filter in the "use mobile" account so the mobile also appeared in the selector menu - then the direct call to my SIP account worked. &lt;/p&gt;
&lt;p&gt;Nice app BTW!! &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 15 Apr 2015 13:53:51 -0000</pubDate><guid>https://sourceforge.net1fc633b5460b04e61b340fbae0d879b875daf240</guid></item><item><title>Discussion for UsingFilters page</title><link>https://sourceforge.net/p/csipsimple/wiki/UsingFilters/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Originally posted by: &lt;a class="" href="http://code.google.com/u/113290532154074539885" rel="nofollow"&gt;w.bar...@gmail.com&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;None of these features seems to work in any way. &lt;/p&gt;
&lt;p&gt;Example: &lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;SIP account CWU &lt;/li&gt;
&lt;li&gt;Filter: Can't Call; Has exactly N digit; 1 &lt;/li&gt;
&lt;li&gt;Dialer: CWU selected; dial '1' ; call proceeds to SIP provider &lt;/li&gt;
&lt;li&gt;Call Log: 1 &amp;lt;sip:1@sip.callwithus.com&amp;gt; 2 mins ago &lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;I've tried everything - Custom Regex, matching the SIP address instead of the number, etc etc. &lt;/p&gt;
&lt;p&gt;Versions tried: 0.3.0, 0.3.1, nightly &lt;a class="" href="/p/csipsimple/source/detail?r=1157"&gt;r1157&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 15 Apr 2015 13:53:51 -0000</pubDate><guid>https://sourceforge.net8c4ea1b347b25a91917de2c18e8a75d29b3148fe</guid></item><item><title>Discussion for UsingFilters page</title><link>https://sourceforge.net/p/csipsimple/wiki/UsingFilters/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Originally posted by: &lt;a class="" href="http://code.google.com/u/104936113112417053450" rel="nofollow"&gt;lipeng8...@gmail.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;HI, I do receive a lot Anonymous calls (spam, fax broadcast) since using one account with Csipsimple. I do have FreeSwitch&lt;a class="" href="/p/csipsimple/w/edit/FreeSwitch"&gt;?&lt;/a&gt; in home to have those unwanted calls (anonymous,800-advertising,sales,etc) being processed to either VoiceMail&lt;a class="" href="/p/csipsimple/w/edit/VoiceMail"&gt;?&lt;/a&gt; or droped. Like the following rules, &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;lt;condition field="caller_id_number" expression="^(0000000000|(\+?1)?(8(00|55|66|77|88)&lt;span&gt;[2-9]&lt;/span&gt;\d{6}))$"&amp;gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;lt;action application="voicemail" data="default abc 2000"/&amp;gt; or drop the call. &lt;/p&gt;
&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;p&gt;Can we develop a basic filer like this dealing with Incoming calls so we can have it filtered and processed the way we want? thanks &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 15 Apr 2015 13:53:51 -0000</pubDate><guid>https://sourceforge.netedac6e0f4eca61296b6aa0b9d3af57fc09933e10</guid></item></channel></rss>