Need more help in Digimap

(1/4) > >>

jtan:
First of all, many thanks to the people in this forum who have helped me.    


The following are area code of Canada

(236|250|778|403|587|780|825|306|639|204|431|416|437|647|807|249|705|226|519|548|289
|365|905|343|613|418|581|450|579|438|514|819|873|709|506|782|902|867)

http://www.allareacodes.com/canadian_area_codes.htm

How can I code it so that
SP1 FPL (FreePhoneLine)  for all canadian and toll free number
SP2 GV  (Google Voice) for all canadian and toll free numbers that SP1 failed + USA numbers
without dialing **2 ?    

Dialing any 7 digit number OBi will insert 604 area code

I preferred to set FPL as Phone1 since it has local area code number.

Thank you

========================================

Using OBi200
My Local area code 604
*97 FPL voicemail
*98 GV voicemail

Ban - prevent scanner
Ban2 - block list of phone numbers ... forward them to msg the number you dialed is not in service.


References
https://www.obitalk.com/forum/index.php?topic=9107.msg64223%20-%20msg64223

https://www.obitalk.com/forum/index.php?topic=8381.msg55901#msg55901

http://www.obitalk.com/forum/index.php?topic=5467.0


========================================

Router Configuration -- WAN Setting -- Local DNS Records
freephoneline.ca={voip.freephoneline.ca|1}|{voip2.freephoneline.ca|2}|{voip4.freephoneline.ca:6060|3}


Service Provider -- ITSP Profile A General -- Name             
FreePhoneLine
Service Provider -- ITSP Profile A General -- DigitMap           
(*98|<1604>[2-9]xx xxxx|1xxx xxx xxxx |<1>[2-9]xx xxx xxxx)

Service Provider -- ITSP Profile A Sip -- ProxyServer
freephoneline.ca
Service Provider -- ITSP Profile A Sip -- RegistrationPeriod
3600
Service Provider -- ITSP Profile A Sip -- RegisterRetryInterval
120
Service Provider -- ITSP Profile A Sip -- X_ProxyServerRedundancy
check

Service Provider -- ITSP Profile B General -- Name
Google Voice
Service Provider -- ITSP Profile B General -- DigitMap           
(<1604>[2-9]xx xxxx|1xxx xxx xxxx |<1>[2-9]xx xxx xxxx)


Voice Service -- SP1 Service -- X_InboundCallRoute
{(MBan2):sp1(9991234567@sip.tropo.com)}|{(MBan):}|{>1604 123 4567:ph}|{(x.604 111 2222):aa}
Voice Service -- SP1 Service --  X_KeepAliveEnable       
check   
Voice Service -- SP1 Service --  X_KeepAliveExpires       
20

Voice Service -- SP2 Service -- X_InboundCallRoute
{(x.604 111 2222):aa}|{ph}


Physical Interfaces  -- Phone1 -- DigitMap          
(<*97:**2320 333 4444>|[1-9]x?*(Mpli)|[1-9]S9|[1-9][0-9]S9|**0|***|#|##|222222222|**1(Msp1)|**2(Msp2)|**3(Msp3)|**4(Msp4)|**9(Mpp)|(Mpli))

Physical Interfaces  -- Phone1 -- OutboundCallRoute       
{([1-9]x?*(Mpli)):pp}}|{(<##:>):li}|{**0:aa}|{***:aa2}|{222222222:pp}|{(<**1:>(Msp1)):sp1}|{(<**2:>(Msp2)):sp2}|{(<**3:>(Msp3)):sp3}|{(<**4:>(Msp4)):sp4}|{(<**9:>(Mpp)):pp}|{(Mpli):pli}


Star Codes  Profile A & B  -- Code28         
*95| Blind Transfer| coll($Bxrn)


User Settings -- User Defined Digit Map2 --Label             
Ban
User Settings -- User Defined Digit Map2 --DigitMap       
(?|x|xx|xxx|xxxx|xxxxx|xxxxxx|un@@.|Un@@.|anon@@.|Anon@@.|1?1234567890|1?0987654321)

User Settings -- User Defined Digit Map3 --Label       
Ban2
User Settings -- User Defined Digit Map3 --DigitMap
(604111 1111|800222 2222|1778 333 3333)

azrobert:
ITSP A DigitMap:
(*98|<1604>[2-9]xxxxxx|1(236|250|778|403|587|780|825|306|639|204|431|416|437|647|807|249|705|226|519|548|289|365|905|343|613|418|581|450|579|438|514|819|873|709|506|782|902|867)xxxxxxx)

Physical Interfaces  -- Phone1 -- DigitMap          
(1xxxxxxxxxx|<1>[2-9]xxxxxxxxx|<*97:**2320 333 4444>|[1-9]x?*(Mpli)|[1-9]S9|[1-9][0-9]S9|**0|***|#|##|222222222|**1(Msp1)|**2(Msp2)|**3(Msp3)|**4(Msp4)|**9(Mpp)|(Mpli))

Physical Interfaces  -- Phone1 -- OutboundCallRoute      
{([1-9]x?*(Mpli)):pp},{(<##:>):li},{**0:aa},{***:aa2},{222222222:pp},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**3:>(Msp3)):sp3},{(<**4:>(Msp4)):sp4},{(<**9:>(Mpp)):pp},{(Mpli):pli},{(Msp2):sp2}

Edit:
You had vertical bars separating the OuboundCallRoute rules, I changed them to commas.

jtan:
Thank you azrobert however,

somehow when I dialed a local number such as
664-9010 or 604-664-9010 or 1-604-664-9010 they go to sp2

Also all toll free number just go to sp2, it did not try sp1 first.
Should I add |18(00|88|77|66|55|44)xxxxxxx|  to ITSP Profile A -> DigitMap:

azrobert:
Add 604 to the list of Canadian area codes.
Add the tollfree numbers like you asked to ITSP A DigitMap.

jtan:
Quote from: azrobert on May 24, 2015, 05:44:37 pm

Add 604 to the list of Canadian area codes.
Add the tollfree numbers like you asked to ITSP A DigitMap.


Thanks got it  ;D

(*98|<1604>[2-9]xxxxxx|1(604|236|250|778|403|587|780|825|306|639|204|431|416|437|647|807|249|705|226|519|548|289|365|905|343|613|418|581|450|579|438|514|819|873|709|506|782|902)xxxxxxx |18(00|88|77|66|55|44)xxxxxxx)

Navigation

[0] Message Index

[#] Next page