Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] [HELP]: Auto-answering calls placed from call files


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
srmccann at gmail.com
Guest





PostPosted: Tue Jan 28, 2014 11:56 am    Post subject: [asterisk-users] [HELP]: Auto-answering calls placed from ca Reply with quote

Hello All,


I've asked this on the asterisk-dev list, so sorry for cross-posting. So far I'm not sure how to accomplish this without looking at the source code or looking at some other way to get around this issue.


I'm trying to have an automated call to an Aastra SIP phone and have the call auto-answeredby the phone. I know that a SIP call placed to the phone can be auto-answered if a certain SIP header is added to the call. I am able to apply the SIP headers manually and get that working (using SIPAddHeader(Alert-Info: info=alert-autoanswer) in the dialplan, but for call files, I don’t seem to be able to edit any of the sip headers - there is only basic customizations allowed to setup the calls.


Does anyone know how I could place automated outgoing calls that would have the proper sip headers added to it that would allow the call to be auto-answered?


I've also posted this question to the forums here: http://forums.asterisk.org/viewtopic.php?f=1&t=89190


Many thanks,
Steve


--------------------


http://www.stevemccann.net
Back to top
mjordan at digium.com
Guest





PostPosted: Tue Jan 28, 2014 12:06 pm    Post subject: [asterisk-users] [HELP]: Auto-answering calls placed from ca Reply with quote

On Tue, Jan 28, 2014 at 10:56 AM, Steve McCann <srmccann@gmail.com> wrote:
Quote:
Hello All,

I've asked this on the asterisk-dev list, so sorry for cross-posting. So far
I'm not sure how to accomplish this without looking at the source code or
looking at some other way to get around this issue.


I'm trying to have an automated call to an Aastra SIP phone and have the
call auto-answeredby the phone. I know that a SIP call placed to the phone
can be auto-answered if a certain SIP header is added to the call. I am able
to apply the SIP headers manually and get that working (using
SIPAddHeader(Alert-Info: info=alert-autoanswer) in the dialplan, but for
call files, I don't seem to be able to edit any of the sip headers - there
is only basic customizations allowed to setup the calls.

Does anyone know how I could place automated outgoing calls that would have
the proper sip headers added to it that would allow the call to be
auto-answered?

I've also posted this question to the forums here:
http://forums.asterisk.org/viewtopic.php?f=1&t=89190

Many thanks,
Steve


This isn't a development question, as it doesn't relate to the actual
Asterisk source code itself. Cross-posting across the -dev and -users
lists isn't helpful either, as pretty much everyone who is subscribed
to the asterisk-dev list is also subscribed to the asterisk-users
list.

As SIPAddHeader is a dialplan application and not a dialplan function,
it cannot be used from a call file. One approach to performing an
outbound call that requires SIPAddHeader - and that doesn't rely on
undocumented behaviour - is to use the call file to create a Local
channel in the dialplan that dials the SIP channel, and use
SIPAddHeader from there. A quick Google indicates others have used a
similar approach in the past as well [1].

[1] http://lists.digium.com/pipermail/asterisk-users/2008-January/204375.html

Matt

--
Matthew Jordan
Digium, Inc. | Engineering Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
mailinglist+asterisk a...
Guest





PostPosted: Tue Jan 28, 2014 12:06 pm    Post subject: [asterisk-users] [HELP]: Auto-answering calls placed from ca Reply with quote

On 28/01/14 16:56, Steve McCann wrote:
Quote:
Hello All,

I've asked this on the asterisk-dev list, so sorry for cross-posting.
So far I'm not sure how to accomplish this without looking at the
source code or looking at some other way to get around this issue.

I'm trying to have an automated call to an Aastra SIP phone and have
the call auto-answeredby the phone. I know that a SIP call placed to
the phone can be auto-answered if a certain SIP header is added to the
call. I am able to apply the SIP headers manually and get that working
(using SIPAddHeader(Alert-Info: info=alert-autoanswer) in the
dialplan, but for call files, I don’t seem to be able to edit any of
the sip headers - there is only basic customizations allowed to setup
the calls.

Does anyone know how I could place automated outgoing calls that would
have the proper sip headers added to it that would allow the call to
be auto-answered?

I've also posted this question to the forums here:
http://forums.asterisk.org/viewtopic.php?f=1&t=89190
<http://forums.asterisk.org/viewtopic.php?f=1&t=89190>

Many thanks,
Steve



So I take it in the call file you have it set to call Dial(SIP/something) ?
If rather than dialling the sip destination immediately you dialled a
local channel then it could add the custom header and then initiate the
dial to the sip destination.


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
indreias at gmail.com
Guest





PostPosted: Wed Jan 29, 2014 3:53 am    Post subject: [asterisk-users] [HELP]: Auto-answering calls placed from ca Reply with quote

Hello Steve,

Have you tried to send the automated call to your dialplan instead of the phone?


For example, instead of calling SIP/aastra_phone call Local/aastra_phone@auto-answer-context and tweak auto-answer-context from your dialplan as needed.


HTH,
Ioan



On Tue, Jan 28, 2014 at 6:56 PM, Steve McCann <srmccann@gmail.com (srmccann@gmail.com)> wrote:
Quote:
Hello All,


I've asked this on the asterisk-dev list, so sorry for cross-posting. So far I'm not sure how to accomplish this without looking at the source code or looking at some other way to get around this issue.


I'm trying to have an automated call to an Aastra SIP phone and have the call auto-answeredby the phone. I know that a SIP call placed to the phone can be auto-answered if a certain SIP header is added to the call. I am able to apply the SIP headers manually and get that working (using SIPAddHeader(Alert-Info: info=alert-autoanswer) in the dialplan, but for call files, I don&rsquo;t seem to be able to edit any of the sip headers - there is only basic customizations allowed to setup the calls.


Does anyone know how I could place automated outgoing calls that would have the proper sip headers added to it that would allow the call to be auto-answered?


I've also posted this question to the forums here: http://forums.asterisk.org/viewtopic.php?f=1&t=89190


Many thanks,
Steve


--------------------


http://www.stevemccann.net






--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services