The solution below isn't accessing a table lookup, but at the end of the day that is just a GUI design decision. That table lookup could be implemented on the web administration interface or on the Obi itself. Is there some reason other than the interface that you want to have a lookup table? There needs to be a 1 to 1 mapping between the phone port and what action happens when someone picks up a handset and dials 911.
Are you looking for a page where it asks "911 Action" with options for each Port that selects the SP and what number to route it to? IE:
Port: PHONE1
Service Provider: SPx
Route To #: 911 | 123-456-9111
For my solution you'll just have to go into Obi Expert Configuration and under Physical Interfaces select the phone port ("PHONE 1, or "PHONE 2" as appropriate), uncheck "ObiTalk Settings" and "Device Default" for OutboundCallRoute and replace the current entry with:
Since you are referencing Phone1/Phone2 ports i'm making an assumption that you have an Obi202 or maybe 302.
Original Phone 1/2 OutboundCallRoute:
{([1-9]x?*(Mpli)):pp},{(<#:>):ph1},{(<**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}
Phone 1 OutboundCallRoute:
{([1-9]x?*(Mpli)):pp},{(<#:>):ph2},{(<911:911>):sp1},{(<**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}
Phone 2 OutboundCallRoute:
{([1-9]x?*(Mpli)):pp},{(<#:>):ph1},{(<911:1235551911>):sp2},{(<**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}
And YES, at the end of the first rule where is says "ph2" for the Phone 1 Call Route and "ph1" for the Phone 2 Call Route is correct. If you reverse those it will just show the wrong port in the call log (AFAIK). You can check it on your original config.