don't show status DAHDI after upgrade to Asterisk 1.8
Hi!
I'm upgrade Asterisk 1.4 to 1.8 and DAHDI E1 Channels status is disappeared from FOP2.
DAHDI channels now shows in CLI as DAHDI/iNN/XXXXXX-YY, where is
- NN a channel number
- XXXXXX a calling or called number
- YY - some number
The autoconfig-buttons-freepbx.sh output is:
I'w view records like this
Update: I try this trick
And now FOP2 shows me calls to/from that number only
I'm upgrade Asterisk 1.4 to 1.8 and DAHDI E1 Channels status is disappeared from FOP2.
DAHDI channels now shows in CLI as DAHDI/iNN/XXXXXX-YY, where is
- NN a channel number
- XXXXXX a calling or called number
- YY - some number
The autoconfig-buttons-freepbx.sh output is:
[DAHDI/g0]
type=trunk
label=E1 channels
queuecontext=from-queue
extenvoicemail=*
email=splitme-1-30
channel=DAHDI/1
channel=DAHDI/2
channel=DAHDI/3/
channel=DAHDI/4/
...
I edit autoconfig-buttons-freepbx.sh as:
[DAHDI/g0]
type=trunk
label=E1 channels
queuecontext=from-queue
extenvoicemail=*
email=splitme-1-30
channel=DAHDI/i1
channel=DAHDI/i2
channel=DAHDI/i3
channel=DAHDI/i4
...
and even as:
[DAHDI/g0]
type=trunk
label=E1 channels
queuecontext=from-queue
extenvoicemail=*
email=splitme-1-30
channel=DAHDI/i1/
channel=DAHDI/i2/
channel=DAHDI/i3/
channel=DAHDI/i4/
...
but no luck I'w view records like this
127.0.0.1 <- Event: Newexten
127.0.0.1 <- Privilege: dialplan,all
127.0.0.1 <- Channel: DAHDI/i1/100-3a
127.0.0.1 <- Context: macro-dial-one
127.0.0.1 <- Extension: s
127.0.0.1 <- Priority: 37
127.0.0.1 <- Application: Dial
127.0.0.1 <- AppData: SIP/6030,15,Ttr
127.0.0.1 <- Uniqueid: 1290076717.150
127.0.0.1 <- Server: 0
but it not affected on FOP2 pageUpdate: I try this trick
[DAHDI/g0]
type=trunk
label=E1-LDK
queuecontext=from-queue
extenvoicemail=*
email=splitme-1-30
channel=DAHDI/i1/100
channel=DAHDI/i2/100
channel=DAHDI/i3/100
100 - is the one of the extensions behind the E1 trunkAnd now FOP2 shows me calls to/from that number only
Comments
What is the dahdi name exactly?
DAHDI/i{CHANNELNUMBER}/{DIALEDNUMBER}:{SUBADDRESS}-{SESSION} ?
To make it work I will have to add support for this format in FOP2, as right now what FOP2 does is to strip only the -{SESSION} suffix and use the first part as the device name.
Do you want to do some beta testing for this?
Best regards
channel=DAHDI/i1
channel=DAHDI/i2
If you are using any other distro, let me know so I can create the tarball for you.
1. I'm lost fop2 homemade russian translation, the op_lang_ru.cfg and lang_ru.js is not working, language setting is disappears from index.html. The 'ru' setting in Preferences box and fop2.cfg Global Config is not affected too.
2. The in autoconfig_buttons_freepbx.sh is useful for ISDN channels only. Additional FXS/FXO Dahdi channels named as usual (DAHDI/N). The FOP2 must check the channel type and the add "i" or not, depends of that type, I think.
In FOP 2.20 language is set only in presence.js or via the individual preferences, there is no server side language anymore (no op_lang_xx.cfg) nor the need to edit the index.html file. But you still have the language for the phonebook , and you must set it in config.php.
The autoconfiguration script will not output the i, you must modify it by hand. I do not know how to test for the type, so if you use it, it is pretty easy to modify the script anyways.
But the main question is, does it work? Do you see dahdi status?
autoconfig-buttons-freepbx.sh output is fop2_server debug is(call from Dahdi/i1/100 to SIP/6030): 'btn': '15@GENERAL' - is SIP/6030
Can you make some calls while capturing output from fop2_server -X 1 and then send the capture privately to me, together with the button configuration for your trunk, extensions involved? Or you can try to catch me on the live help and provide ssh access to your server so I can take a look at it?
Best regards
Also, I think "DAHDI/i$ZAPNUM" hardcoded in autoconfig-freepbx-buttons.sh is not suitable for a mixed installation of analog and digital DAHDI cards.
And to make it clear to other users, this happens with CUSTOM DAHDI TRUNKS for ISDN, not for regular DAHDI usage... right?
*EDIT: The indication is appears when I pickup the phone too, but not while phone ringing. I think it's not a CUSTOM DAHDI TRUNKS for ISDN, it's STANDARD DAHDI TRUNKS for ISDN (DIGIUM Wildcard TE122). But new version of DAHDI and LibPRI used in Asterisk 1.8 was changed for best q931 support. Therefore, such a system of naming ISDN channels is standard for all installations of Asterisk 1.8
DAHDI/i1/100 ringing to SIP/6030 screenshot
http://farm6.static.flickr.com/5124/5227634625_0854707b1a_z.jpg[/url:ex7qglin]
And now call is answered
http://farm6.static.flickr.com/5288/5227632049_e8f514956e_z.jpg[/url:ex7qglin]
Trunk buttons only are displayed when they are bridged. That is normal behavior in fop2.
Thank you, Nicolas!
I set up much extensions in elastix as DAHDI devices, such as "DAHDI/i9/10" etc, but corresponding buttons don't show their status, when I make call to or from extensions. However status of DAHDI trunks works well, that is, I see channels and phone numbers on trunks.
Is there a setting I am missing in getting this back working?
I added the line in php.ini max_input_vars = 2500 so that I could post the buttons form properly as the newer version of PHP only permits up to 1000 by default.
I ran the autoconfig-buttons-freepbx.sh and the DAHDI lines do not appear to be showing up correctly still.
I am now showing the channels, but it is not showing up properly.
Eg. I have a trunk which uses channels 1-47 ( private PRI ) and a trunk that uses channels 49-71 ( PRI from telco ).
All channels appear to be coming in via the 1-47 trunk on the FOP2 panel now.
EDIT: Upon further review it seems that Asterisk is not reporting the proper DAHDI channel in use. I make a call out which goes out via DAHDI channel 49, however it is reporting it under DAHDI/i3.
I can only figure that Asterisk is grouping the trunks via an interface number.
Due to this, I changed in FOP2 buttons to use 1-2 for the first two trunk lines ( two links spanned on one group ) and 3 for the last.
This does not appear to work ( one of the trunk buttons light up but does not associate properly to the correct trunk ).
EDIT: To single out the line in FOP2admin - Buttons, you need to set it to 3-3, otherwise it will generate the lines as if going from 1 to 3. This appears to have resolved the issue.