News:

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

Main Menu

Spoof different callerid when different numbers are dialed.

Started by litensten, June 15, 2013, 03:40:32 PM

Previous topic - Next topic

litensten

I have the following working. Can someone check if I could run into potential problems?

I am trying to achieve:

1. When 911 is dialed, callerid is spoofed to 12223334444
2. When voip.ms e911 test number is dialed (15555550911), callerid is spoofed to 12223334444
3. When any other regular numbers are dialed, callerid is spoofed to be 17778889999

Under Phone Port>OutboundCallRoute
{([1-9]x?*(Mpli)):pp},{(<#:>):ph2},{(<**82:>(Mbt2)):bt2},{(<**81:>(Mbt)):bt},{(<**8:>(Mbt)):bt},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**3:>(Msp3)):sp3},{(<**4:>(Msp4)):sp4},{(<**9:>(Mpp)):pp},{(911):pli(12223334444>$2)},{(15555550911):pli(12223334444>$2)},{(Mpli):pli(17778889999>$2)}


ianobi

I can see nothing that will cause you problems. As it is working you must have already realised that you need a voip provider that accepts CallerID spoofing. Also in the OBi you need to set:

Service Providers -> ITSP Profile X -> SIP -> X_SpoofCallerID : checked


I would make a few minor changes:

{911:pli(12223334444>)},{15555550911:pli(12223334444>)},{([1-9]x?*(Mpli)):pp},{(<#:>):ph2},{(<**82:>(Mbt2)):bt2},{(<**81:>(Mbt)):bt},{(<**8:>(Mbt)):bt},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**3:>(Msp3)):sp3},{(<**4:>(Msp4)):sp4},{(<**9:>(Mpp)):pp},{(Mpli):pli(17778889999>)}

Some of the parentheses are not required - they do no harm.
If you leave out the $2 OBi will assume it.
I prefer to see emergency numbers at the beginning of the OutboundCallRoute. The rules are processed from left to right, so your emergency numbers get looked at first.
I would replace pli in the first two emergency rules with the actual trunk (sp1, sp2 etc) to avoid any confusion if you make future changes.

Anyhow, all minor things - your version should work fine.


kevmeist


giqcass

Correctly identifying an address for a 911 call may depend on caller ID in some cases.   You also want to make sure  911 can return your call if the phone gets disconnected during the call. 

You may want to route other callers to a different number for convenience, privacy, or because it is less expensive.  With all of the options available the reasons can be numerous.
Long live our new ObiLords!

litensten

One example.

Your caller id could be spoofed as your cellphone number.
But when you dial 911, you would want to spoof a different caller id that's registered with e911.