How to add prefix to phone number when user makes a out call?

Login to reply to this topic.
Wed, 2008-01-16 13:26
Joined: 2007-11-01
Forum posts: 14

Hello,
I want to add a prefix to phone number when user makes a out call regardless of user dials
a number or call a contact stored in phone book.
for example:
when user dial "123123", I will add a IP header "9822", as a result, the user dials "9822123123"
when user call a contact which is "456456", in fact, the user calls "9822456456".

Thanks a lot!


Tue, 2008-02-19 08:55
Joined: 2008-02-19
Forum posts: 6
Re: How to add prefix to phone number when user makes a out call

i am searching for the same, if u have got any info plz let me know.

Thanx

Wed, 2008-03-12 10:27
Joined: 2007-09-15
Forum posts: 61
Re: How to add prefix to phone number ....

I havn't tried anything like this before, but I think it is quite possible logically. What I would have done is, that:

1) Create an exe that will sit in the background and check the line status.
2) Whenever the use rmakes an outgoing call, trap the number being dialled,
3) hang this call.
4) Append the required prefix.
5) Make a new call with this new number.

Can't say about the user experience, without testing, but it should work.
for Symbian Series60 2nd edition pre 8.0 you can check for RCall and RLine APIs and for post 8.0 check the CTelephony API.

Wed, 2008-03-12 11:13
Joined: 2007-11-01
Forum posts: 14
How to add prefix to phone number when user makes a out call?

I want to know how to trap the number being dialled.

I have a same method, I do not try it.
my method is capture the green key, when it is pressed my application find the number from the dialog. and then make a out call with prefixed number. But I have no idea how to get the text from another application's dialog. Do you know how to do it?

Thu, 2008-03-13 13:21
Joined: 2004-11-29
Forum posts: 1142
Re: How to add prefix to phone number when user makes a out call

runforu:
There is no (good) way to do that.
You can't access the component of another app, and there is no standard way the string is stored like in windows.

The only way would be to use some kind of OCR technique to read it from a screenshot, but this isn't really a feasible solution, since you can't know what font it will use, and it would be quite complicated code for the task at hand.

I believe a lot more in SymbianReady:s suggestion.

Fri, 2008-03-14 02:28
Joined: 2007-11-01
Forum posts: 14
How to add prefix to phone number when user makes a out call?

alh:
Can I use my application to make a out call instead of Nokia's default application, so when user dial number, the dialog is mine not Nokia's application's. I can easily know the number and make a out call.

Fri, 2008-03-14 10:03
Joined: 2004-11-29
Forum posts: 1142
Re: How to add prefix to phone number when user makes a out call

I don't know, I havn't used the telephony.
I would assume it is possible though.

I'd suggest taking a look at the APIs that SymbianReady suggests... he seems to know what he is talking about Smiling

  • Login to reply to this topic.