Page 3 of 5
					
				Re: [HOWTO] Asterisk connection via PRI
				Posted: 09 Dec 2008 05:33
				by mrphil
				Apologies for the noob question, but I am trying to follow this guide and have an issue on the 4400. I followed these steps to set up the PBRA2, but when setting up the trunk I reach this point:
o Under Access create an object: 
o If your card is in shelf 0, slot 4 the physical address will be 0-4-0 
o access type=T2 
I enter the physical address of the board as 0-16-0 and of type T2, but receive a non-descript error of "missing Attribute value". See attached screenshot.
Any help would be greatly appreciated!
			 
			
					
				Re: [HOWTO] Asterisk connection via PRI
				Posted: 09 Dec 2008 10:44
				by krzysioD
				Lol
What tool you are using for programing your OXE?
			 
			
					
				Re: [HOWTO] Asterisk connection via PRI
				Posted: 09 Dec 2008 10:47
				by cavagnaro
				Is it 4740?? I think that should be able to do it but by downloading the OXE libraries.
			 
			
					
				Re: [HOWTO] Asterisk connection via PRI
				Posted: 09 Dec 2008 10:59
				by mrphil
				Ok, I persuaded the service company to look at is as a fault and they sorted it, turns out the GUI is older than the software running on PBX so it doesn't send all the required info and fails.
			 
			
					
				Re: [HOWTO] Asterisk connection via PRI
				Posted: 09 Dec 2008 11:20
				by krzysioD
				I've put my BPRA2 also in slot 16 
 
Code: Select all
  
+-------------------------------------------------------------------+
| Cr | cpl| cpl type   | hw type   |  cpl  state  |  coupler ID     |
|----|----|------------|-----------|--------------|-----------------|
|  3 | 16 |       BPRA2|---------- |   IN SERVICE 
┌─Consult/Modify: T2/T1/T0 Access────────────────────────────────────────┐
│                                                                        │
│             Node Number (reserved) : 101                               │
│                     Trunk Group Id : 34                                │
│                Instance (reserved) : 1                                 │
│                   Physical Address : 3-16-0                            │
│                                                                        │
│                        Access Type + T2                                │
│                  Access Cluster Id : -1                                │
│                      Time Slots T2 : 01111111111111110111111111111111  │
│                                                                        │
└────────────────────────────────────────────────────────────────────────┘
     ┌─Consult/Modify: Digital Access─────────────────────────────────────┐
     │                                                                    │
     │             Node Number (reserved) : 101                           │
     │                      Shelf Address : 3                             │
     │                      Board Address : 16                            │
     │                   T0/T2 Access No. : 0                             │
     │                                                                    │
     │                        Access Type + T2                            │
     │                         Board type + BPRA2                         │
     │           Synchronisation Priority : 255                           │
     │                               CRC4 + YES                           │
And it works. Don't use stupid GUI when you have CLI.
 
			
					
				Re: [HOWTO] Asterisk connection via PRI
				Posted: 09 Dec 2008 11:39
				by mrphil
				So close! Asterisk to Alcatel working perfectly. Alcatel to Asterisk is very very crackly and drops the call after exactly 1 second. Assuming its some sort of clock timing issue on the Alcatel end, but can't see anywhere to change this. Any ideas?
			 
			
					
				Re: [HOWTO] Asterisk connection via PRI
				Posted: 09 Dec 2008 12:45
				by torrentula
				One side needs to be providing clocking.  On the OXE you can set the digital access to network=yes and the sync priority to 255.
Shelf ->Descend->Board->Descend->Digital Access
Network mode =yes
sync priority 255
If Asterisk is providing clock then set network mode to no and set sync priority to between 200-250, depending on what other accesses you have in your OXE.
			 
			
					
				Re: [HOWTO] Asterisk connection via PRI
				Posted: 09 Dec 2008 13:15
				by mrphil
				OK, I think the timing issue may not be it. If I follow this part
My Asterisk extensions begin with 3, so under Translator/Prefix plan 
* 3 - Open routing no. 
* Node number=the ID number of the Asterisk trunk group 
From the Alcatel phones I can dial only the single digit 3, and it immediately says wrong number and gives busy tone. Asterisk receives the following in its logs so it obviously gets through correctly:
 -- Extension '3' in context 'from-zaptel' from '4830' does not exist.  Rejecting call on channel 1/27, span 1
If I create in the prefix plan the full extension number of 3001, then Alcatel lets me dial and asterisk receives the call, but my Alcatel phone display acts as if the call wasn't connected and hangs up after the 1 second even though during that time there is two-way audio. I assume from the way the guide is written that adding the prefix plan of 3 should enable all extensions starting with 3 to be sent to the Alcatel but this doesn't seem to work for me? Am I understanding this correctly?
			 
			
					
				Re: [HOWTO] Asterisk connection via PRI
				Posted: 09 Dec 2008 14:49
				by krzysioD
				Huh,
manage TG prefix, like *#*20, for TG#20, #20 for asterisk, and then try to send digits.
the output from asterisk says:
"don't have a numbering plan in context from-zaptel starting with 3".
so, what's your extensions.conf of asterisk, that is question.
start with something like 
 exten => _3XXX,1,Noop(TEST$EXTEN})
 exten => _3XXX,n,Answer()
 exten => _3XXX,n,Playback(demo-congrats)
 exten => _3XXX,n,Wait(10)
 exten => _3XXX,n,Hangup
the _3XXX tells to asterisk receive digit 3, then any 3 digits 0-9.
or catch up the everything with that:
 exten => _X.,1,Noop(TEST$EXTEN})
Using the above you could send 1 or 2 or 5 or 10, or even 20 digits in digit-by-digit mode. It's easy.
You could end your dialing with a # on UA set or simply wait for "answer" from asterisk.
			 
			
					
				Re: [HOWTO] Asterisk connection via PRI
				Posted: 09 Dec 2008 15:56
				by mrphil
				Ah, ok I understand what is happening now, thanks. As Im using Trixbox/Freepbx its automatically generating the extensions.conf which seems to be expect the whole number in one go. 
So, in Alcatel I changed from Open Routing No. to Routing No. and specified 4 digit length which lets me dial properly (not sure if this is what it is intended for), but I still have the same issue where dialling from Alcatel side the Asterisk phone rings and is answered but Alcatel hangs up 1 second later. I also noticed that the Alcatel phone display never changes to show the call timer, as if there is no notification back from Asterisk that the call was answered.