View Single Post
Posts: 167 | Thanked: 204 times | Joined on Jul 2010
#122
To those asking for more clever number matching: according to Scifi's post on page 10 of this thread, profiles are now matched in "first match wins" order (new in v0.5). If you'd like to avoid having to delete and recreate all your profiles, do something like this:

1) echo ".dump profiles" | sqlite3 /home/user/vicar.db.sqlite > profiles
2) edit this with your favourite text editor, update row numbering to suit
3) echo "DROP TABLE profiles;" | sqlite3 /home/user/vicar.db.sqlite
4) cat profiles | sqlite3 /home/user/vicar.db.sqlite

Once you have your profiles in order, you can match mobiles before country codes, or 0870 before 08xx.

With a bit of imagination, one can probably also use the above to load a number of different routing tables into ViCaR according to the network that your phone registers to (which you can detect via DbusScripts) - this is for the poster who wanted different routing tables per SIM card.

Kudos to Scifi for the good work, +1 on wanting SIP support, happy to help test the app & am already playing with DBUS recipes to launch SIP calls.

Last edited by magick777; 2010-09-16 at 03:49.
 

The Following 2 Users Say Thank You to magick777 For This Useful Post: