News:

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

Main Menu

Automating CLI change on Line failover

Started by mrjoe, September 13, 2012, 01:25:30 PM

Previous topic - Next topic

mrjoe

I have a Trunk set up to failover to a Voip Provider when my Cell is not connected to the Xlink that is plugged in to the Line port.

I have the following Mpli:

(2<#>S0|3S0|<972:0>[23489]xxxxxxx|<972:0>[57]xxxxxxxx|02[3-9]xxxxxx<#>|<02>[5-8]xxxxxx<#>|<02>9[1-689]xxxxx<#>|<02>97[13-9]xxxx<#>|0[49]xxxxxxx<#>|03[125689]xxxxxx<#>|0[5][0-57-9]xxxxxxx<#>|07[23]xxxxxxx<#>|07[4-8]xxxxxxx<#>S2|08[135689]xxxxxx<#>|087[4-9]xxxxx<#>|084[126-90]xxxxx<#>|1[2578]xxxxxxxx<#>S2|*xxxx<#>S2|*xxxxx<#>|1xx<#>S2|1xxx<#>
|12[12]2xxxx<#>|1255xxx<#>|<**6>1[2-9]xxxxxxxxx<#>S0|0044[123]xxxxxxxxx<#>|0<044>1xxxxxxxxx<#>|<0044191>4[2-9]xxxxx<#>|0<044>20xxxxxxxx<#>|0<044>2[34]xxxxxxxxx<#>|0<044>28[2346-9]xxxxxxx<#>|0<044>292xxxxxxx<#>|0<044>3[0347]xxxxxxxx<#>|<**7>0(500|800|808)xxxxxxS2|<**7>0(500|800|808)xxxxxxx|<4>07xxxxxxxxxS0|<**0>084[345]xxxxxxx|<**0>087[123]xxxxxxx|<**7>0870xxxxxxx|<**3>00[29]x.)

And the following Phone port OCR:
{(<4:4>(Msp2)):sp2(441914567890>)},{(<9:9>(Msp2)):sp2(025678901>)},{(<2:>(Msp2)):sp2(442071234567>)},{(Mpli):pli},{([1-9]x?*(Mpli)):pp},{(<#:>|1xx):li},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**3:>(Mvg3)):vg3},{(<**4:>(Mvg4)):vg4},{(<22:>(Mvg5)):vg5},{(<**6:>(Mvg6)):vg6},{(<**7:>(Mvg7)):vg7},{(<**0:>(Mvg8)):vg8},{(<**8:>(Mli)):li},{(<**9:>(Mpp)):pp}

Instead of prefixing calls with digits to force a certain CLI, I'd like to automate this.

The problem is I want to use the Unlimited calls on my Cell.  This means the prefixing the numbers with **Xs can only kick in after the failover to SP2 otherwise it'll bypass my Cell completely.  At the moment when the outbound calls goes through SP2 in the event my phone is not connected, SP1 readjusts the dialled numbers a second time to accommodate the International dialling structure of the Voip Provider, it cannot redirect calls to another SP via **Xs at that stage however.

???

Anyone have any ideas?

ianobi

Mrjoe,

On first look, this looks impossible. However, I'm not sure that I have a clear idea of your aims yet. Please confirm settings for:

Phone Port PrimaryLine – which trunk / sp is it?

All trunk groups – the trunk group digit maps and the digit maps of the members of each trunk group.

What is your understanding of CLI? To me it means Calling Line Identity.

mrjoe

Hi Ianobi,

My Primary Line is tg1

The only Trunk I use is:
Trunk List: Li1,SP1
Digit Map: ((Mli)|(Msp2))

As you can see in the Phone port, I send out the desired CLI to the destination by prefixing the number with a single digit.

ianobi

If I understand correctly then you wish for:

1. Before failover to use the rules as they are to automate CLI.

2. After failover to use a different set of rules to automate CLI.

I cannot see a way forward on this.

Some observations:

This seem very clever!
Trunk List: Li1,SP1
Digit Map: ((Mli)|(Msp2))
So when in failover Mli and Msp2 calls are directed out via sp1. Msp1 must be a big digit map! Or maybe it is xx.

In your Phone Port OCR these seem odd:
<4:4> This means replace 4 with 4. <9:9> This means replace 9 with 9.

You certainly keep us thinking  :)

mrjoe

#4
Hi Ianobi,
Sorry, I obviously didn't make myself clear.

When I call out I wish all calls to go out through my Mobile, Mli governs these calls.
If my Mobile is not connected, all calls go through SP2 (mistyped before, sorry).
Alternatively I can Spoof my caller ID for outgoing calls to match the country I'm calling via SP2.
I dial 4 to call UK, 9 for Israel, 2 to show my Central London number, hear another dial tone then dial the UK number without an International Prefix, SP2's dial map deals with that.

What is wish to do is have calls which go through SP2 automatically (ie. when no mobile is connected) to reveal the correct CLI for the country I'm calling.

QuoteIn your Phone Port OCR these seem odd:
<4:4> This means replace 4 with 4. <9:9> This means replace 9 with 9.

The reason for the above is to tell SP2 which country code to prefix. If the number has a 4 preceding it, it will know that it is for the UK and take away the 0 and add another 4, if it has a 9 it takes away the 0 and puts a 72 afterwards.  I'm just realising now that I only had to do it for the Israeli one or English one, not both.  :-[

This is my Msp2:

(<2:9725xxxxxxxx>|<0:972>[2-9]x.|9<0:72>[2-489]xxxxxxx|9<0:72>[57]xxxxxxxx|4<0:4>xxxxxxxxxx|<0:44>xxxxxxxxxx|<00:>xx.|xx.)

ianobi

I will think about the main problem over the weekend, but I'm not hopeful!

Back to this <9:9>

If you dial 9021234567, then this rule in Msp2 9<0:72>[2-489]xxxxxxx will change the number to 97221234567. That's fine.

When the number is processed through Phone Port OCR then this rule <9:9> will take the first 9 and replace it with 9, so the number remains as 97221234567.

If you look at call history and try with the <9:9> rule and without it, I don't think you will see a difference.

I think my brain is now over heating. I will look again tomorrow  8)

ianobi

Mrjoe,

I apologise for my last post  :-[ You are being too clever for my brain to cope with  :)  Let me see if I now understand:

If you dial 9021234567, then this rule in Msp2 9<0:72>[2-489]xxxxxxx will change the number to 97221234567.

In the Phone Port OCR you are using the <9:9> as a method of selecting numbers starting with 9 that fit Msp2.

Then this rule:

{(<9:9>(Msp2)):sp2(02xxxxxx>)}

resolves to this:

{(97221234567):sp2(02xxxxxx>97221234567)}

where 02xxxxxx is a spoofed number that looks like your caller id. It is a literal number and you are using the xxxxxx simply to keep your spoofed cid private on this forum.

Am I close?

I know you came here for help, but I think it may be me that needs your help on this one  :)


mrjoe

#7
Thanks Ianobi,
Exactly,
But I use it more like one would use 9 to get an outside line on a PBX System.
When I want to dial Israel showing my Home no. as caller ID, I dial 9 hear a new dial tone and then I dial national 02/03/04 etc.

mrjoe

#8
I shouldn't have used Xs in such a forum in place of Digits, especially not within a dial plan example.  :-[
I'm going to change it now.