News:

On Tuesday September 6th the forum will be down for maintenance from 9:30 PM to 11:59 PM PDT

Main Menu

Help: How to add number before dial

Started by orangelau, May 16, 2013, 01:56:55 AM

Previous topic - Next topic

orangelau

Hi:

I want to add number on any call before dial on SP1
EX: my friend no. is 1122334455 and SP1 is not my Primary Line.
     I want to add 777 before 1122334455
     777+1122334455 = 7771122334455

THX!

ianobi

orangelau,

I know you have an OBi110, so let's assume that you have the default:
Physical Interfaces > PHONE Port > PrimaryLine: PSTN Line

To do what you want add a rule like so:

Physical Interfaces > LINE Port > DigitMap:
(<**1777>1122334455| ... existing rules here ... )

If you wanted to make it a more general rule to add 777 to all ten digit numbers starting with 1122 and route them via sp1, then a rule such as this would work:

Physical Interfaces > LINE Port > DigitMap:
(<**1777>1122xxxxxx| ... existing rules here ... )

For both cases you need to add a rule that allows sp1 to accept a thirteen digit number starting with 777. Like so:

Service Providers > ITSP Profile A > General > DigitMap:
(777xxxxxxxxxx| ... existing rules here ... )


orangelau

Much thanks, ianobi!  :)
And I want to ask u one more thing is how to shorten the answering time for the aa, it means that if the trust caller call the PSTN, the aa will answer at once.

Thanks

ianobi

Inbound calls from PSTN to aa have two delays:

1. Physical Interfaces > LINE Port > RingDelay
This needs to be long enough to capture and process CallerID. You could experiment to see how short you can make this and still get reliable CallerID.

2. Voice Service > Auto Attendant > Auto Attendant 1 > AnswerDelay
By default this is set at 4000 (4 seconds). This is to allow enough time for callers to hear ringing tone and hang up before aa answers, so that an automatic callback can be instigated. If you do not need that function it could be reduced or set to 0.

orangelau

Quote from: ianobi on May 16, 2013, 02:19:47 AM
orangelau,

I know you have an OBi110, so let's assume that you have the default:
Physical Interfaces > PHONE Port > PrimaryLine: PSTN Line

To do what you want add a rule like so:

Physical Interfaces > LINE Port > DigitMap:
(<**1777>1122334455| ... existing rules here ... )

If you wanted to make it a more general rule to add 777 to all ten digit numbers starting with 1122 and route them via sp1, then a rule such as this would work:

Physical Interfaces > LINE Port > DigitMap:
(<**1777>1122xxxxxx| ... existing rules here ... )

For both cases you need to add a rule that allows sp1 to accept a thirteen digit number starting with 777. Like so:

Service Providers > ITSP Profile A > General > DigitMap:
(777xxxxxxxxxx| ... existing rules here ... )



Hi ianobi:

I just try your way to add the fixed no. before I dial, butit doesn't work.

ianobi

orangelau,

Can you look in Call History and see what is dialled and what goes out on sp1?

Does your voip provider on sp1 accept thirteen digit numbers starting with 777?

orangelau


ianobi

To get the ip address dial ***1. It will be something like 192.168.x.xx

Put the address in your browser. Default User name is "admin", default password is "admin".


Another way to see what is going on is to go into OBi expert pages: Status > Call Status while the call is ongoing and see what is in both Peer Number slots.

orangelau

Quote from: ianobi on May 16, 2013, 10:13:05 AM
To get the ip address dial ***1. It will be something like 192.168.x.xx

Put the address in your browser. Default User name is "admin", default password is "admin".


Another way to see what is going on is to go into OBi expert pages: Status > Call Status while the call is ongoing and see what is in both Peer Number slots.


I found and entered the page, but there is nothing inside.

ianobi

orangelau,
I set up my OBi110 with the rules I gave in Reply #1. I dialled 1122334455. This is what my Call History shows:

Call 1 05/17/2013    13:44:22 
Terminal ID              PHONE1                      SP1
Peer Name   
Peer Number            **17771122334455     7771122334455
Direction                  Outbound                    Outbound
13:44:22 New Call 
13:44:22  End Call                                     (404 User not found)


Under PHONE1 it shows that **1777 has been prepended to 1122334455.
Under SP1 it shows that **1 has been removed and 7771122334455 has been sent out to sp1.
All works as it should. (The call was rejected because thirteen digits is not recognised by my provider on sp1.)

Can you confirm that this is true in your OBi110:
Physical Interfaces > PHONE Port > PrimaryLine: PSTN Line

I'm not sure what else to suggest. It may be that you have some strange rules somewhere that have stopped this working for you.


orangelau

Quote from: ianobi on May 17, 2013, 05:59:45 AM
orangelau,
I set up my OBi110 with the rules I gave in Reply #1. I dialled 1122334455. This is what my Call History shows:

Call 1 05/17/2013    13:44:22 
Terminal ID              PHONE1                      SP1
Peer Name   
Peer Number            **17771122334455     7771122334455
Direction                  Outbound                    Outbound
13:44:22 New Call 
13:44:22  End Call                                     (404 User not found)


Under PHONE1 it shows that **1777 has been prepended to 1122334455.
Under SP1 it shows that **1 has been removed and 7771122334455 has been sent out to sp1.
All works as it should. (The call was rejected because thirteen digits is not recognised by my provider on sp1.)

Can you confirm that this is true in your OBi110:
Physical Interfaces > PHONE Port > PrimaryLine: PSTN Line

I'm not sure what else to suggest. It may be that you have some strange rules somewhere that have stopped this working for you.



Ok, I try to re-check it later, coz I will leave 3days. Thx ianobi!