Multiple GV outgoing on Obi thru FreePBX/Asterisk
azrobert:
My Raspbx port change was only for security reasons. The VG will work with port 5060. I don't know why I posted that I made the change. It only confused things. If you want to make the same change the port number is found here:
Settings -> Asterisk SIP Settings -> Chan SIP -> Bind Port
If you change the Raspbx Bind Port, you will also have to change ports on any SP trunk registered to Raspbx.
Service Provider -> ITSP Profile X SIP
ProxyServerPort
OutboundProxyPort
_________________________
I don't know why you're getting a Busy. Are you stripping off the prefix in the Raspbx outbound route?
_________________________
I said
Quote
If you use a prefix to route outbound calls, you only need to define 1 extension.
Route all prefixes to the same extension then have 2 outbound routes.
For Example:
You have 2 trunks defined on Raspbx
You want prefix **1 to be routed to Trunk#1
You want prefix **2 to be routed to Trunk#2
Define 1 extension on Raspbx
Register SP1 to the extension
In the OBi route both **1 and **2 to SP1
Define 2 outbound routes on Raspbx
Route#1 **1 routed to Trunk#1
Route#2 **2 routed to Trunk#2
This will work for outbound calls, but if you want to route inbound calls differently from each trunk you will need 2 extensions.
I wasn't sure about simultaneous calls on a single extension, so I tried and it worked. I made a call using my extension 1000. While the call was in session, I made a call from another device using the same extension and it worked.
hapollo:
Thanks azrobert. All good now. For other readers what worked for me is the following:
1) One Extension for multiple GVs using Prefix match in Dial Pattern to differentiate each GV.
2) SPx with Authuser & password set to the extension above, gives Multiple GV connections
3) Dial field setting in Extension set from SIP/"Ext#" to SIP/0@"ObiIP":"SPx-X_UserAgentPort"
4) All Inbound routes Destination field set to the One Extension# above with ANY CID
As Security precaution, I installed Fail2ban to block multiple brute force attacks, added the Oleg method while changing my 5060 port to minimize Sip Scanners and added Firewall scripts to my router to drop certain packets.
Everything looks good.
Still having issues with prefix matching on outgoing calls when changing <**x:ext#> to ext# . I just want to minimize Phone1 Port outgoing call routes character count and allow more flexibility since ** codes are limited, but will experiment further but I'll live with **x for now. Sure there are other things I can tweak as well, I just need to research a little more to enhance my knowledge.
Thanks azrobert, restamp and NoelB for your input and replies.
EDIT: Seems the <**x:ext#> to ext# (603 Declined) error is traced to my digitmaps in OBi for ISTP X for SPx.
Changing (1xxxxxxxxxx|<1>[2-9]xx[2-9]xxxxxx|1[2-9]xx[2-9]xxxxxx) to (xx.) fixes it but there is a long lag in call out.
azrobert:
Quote from: hapollo on July 26, 2016, 08:42:38 am
EDIT: Seems the <**x:ext#> to ext# (603 Declined) error is traced to my digitmaps in OBi for ISTP X for SPx.
Changing (1xxxxxxxxxx|<1>[2-9]xx[2-9]xxxxxx|1[2-9]xx[2-9]xxxxxx) to (xx.) fixes it but there is a long lag in call out.
When the dialed number matches a rule ending with "x.", you will get a 10 second delay.
You can override the delay with this: (xx.S3)
The better way is to have a DigitMap that exactly matches the number.
If you have a 2 digit prefix (10, 20 and 30) followed by a 10 digit number, use this:
([123]0xxxxxxxxxx)
or
((10|20|30)xxxxxxxxxx)
hapollo:
Quote from: azrobert on July 26, 2016, 02:44:44 pm
Quote from: hapollo on July 26, 2016, 08:42:38 am
EDIT: Seems the <**x:ext#> to ext# (603 Declined) error is traced to my digitmaps in OBi for ISTP X for SPx.
Changing (1xxxxxxxxxx|<1>[2-9]xx[2-9]xxxxxx|1[2-9]xx[2-9]xxxxxx) to (xx.) fixes it but there is a long lag in call out.
When the dialed number matches a rule ending with "x.", you will get a 10 second delay.
You can override the delay with this: (xx.S3)
The better way is to have a DigitMap that exactly matches the number.
If you have a 2 digit prefix (10, 20 and 30) followed by a 10 digit number, use this:
([123]0xxxxxxxxxx)
or
((10|20|30)xxxxxxxxxx)
Thanks, I just resolved this 5 mins ago and logged on to post my resolution to find your suggestion posted as well.
Changed my standard N.A. call Digitmaps from (1xxxxxxxxxx|<1>[2-9]xx[2-9]xxxxxx|1[2-9]xx[2-9]xxxxxx) to (xx1xxxxxxxxxx|xx<1>[2-9]xx[2-9]xxxxxx|xx1[2-9]xx[2-9]xxxxxx) and then prefixed all extensions on the outbound dial pattern with 2 digit prefixes to dial out.
It's all starting to make sense now but still so much to learn! Thanks again for your wizardry!
hapollo:
So it seems another issue cropped up since setting up this asterisk:
We sometimes call between remote (offsite) Obi110 and local (same subnet) Obi200 using the Obitalk (9digit device#) network.
When a call comes in via Obitalk or an associated Obion App, it is set up to fork the call to a cell phone# by calling out Sp2 in case the other is out and about.
After the setup of the asterisk, calls in the direction of the local Obi200 to the remote Obi110 fork properly. However, when calls come from the remote Obi110 or Obion App into the local Obi200, calls don't fork. When setup to fork out SP2 like previously, the Obi reboots after the first ring. If setup to fork out the VG, the device does not reboot but call history shows it gets a 503 error. Normal calls going out the VG are fine when the Obitalk forking call is not involved.
Is this some sort of port conflict when going out Sp2 vs VG?
Navigation
[0] Message Index
[#] Next page
[*] Previous page