Aastra XML scripts 2.3.0 Beta

Re: Vcalloway

Just read your traces, it is interesting to see that dialing vmail is not processed within the from-internal-additional context, Asterisk is dialing out on a trunk.

Did you modify something in the dialplan? Are you using a special context for your extensions?

Did you install ALL the freePBX modules as requested in the documentation? Did you pass the "check_install" tool?

You should get this

Code:
    -- Executing [vmail@from-internal:1] Answer("SIP/2500-00000085", "") in new stack
    -- Executing [vmail@from-internal:2] AGI("SIP/2500-00000085", "aastra-vm.php") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/aastra-vm.php

Anyway, I will make some tests with the same version to debug.

Will keep you posted.

Regards

aastra1
 
No changes to my extensions but I do have a couple of dialplan changes:

This is the bottom of extensions_custom.conf:
Code:
[from-sip-callcentric]
exten => _.,1,NoOp(Received incoming SIP connection from unknown peer to ${EXTEN})
exten => _.,n,Set(DID=${IF($["${EXTEN:1:2}"=""]?s:${EXTEN})})
exten => _.,n,Goto(s,1)
; CallCentric Check
exten => s,1,GotoIf($["${DID}"="17772528907"]?callcentric)
; Regular Check
exten => s,n,GotoIf($["${ALLOW_SIP_ANON}"="yes"]?checklang:noanonymous)
; CallCentric DID Code
exten => s,n(callcentric),Set(Var_FROM_DOMAIN=${CUT(CUT(SIP _HEADER(TO),@,2),>,1)})
exten => s,n,GotoIF($["${Var_FROM_DOMAIN}" = "callcentric.com"]?callcentric-next)
exten => s,n,GotoIF($["${Var_FROM_DOMAIN}" = "ss.callcentric.com"]?callcentric-next)
exten => s,n,GotoIF($["${Var_FROM_DOMAIN}" = "66.193.176.35"]?callcentric-next:checklang)
exten => s,n(callcentric-next),Set(Var_TO_DID=${CUT(CUT(SIP_HEADER(TO),@,1) ,:,2)})
exten => s,n,GotoIF($["${Var_TO_DID}" = ""]?checklang)
exten => s,n,Set(DID=${Var_TO_DID})
; Regular script continues
exten => s,n(checklang),GotoIf($["${SIPLANG}"!=""]?setlanguage:from-trunk,${DID},1)
exten => s,n(setlanguage),Set(CHANNEL(language)=${SIPLANG})
exten => s,n,Goto(from-trunk,${DID},1)
exten => s,n(noanonymous),Set(TIMEOUT(absolute)=15)
exten => s,n,Answer
exten => s,n,Wait(2)
exten => s,n,Playback(ss-noservice)
exten => s,n,Playtones(congestion)
exten => s,n,Congestion(5)
exten => h,1,Hangup
exten => i,1,Hangup
exten => t,1,Hangup

[from-didforsale]
exten => _X.,1,Set(CALLERID(num)=${CALLERID(num):1}) ;This line removes the “+” in front of the CallerID.
include => from-trunk


#include extensions_aastra.conf
I also have most of the Nerd Vittles addons installed. The new box does as well.

Think Nerdo Uno has something going on that clashes?
 
Directory Interface

Aastra1, is it possible to have your directory app work with FreePBX's new directory function.

With the ability to add external extensions to the FreePBX directory, it greatly simplifies things for Multi-Location setups. It would be great if the phones can take advantage of the MySql table that the information is stored in.

Rob
 
FreePBX phonebook

Hi Rob,

Aastra1, is it possible to have your directory app work with FreePBX's new directory function.

With the ability to add external extensions to the FreePBX directory, it greatly simplifies things for Multi-Location setups. It would be great if the phones can take advantage of the MySql table that the information is stored in.

Which freePBX module are you referring to? Is that the Asterisk phone book module coupled with the new phonebook directory? Please confirm.

I believe this is doable except that we will not be able oto display any status for these external extensions.

We will have a look.

Regards

aastra1
 
It is the new Directory Module that came out with 2.8beta. It is replacing the Asterisk Built in Directory.

It captures local extensions as well you can add custom extensions. It replaces the press # directory.

Rob
 
RE: Directory Module

It is the new Directory Module that came out with 2.8beta. It is replacing the Asterisk Built in Directory.

It captures local extensions as well you can add custom extensions. It replaces the press # directory.
Rob

OK not yet familiar with it but we will have a look when 2.8 is released, that will probably make 2.3.1.

aastra1
 
Beta 4 now available

All,

We just made available Beta 4 on our HTTP server (http://65.205.71.13/2.3.0) . Check out the initial post in this thread for more details on the content and how to install it.

Thanks again for your help with this beta.

Regards

aastra1
 
Asterisk 1.4.3
Aastra 57i 2.6.0.66
aastra-xml scripts beta4

The voicemail button still locks the phone solid. You have to pull the power and reboot to get the phone back. When you press the vm button it will show the messages but when you select one and press the 'play' button, it looks like it starts to do something, very briefly "Call Failed" flashes on the screen and the phone beeps a busy signal. From then on none of the buttons work. Power cycle is the only way out.
 
Voicemail locks the phone

Asterisk 1.4.3
Aastra 57i 2.6.0.66
aastra-xml scripts beta4

The voicemail button still locks the phone solid. You have to pull the power and reboot to get the phone back. When you press the vm button it will show the messages but when you select one and press the 'play' button, it looks like it starts to do something, very briefly "Call Failed" flashes on the screen and the phone beeps a busy signal. From then on none of the buttons work. Power cycle is the only way out.

We need to understand why the call fails. Basically the phone dials "vmail" to listen to the messages and locks the screen. The screen is unlocked at the end of the call... which has failed unfortunately.

Can you provide Asterisk traces by dialing "vmail" from the phone, to do this just create a speeddial button with "vmail" for the value.

There must be a problem in your dialplan which makes the call fail.

Regards

aastra1
 
We need to understand why the call fails. Basically the phone dials "vmail" to listen to the messages and locks the screen. The screen is unlocked at the end of the call... which has failed unfortunately.

Can you provide Asterisk traces by dialing "vmail" from the phone, to do this just create a speeddial button with "vmail" for the value.

There must be a problem in your dialplan which makes the call fail.

Regards

aastra1


Here is the asterisk/full log:

Code:
[2010-05-27 15:23:08] NOTICE[3553] chan_sip.c: Call from '20' to extension 'vmail' rejected because extension not found.
[2010-05-27 15:23:08] VERBOSE[4778] logger.c:   == Parsing '/etc/asterisk/manager.conf': [2010-05-27 15:23:08] VERBOSE[4778] logger.c: Found
[2010-05-27 15:23:08] VERBOSE[4778] logger.c:   == Parsing '/etc/asterisk/manager_additional.conf': [2010-05-27 15:23:08] VERBOSE[4778] logger.c: Found
[2010-05-27 15:23:08] VERBOSE[4778] logger.c:   == Parsing '/etc/asterisk/manager_custom.conf': [2010-05-27 15:23:08] VERBOSE[4778] logger.c: Found

I verified the extensions.conf includes the extensions_aastra.conf file. Here is the file:
Code:
-rwxr-xr-x 1 asterisk asterisk   4193 May 27 00:09 extensions_aastra.conf


Just thought of something, I am using the custom contexts module and this phone is in a "office-phones" context no the standard from-internal or whatever.
 
VMAIL problems

Just thought of something, I am using the custom contexts module and this phone is in a "office-phones" context no the standard from-internal or whatever.

That would have been my next question... the modified dial plan we put in place and which includes what to do with "vmail" is an extension of from-internal. That is probably the source of your problems.
Can you put a phone back in the "from-internal" context and give it a try? Maybe we can figure out how to duplicate for your custom context, that should be doable.

Regards

aastra1
 
Why are you not using the latest 2.6 Firmware with this, because now when i install this scripts, it try to downgrade each of my phone
 
Why are you not using the latest 2.6 Firmware with this, because now when i install this scripts, it try to downgrade each of my phone

Hi Speedy2k,

Not sure I understand your concern here, the scripts are perfectly compatible with 2.6.0, only the RPM needs aastra-ipphone2.5.3 or better. Once installed, you can drop the 2.6 .st files in /tftpboot, they will stay there.

Again, not sure I understand

Regards

aastra1
My responses tend to represent myself only and do not necessarily represent the views of Aastra.
 
Would you change the way your scripts check for root?

Using the EUID value would make it better for people who su to root.

Example:
Code:
# Make sure only root can run our script
if [[ $EUID -ne 0 ]]; then
   echo "This script must be run as root"
   exit 1
fi
I'm a bit old and set in my ways. I always set my linux boxes up to block remote root login and require an ssh key for login. I just su to root.
 
I have seen that the parking lot key when you want to park a call never give you back the parked extension, not even audio or visual, is it the way it supposed to be ?? If there is more then 1 parked call it can be problematic ?
 
It should not only show you on the screen, it should tell you.

I had an issue with aastra1 script not starting on bootup. Check to make sure it is running.
 
Test root user

Would you change the way your scripts check for root?

Using the EUID value would make it better for people who su to root.
I'm a bit old and set in my ways. I always set my linux boxes up to block remote root login and require an ssh key for login. I just su to root.

Looks like the only script that tests root is "check_install", the change has been made abd will be in the next package. Let us know if we missed a script.

Regards

aastra1
 
I have seen that the parking lot key when you want to park a call never give you back the parked extension, not even audio or visual, is it the way it supposed to be ?? If there is more then 1 parked call it can be problematic ?

The new way to do parking/pickup via a key is in fact a blind transfer instead of a monitored transfer as it used to be. Which means that you will not get the prompt but the parking orbit should be displayed, this had been requested many times.

Which phone are you using? Which version of Asterisk...

You can still go back to the previous way was adding the spcrecode value in the profile and changing the configuration of the "parking" button.

Regards

aastra1
 
That would have been my next question... the modified dial plan we put in place and which includes what to do with "vmail" is an extension of from-internal. That is probably the source of your problems.
Can you put a phone back in the "from-internal" context and give it a try? Maybe we can figure out how to duplicate for your custom context, that should be doable.

Regards

aastra1

Got this working with my Custom Context module. My CC is "Office-Line" so I went grep'in and found it in extensions_additional.conf and it had an include for Office-Line-custom which did not exist. So in extensions_custom.conf I created [Office-Line-custom] and added the three lines I found in the extensions_aastra.conf file:

[Office-Line-custom]
include => aastra-vm
include => aastra-login
include => aastra-logout

(I added these near the bottom of the file).

Then did a reload and so far, all is well!!

Btw: I am running the latest 57i firmware and the Beta4 xml scripts on asterisk 1.4.30
 

Members online

No members online now.

Forum statistics

Threads
26,687
Messages
174,410
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top