support

Auto answer when call from own extension

a_lemin
Posts: 189
Member Since:
2007-01-21

Hello.
I have just got my hands on an Aastra 57i and i am trying to get it all setup.
I have got it working and get HUDlite working too.
When I click a contact in HUD it calls my Aastra 57i phone (Call comes from my own extension), as soon as I pickup the other end starts to ring.

Is there a way I can get my Aastra 57i to auto answer calls when they are from my own extension.
For example, I have my headset on, I click a contact in HUD and i want to be connected straight away without having to press L1.

I do not want auto answer enabled for anything else though.

Thanks in advance :)



SkykingOH
Posts: 3668
Member Since:
2007-12-17
Setup one of the four line

Setup one of the four line appearances on your phone with an individual extension. Enable auto answer on that line.

That should do the trick.

Scott

--

Scott

aka "Skyking"



a_lemin
Posts: 189
Member Since:
2007-01-21
Hey, thanks for the quick

Hey, thanks for the quick reply :)

Hmmm. Didn't really want to do that as people will phone me on one extension (No auto answer), but when I phone out to others I will appear to come from a different extention (The one with auto answer). That is really messy! :(

Someone must have pointed out this really obvious requirement before now?



SkykingOH
Posts: 3668
Member Since:
2007-12-17
Hmm, I would think you could

Hmm, I would think you could change the CID of that line appearance to match your 'public line'.

Scott

--

Scott

aka "Skyking"



a_lemin
Posts: 189
Member Since:
2007-01-21
Ah yes, of course! Didn't

Ah yes, of course! Didn't think of that.

I take it i will find how to set auto answer for one of the extensions in the Aastra manuals.



jahyde
Posts: 1991
Member Since:
2006-06-02
its easy to find in the

its easy to find in the phone webgui also

--

--my PBX is run on 2 V8's



a_lemin
Posts: 189
Member Since:
2007-01-21
Ok, so i have created two

Ok, so i have created two extensions, 255 and 355 (Extension 355 has a caller ID of 255 though).
255 is my normal extension that everyone dials. I want extension 255 to ring and only answer if i pick it up.

I want to be able to dial calls using HUD without having to answer though, so as suggested in a previous post I have created the 355 extension. 'Line 1' is configured with the 255 extension, and 'Line 2' is configured with the 355 extension.

I have then set HUD to register as extension 355, so when I use HUD to dial out it calls 355 (Line 2). However i cannot see how i can set only extension 355 (Line 2) to auto answer?!?!

I am sorry if i am being really dumb here but i have never used one of these phones before so this is a learning curve ;)



SkykingOH
Posts: 3668
Member Since:
2007-12-17
Quote: However i cannot see
Quote:
However i cannot see how i can set only extension 355 (Line 2) to auto answer?!?!

I do not have an admin manual handy. I am almost sure you have to do it in the config file.

If you don't find it I will take a look this afternoon.

Scott

--

Scott

aka "Skyking"



a_lemin
Posts: 189
Member Since:
2007-01-21
Hey thanks for your reply, I

Hey thanks for your reply, I have trawled through the config manual but have been unable to find it. Is there a list of tokens with descriptions you can set in the config files then?

Although as I said, I am experienced with trixbox but I am very new to these phones so please forgive me ;)

http://www.aastra.com/cps/rde/xbcr/SID-3D8CCB6A-7BC7D573/04/57i_4...



a_lemin
Posts: 189
Member Since:
2007-01-21
I have been looking into

I have been looking into this some more and I have to say that there must be a better way of doing this?

Having two extentions for one phone really is a bit of a hack not to mention you also end up with two entries in the Directory making it confusing for people :(

Could someone for the Aastra team maybe comment?
All I am asking is that you can enable auto answer for select CallerID's, E.g. Your own extension for better integration with HUDlite and other high priority CallerID's etc.
Thanks all :)



SkykingOH
Posts: 3668
Member Since:
2007-12-17
Everything ends up on the

Everything ends up on the phone side to add features.

To make this work correctly with any phone that supports '=intercom' call type the developer of the dialer application could add a feature to dial as intercom.

This would give more universal support.

Scott

--

Scott

aka "Skyking"



a_lemin
Posts: 189
Member Since:
2007-01-21
Hey, thanks again for your

Hey, thanks again for your reply skykingoh.
I am completely lost! :o( Are you saying that it is not possible to configure auto answer for a particular extension and instead you have to dial as 'intercom' (Which incidentally is a concept I have no clue about!). :o(

Someone from Aastra must have an opinion on this??? Come on guys please help.

I cannot believe it is this difficult for an operator wearing a headset to click a number in HUDlite and have it dial out without having to touch the phone :o(



SkykingOH
Posts: 3668
Member Since:
2007-12-17
I was commenting on the

I was commenting on the first solution which is an extra extension that is set to auto answer.

My thought is not to tie this to the phone and have HudLite/AstAssistand/iSymphony use the intercom method to make it phone agnostic.

Let's start a feature thread for Hudlite 3 to include this. I will also run it by the other Scott that authors AstAssistant. He just dropped a new build today I am testing.

I think Gsnoover is tight with the iSymphony guys. I would like to see his opinion.

I will start the thread in the General Discussion forum.

Scott

--

Scott

aka "Skyking"



a_lemin
Posts: 189
Member Since:
2007-01-21
Hey, thank you for your

Hey, thank you for your support on this one :)



a_lemin
Posts: 189
Member Since:
2007-01-21
Is there anything I can do

Is there anything I can do to help? Anything at all?

I am really keen to get this working and will do whatever I can to get this working, we are planning on rolling out 57i's with HUDlite3 to our staff. But at the moment the biggest complaint from people is they sit there with their headsets on and just want to click and go.



SkykingOH
Posts: 3668
Member Since:
2007-12-17
No actually I fell asleep

No actually I fell asleep before made the post. Sorry about that.

I will get it written up tonight.

Scott

--

Scott

aka "Skyking"



SkykingOH
Posts: 3668
Member Since:
2007-12-17
May not need to write it up.

May not need to write it up. Working behind the scenes on this.

Since you can set the context that you dial from in both Hud and Astassistant this should be able to be controlled from dial plan extensions.

Stay tuned to this channel.

Scott

--

Scott

aka "Skyking"



a_lemin
Posts: 189
Member Since:
2007-01-21
hahaha. hope were not

hahaha. hope were not keeping you up! ;o)

wow cheers for this. im surprised that no one has thought of this before but thank you for running with this.

am I right in thinking that the idea is to set the context of hudlite actions to be something like 'from-hud' where the aastra phones will auto answer calls originating with the from-hud context thus allowing auto answer with only one extension. even if it still requires two extensions this is still an awsome enhancement.

thanks again. let me know if I can do anything :o)



SkykingOH
Posts: 3668
Member Since:
2007-12-17
Quote: thanks again. let me
Quote:
thanks again. let me know if I can do anything :o)

How are you at coding? This is not quite as easy as I had thought.

I am doing my testing with Astassistant. Same principal the application allows you to set the context. The dialed call then originates from that context and you can do what you wish with and asterisk application.

The problem is the dialing is generated by the Asterisk Manager Interface (AMI), the dial plan does not have control of the call until the endpoint answers.

I have not figured out how to change the behavior. AMI structure is not easily extensible.

That's where I am at with this.

Scott

--

Scott

aka "Skyking"



a_lemin
Posts: 189
Member Since:
2007-01-21
Hey, well my coding skills

Hey, well my coding skills are fairly low-average. I am a systems engineer not a developer, but I can read code and write simple routines etc.

I understand the problem you have just explained perfectly though, however I do not know how you could overcome the problem without needing a change on the client SIP device (Aastra 57i phone in this case).

To the best of my knowledge the problem can only really be solved by either one of the following;
1) Change the client to auto answer calls coming from a special pre-determined context (E.g. 'from-hud').
2) Change the client to auto answer calls from special SIP addresses.

I only wish i could have provided a constructive solution...

What would the response be from the Aastra peeps regarding this simple yet very useful idea?



SkykingOH
Posts: 3668
Member Since:
2007-12-17
Quote: Change the client to
Quote:
Change the client to auto answer calls coming from a special pre-determined context (E.g. 'from-hud').

Context is an Asterisk construct, the UA (client device) does have any visibility into the contexts.

Quote:
2) Change the client to auto answer calls from special SIP addresses.

That's the issue, IP address is an awful way to implement this feature. It's an Asterisk Manager problem. It should be endpoint agnostic.

If there is a clean way to do this in the endpoint I am all ears.

Scott

--

Scott

aka "Skyking"



a_lemin
Posts: 189
Member Since:
2007-01-21
hey. forgive my lack of

hey. forgive my lack of knowledge but I cannot work out how this problem can be solved in the asterisk manager interface and dial plan as you do not have control of the end point until it answers and getting it to autoanswer is the whole crux of the problem.
thank you again for your time and input on this, I really appreciate your help.
Andy



a_lemin
Posts: 189
Member Since:
2007-01-21
hey scott. as you have been

hey scott. as you have been so supportive and helpful I will see what I can do about testing astassistant properly in our environment and if it works as well as you say and does what we need I will see if I can convince my managers to take it on over hud.
outstanding issues will be things like url popup's only after the call is answered and being able to make the interface smaller by only showing extensions, call controls and contact list.
the main issues was that astassistant is great for a secretery etc. but total overkill for an end user who just wants to see extensions and ext status', have access to the general address book,be able to click and talk without touching the end point and have url popup's only after accepting the call.

keep up the good work :o)



a_lemin
Posts: 189
Member Since:
2007-01-21
hey scott. as you have been

hey scott. as you have been so supportive and helpful I will see what I can do about testing astassistant properly in our environment and if it works as well as you say and does what we need I will see if I can convince my managers to take it on over hud.
outstanding issues will be things like url popup's only after the call is answered and being able to make the interface smaller by only showing extensions, call controls and contact list.
the main issues was that astassistant is great for a secretery etc. but total overkill for an end user who just wants to see extensions and ext status', have access to the general address book,be able to click and talk without touching the end point and have url popup's only after accepting the call.

keep up the good work :o)



SkykingOH
Posts: 3668
Member Since:
2007-12-17
I agree that Astassistant is

I agree that Astassistant is overkill for an end user. Scott (the author) is working on a mode with a lower screen footprint. What information would you like to see in that mode.

In Astassistant you can control which windows are open, you can't resize the windows inside the main window (yet). You can also control which users can see each other on a user per user basis.

The other issue is I do not have any hard limits on how many concurrent users Asterisk can take. I have seen off hand comments on AMI having issues when getting pounded. Nothing quantifiable nor have I been able to reproduce the behavior.

Hudlite uses a local IRCd to distribute manager events, kind of a manager proxy.

Scott

--

Scott

aka "Skyking"



a_lemin
Posts: 189
Member Since:
2007-01-21
Hey, the best designed

Hey, the best designed interface I have come across to date has to be the 'Counterpath Bria' soft phone. Obviously it is a soft phone, but the point is that its GUI is very simple and intuitively laid out.
Shame that it doesn't work very well as a phone! After all it is a soft phone. Anyway I digress.

I am sure others may see otherwise, but the client interface could be laid out as follows;
The interface could be a vertical resizable rectangle broken into two main parts.
The top section could have the usual like the File, Edit, Tools menu's etc. Then immediately below that could be the call controls and call status section including dial, hang-up, transfer (Providing a drop down list of live extensions instead of having to type a number), call duration, area to type numbers for manual dial etc etc...

Then below the top static section could be a modal section.

The lower modal section could be headed with some simple tabs.
Selecting each tab would then change all the lower content.

So for example, the first and default tab being for 'Contacts';
This tab shows a text box for typing names for regular expression searching through the contact list etc, then below that should be a scrollable list showing all the extensions and contacts in the same list.
The first entries in the contact list should be the SIP and IAX extensions showing their status etc (Right clicking a contact shows 'call ext', 'call voice mail' etc), then below the extensions in the same scrollable list, maybe below a subheading of 'Contacts' for example list all the contacts.

The second tab being for 'History';
This tab changes the lower section to show a list of all the call history items etc.

The third tab for 'Chat';
This tab changes the the lower section to show your chat history which you may also type in to send more etc. At the top of this lower 'Chat' section could be a button for start new chat, which presents a drop down list of only the chat enabled extensions etc.

This layout is highly established well designed and can be seen in many products like Couterpath’s Bria, NCH’s Express Talk etc.

There is probably no need to provide the user with any more information than this and would be an unnecessary loading on the AMI as you pointed out.

Have you had any revelation yet as to how to get the auto answer working? ;o)



SkykingOH
Posts: 3668
Member Since:
2007-12-17
Quote: Have you had any
Quote:
Have you had any revelation yet as to how to get the auto answer working? ;o)

No and I don't expect one to come very soon.

It's typical Monday and I am sure I won't be looking at it today.

Scott

--

Scott

aka "Skyking"



a_lemin
Posts: 189
Member Since:
2007-01-21
Almost forgot, need a simple

Almost forgot, need a simple and clean way to manage attended and unattended (Blind) transfers properly.
Bria over complicates this.
Cheers.



a_lemin
Posts: 189
Member Since:
2007-01-21
Hey, i tried sending a PM to

Hey, i tried sending a PM to aastra3 to ask if he knows of a way to tackle this and if there ever might be support for auto answer on a per-source basis but i haven't had any response yet.

I don't understand why the aastra team are being so quiet on this thread! :o(



aastra3
Posts: 95
Member Since:
2006-11-07
I've never really used

I've never really used hudlite but have a basic understanding of it. I believe there is a way to switch it to use intercom and that may help. Someone else hopefully should be able to answer that.The only other methods that i think would be to use XML. That would require changes in the hudlite code to use the XML dial object instead of the current 2 call part setup.

Another option may be available in 2.3 when it is released. (coming in the near future - date still to be determined) you could have an incoming call action uri. which parses the incoming call and from this information determines that the call needs to be auto-answered. If it is to be auto answered use the new XML button press simulation object to simulate the line key being pressed and therefore auto-answering the call. Hopefully this will help.

Cheers

Kieran



a_lemin
Posts: 189
Member Since:
2007-01-21
Hey, thank you for your

Hey, thank you for your reply.

This is great news. Thank you very much, this is really positive. I do hope Aastra realise the value of being able to auto answer calls initiated from these third party controlling app's like HUD, Astassistant and iSymphony etc.

Can you explain a little more about the XML dial object?

Having an incoming call action which parses incoming calls to determine the auto answer status would be great. I really do hope you take this further and check for support with HUD and Astassistant? Thank you for your time.



aastra3
Posts: 95
Member Since:
2006-11-07
Check out

Check out the
XML guide zip file its in the user manuals section.

Take a look at the action uri with a dial action. section 3.10. if that is sent to the phone the phone dials the number.

Kieran



a_lemin
Posts: 189
Member Since:
2007-01-21
Hey OK. I have skimmed

Hey OK.
I have skimmed through all the other manuals but not the XML dev guide. I'll have a read over the weekend.



FredP
Posts: 4
Member Since:
2007-04-15
are you sure you want auto answer - why not click2dial?

click2dial is supported on Aastra phones. can't a simple software call to the phone initiate an off hook and dial event? sorry, i don't write code, i just use it.



a_lemin
Posts: 189
Member Since:
2007-01-21
Hey, my understanding of

Hey, my understanding of clicktodial is it is just siptapi support.
Surely ClickToDial results in the same action as we are are discussing.

You have a headset on, You click on your PC, your phone rings, you have to reach over and answer the call, then the outbound dialing begins.

What we are tying to do is to remove the need to answer your phone.

You have a headset on, You click on your PC, the outbound dialing begins.

My understanding is this support needs to be implemented on the phone itself to allow the auto answer so you just click and the outbound call is connected.
Have i misunderstood this?

Aastra people, is there any news about supporting this in 2.3???? Please, please, please!! ;)



aastra3
Posts: 95
Member Since:
2006-11-07
What I suggested is my last

What I suggested is my last post would be to modify hudlite to send a dial action uri object to the phone. This makes an outgoing call on the phone. no button presses are necessary.
This is already available 2.2.1.

However my thoughts were that you probably don't have access to the hudlite code and therefore you need to try something else. In 2.3 you could use the incoming call action uri to call a script that examines where the call came from. once it determines that the call is from hudlite. respond with a button press action uri that fakes the answer button being hit. This requires some development with action uri scripts/xml on your part. The 2.3 release is imminent.

Cheers

Kieran



a_lemin
Posts: 189
Member Since:
2007-01-21
Hello, thanks for your

Hello, thanks for your reply. I understand better know what you are suggesting having done a little bit of reading.
If i were to code it this way as you say, how could i control which phones auto answer (The ones with headsets), and which ones don't (The ones with only a handset)?
Cheers.



a_lemin
Posts: 189
Member Since:
2007-01-21
Now that version 2.3 is

Now that version 2.3 is available and working well (On my phone so far anyway), i am going to try to code this as suggested by Aastra3.

Because there is no documentation available yet is there anything you can recommend, in particular what is the syntax for this new incoming call URL you mentioned.

I will try and muddle through this. I don't suppose there is any chance the aastra people may provide some example code for this as there is a clear need to support significantly better click-to-dial integration when using a headset.



aastra3
Posts: 95
Member Since:
2006-11-07
The XML URI for Key Press

The XML URI for Key Press Simulation is defined on page 42 of the
Release Notes.



aastra3
Posts: 95
Member Since:
2006-11-07
One thing to be aware is

One thing to be aware is that the phone is unaware if a headset is plugged in or not. So you may have to store that information locally on your server.

Cheers

Kieran



aastra2
Posts: 309
Member Since:
2006-10-05
a_lemin wrote: Because there
a_lemin wrote:
Because there is no documentation available yet is there anything you can recommend, in particular what is the syntax for this new incoming call URL you mentioned.

The new XML guide covers this (and all the other XML changes), it's available for download from the normal download page. Here is the direct link in case you can't find it.

--

----
Gareth

Firmware 2.4.0 released.
Download it from www.aastratelecom.com



a_lemin
Posts: 189
Member Since:
2007-01-21
Hello, Well I have finally

Hello,
Well I have finally got round to actually looking at writing this.
I am at the stage where I am just trying to send the button press action URL to answer the call however there is no definition for 'Key:Answer' in the latest XML manual. Every other button but not 'Key:Answer'.

Am I missing something really obvious! :(



aastra2
Posts: 309
Member Since:
2006-10-05
There is 'Key:Speaker'

There is 'Key:Speaker' that does this.

--

----
Gareth

Firmware 2.4.0 released.
Download it from www.aastratelecom.com



a_lemin
Posts: 189
Member Since:
2007-01-21
Hello thanks for your

Hello thanks for your reply,
However the whole point of this entire thread is to auto answer the call to the headset!!!

Surely 'Key:Speaker' answers the call and starts the audio session via the speakers.

Is there a 'Key:Headset' ???

Thank you in advance :)



a_lemin
Posts: 189
Member Since:
2007-01-21
I have just found

I have just found Key:Headset in the manual so i will give this a try.

Thanks for your help :)



a_lemin
Posts: 189
Member Since:
2007-01-21
For those that might be

For those that might be interested, i finally got round to finishing this after being away on holiday.
It turned out to be very very easy. The only problem I had was trawling through the XML manuals which are very long and don't really provide any useful examples.

In the end I got fed up and started looking through the available php classes and figured it out for myself that way instead.

Anyway on the phones which have headsets and so I want to auto answer I added the following line to the relevant MAC.cfg file in /tftpboot/;
action uri incoming: http:///aastra/asterisk/autoanswer.php?user=$$SIPUSERNAME$$&number=$$REMOTENUMBER$$

Then I used the trixbox example script incoming.php as a reference and wrote the following naming it autoanswer.php and placing it into the directory /var/www/html/aastra/asterisk;

require_once('AastraCommon.php');
require_once('AastraIPPhoneExecute.class.php');
require_once('AastraIPPhoneExecuteEntry.class.php');

$number=$_GET["number"];
$user=$_GET["user"];

if($number==$user) {
        $object = new AastraIPPhoneExecute();
        $object->addEntry('Key:Headset');
        $object->output();
}
else {
        $object = new AastraIPPhoneExecute();
        $object->addEntry('');
        $object->output();
}

Now when you click a contact in HUD, ASTassistant or similar, whilst you are wearing your headset, the call just connects and off it goes without ever having to touch your phone.

Thank you for all your suggestions.



ae3145
Posts: 51
Member Since:
2008-01-10
Thanks for your work...

It seems though that developers for HUD and other click to dials need to embrace sip variables to make this easier for everyone.

George



SkykingOH
Posts: 3668
Member Since:
2007-12-17
Terrific

Can you change to Key:Speakerphone? Instead of a headset I would like the call to start rinig on the Speakerphone then you can simply pick it up when the called party answers.

Thanks.....

--

Scott

aka "Skyking"



a_lemin
Posts: 189
Member Since:
2007-01-21
Hey Scott, You certainly can

Hey Scott, You certainly can replace 'Key:Headset' with 'Key:Speaker' :)

I have expanded the script to check for who people want different types of auto answer. E.g. My boss wants auto answer to the speaker phone just like you and others want Headset so i just added some IF statements. Dead easy.

PS. I have this all working with ASTassistant beautifully.

ae3145; You have no idea! ;) I have been nagging to get the likes of SendURL() and similar working also for ages, which incidental the Beta version of AST works with too.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.