vaibhav3002 / sipdroid

Automatically exported from code.google.com/p/sipdroid
GNU General Public License v3.0
0 stars 0 forks source link

Search & Replace adds prefix even for non-sip calls!! #843

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Actually I have two issues about Search & Replace.

1) How do you configure multiple search & replace terms? I need to add the 
prefix 9 to all SIP calls, and I need to strip out any leading 1's.

My mobile provider, Telus, requires that I have the number 1 before my calls. 
So, ex, 250-555-1234 needs to be 1-250-555-1234 for me to call through Telus. 
As such, all my contacts are entered as 1-250-555-1234

To make a SIP call, my SIP server requires that the 1 only be entered if it's a 
long-distance call. For local calls, if the number is prefixed with the 1 then 
the call fails.

So I need to make SIPdroid strip out the 1 for all SIP calls, but leave the 1 
for all NON-sip calls.

I also need SIPdroid to prefix all SIP calls with the 9 to indicate outside 
calling, but I need SIPdroid to NOT prefix 9 onto any calls made through the 
phone system (ie, through Telus).

This brings me to my next issue:

2) When I have my Search & Replace string set as

(.*),\9

...it prefixes all my SIP calls with 9. This is what I want. HOWEVER, it *ALSO* 
prefixes all my NON-SIP calls (ie, calls I make using the phone's native phone 
system, through Telus) with 9. This means when I try to call someone in my 
contacts list through Telus, the call fails because SIPdroid prefixed the 9 
even though the call isn't going out through SIPdroid!!!

So, how do I tell SIPdroid to only prefix the 9 onto calls that are going 
through SIPdroid, and to leave calls alone if they're bypassing SIPdroid and 
going through the phone's normal calling system?

Thanks!

Original issue reported on code.google.com by luper...@gmail.com on 11 Feb 2011 at 9:34

GoogleCodeExporter commented 9 years ago

Original comment by pmerl...@googlemail.com on 13 Feb 2011 at 8:11