n9yty
Member
- Joined
- Mar 24, 2009
- Messages
- 48
- Reaction score
- 3
I will repeat here what I just posted elsewhere, because this information was pieced together from lots of bits here and there, I have not seen it put all together in one place.
We picked up two SPA400 units to interface to our old POTS lines until we are ready to fully migrate to VoIP, and even then we would keep some POTS lines for backups.
However, we wanted to duplicate our old PBX inbound hunt groups and outbound dialing order for line analysis purposes. Everything I had read said that you could not specify what port was used on the SPA400, but it turns out that you actually CAN do it. At least in the latest firmware. I have v1.1.2.2 and it seems to be working fine.
In the SPA400 Setup->SPA900 tab you have to set values for the PORT_ID fields. I used the last four digits of the incoming phone line, but they could be anything.
In Asterisk, I set up separate inbound routes with DID values matching what was in the PORT_ID field and it allows me to route a call that come in on a particular port to a particular destination. Caller ID will flow through, and as a bonus (?) the SPA400 attaches the PORT_ID value to the end of the caller-id NAME field.
For outbound selection, just a bit more work. I am an Asterisk newbie, so if someone knows a better way to do this and can re-post better instructions done in a cleaner fashion, it woul be great!
I set up the trunk as described in many places on the net for the SPA400, but then additionally I defined a custom trunk for each port on the SPA400's. These custom trunks are limited to 1 channel, and have a dial string of:
Local/$OUTNUM$@from-trunk-spa400a-1
I then created a custom context for each custom trunk in my extensions_custom.conf file:
[from-trunk-spa400a-1]
exten => _1.,1,Dial(SIP/spa400a/L1${EXTEN})
exten => _1.,n,Congestion
The spa400a in the above Dial() line must match the trunk name in the definition for the main SPA400 trunk in Asterisk. The L1 prefix tells the SPA400 to use port 1 when making this call.
So, the rest is a matter of defining custom trunks for all the other ports, including contexts for all the other ports in extensions_custom.conf (changing the names and Lx to match the port (1-4)), and then in your outbound routes just putting in the custom trunks in the order you want the individual ports on the SPA400's to be used.
I find this to be working fine here unless I've missed something in my notes or testing.
Steve
We picked up two SPA400 units to interface to our old POTS lines until we are ready to fully migrate to VoIP, and even then we would keep some POTS lines for backups.
However, we wanted to duplicate our old PBX inbound hunt groups and outbound dialing order for line analysis purposes. Everything I had read said that you could not specify what port was used on the SPA400, but it turns out that you actually CAN do it. At least in the latest firmware. I have v1.1.2.2 and it seems to be working fine.
In the SPA400 Setup->SPA900 tab you have to set values for the PORT_ID fields. I used the last four digits of the incoming phone line, but they could be anything.
In Asterisk, I set up separate inbound routes with DID values matching what was in the PORT_ID field and it allows me to route a call that come in on a particular port to a particular destination. Caller ID will flow through, and as a bonus (?) the SPA400 attaches the PORT_ID value to the end of the caller-id NAME field.
For outbound selection, just a bit more work. I am an Asterisk newbie, so if someone knows a better way to do this and can re-post better instructions done in a cleaner fashion, it woul be great!
I set up the trunk as described in many places on the net for the SPA400, but then additionally I defined a custom trunk for each port on the SPA400's. These custom trunks are limited to 1 channel, and have a dial string of:
Local/$OUTNUM$@from-trunk-spa400a-1
I then created a custom context for each custom trunk in my extensions_custom.conf file:
[from-trunk-spa400a-1]
exten => _1.,1,Dial(SIP/spa400a/L1${EXTEN})
exten => _1.,n,Congestion
The spa400a in the above Dial() line must match the trunk name in the definition for the main SPA400 trunk in Asterisk. The L1 prefix tells the SPA400 to use port 1 when making this call.
So, the rest is a matter of defining custom trunks for all the other ports, including contexts for all the other ports in extensions_custom.conf (changing the names and Lx to match the port (1-4)), and then in your outbound routes just putting in the custom trunks in the order you want the individual ports on the SPA400's to be used.
I find this to be working fine here unless I've missed something in my notes or testing.
Steve