VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
mdiehlenator at gmail.com Guest
|
Posted: Mon Feb 17, 2014 3:47 pm Post subject: [asterisk-users] h extension isn't processed after call file |
|
|
Hi all,
I'm trying to build a fax relay mechanism where faxes come in and get relayed out to their final destination. I'm using the h extension to store various results from both legs. This data is being saved correctly for the first (receiving) leg. The second leg isn't calling the h extension when it's finished. The second leg is being initiated by a .call file like:
Channel: local/1505xxxxxxx@context
Application: sendfax
Data: /tmp/voice11-voice11-1392668806.182025.tiff,zfds
WaitTime: 90
MaxRetries: 2
Account: vFax
CallerID: "Fax" <505xxxxxxx>
The h extension calls an agi scrip that logs a bunch of information about the fax attempt. Works just fine when I receive a fax. But there is no sign of it in the logs for the sending leg of the fax.
Is there something I need to do in order to get the h extension to get called?
Mike. |
|
Back to top |
|
|
ish at pack-net.co.uk Guest
|
Posted: Tue Feb 18, 2014 4:07 am Post subject: [asterisk-users] h extension isn't processed after call file |
|
|
What version of asterisk are you using?
Ish
On 17 February 2014 20:49, Mike Diehl <mdiehlenator@gmail.com (mdiehlenator@gmail.com)> wrote:
Quote: | Hi all,
I'm trying to build a fax relay mechanism where faxes come in and get relayed out to their final destination. I'm using the h extension to store various results from both legs. This data is being saved correctly for the first (receiving) leg. The second leg isn't calling the h extension when it's finished. The second leg is being initiated by a .call file like:
Channel: local/1505xxxxxxx@context
Application: sendfax
Data: /tmp/voice11-voice11-1392668806.182025.tiff,zfds
WaitTime: 90
MaxRetries: 2
Account: vFax
CallerID: "Fax" <505xxxxxxx>
The h extension calls an agi scrip that logs a bunch of information about the fax attempt. Works just fine when I receive a fax. But there is no sign of it in the logs for the sending leg of the fax.
Is there something I need to do in order to get the h extension to get called?
Mike.
--
_____________________________________________________________________
-- 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
|
--
Quote: | Ishfaq Malik
Department: VOIP Support
Company: Packnet Limited
t: +44 (0)845 004 4994
f: +44 (0)161 660 9825
e: ish@pack-net.co.uk (ish@pack-net.co.uk)
w: http://www.pack-net.co.uk
Registered Address: PACKNET LIMITED, Duplex 2, Ducie House
37 Ducie Street
Manchester, M1 2JW
COMPANY REG NO. 04920552
|
|
|
Back to top |
|
|
salah.elharit200 at gm... Guest
|
Posted: Tue Feb 18, 2014 12:49 pm Post subject: [asterisk-users] h extension isn't processed after call file |
|
|
hello,
try to use failed instead of h
exten => failed,1,....
best regards.
2014-02-18 9:09 GMT+00:00 Ishfaq Malik <ish@pack-net.co.uk (ish@pack-net.co.uk)>:
Quote: | What version of asterisk are you using?
Ish
On 17 February 2014 20:49, Mike Diehl <mdiehlenator@gmail.com (mdiehlenator@gmail.com)> wrote:
Quote: | Hi all,
I'm trying to build a fax relay mechanism where faxes come in and get relayed out to their final destination. I'm using the h extension to store various results from both legs. This data is being saved correctly for the first (receiving) leg. The second leg isn't calling the h extension when it's finished. The second leg is being initiated by a .call file like:
Channel: local/1505xxxxxxx@context
Application: sendfax
Data: /tmp/voice11-voice11-1392668806.182025.tiff,zfds
WaitTime: 90
MaxRetries: 2
Account: vFax
CallerID: "Fax" <505xxxxxxx>
The h extension calls an agi scrip that logs a bunch of information about the fax attempt. Works just fine when I receive a fax. But there is no sign of it in the logs for the sending leg of the fax.
Is there something I need to do in order to get the h extension to get called?
Mike.
--
_____________________________________________________________________
-- 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
|
--
Quote: | Ishfaq Malik
Department: VOIP Support
Company: Packnet Limited
t: +44 (0)845 004 4994
f: +44 (0)161 660 9825
e: ish@pack-net.co.uk (ish@pack-net.co.uk)
w: http://www.pack-net.co.uk
Registered Address: PACKNET LIMITED, Duplex 2, Ducie House
37 Ducie Street
Manchester, M1 2JW
COMPANY REG NO. 04920552
|
--
_____________________________________________________________________
-- 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 |
|
|
asterisk.org at sedwar... Guest
|
Posted: Tue Feb 18, 2014 3:10 pm Post subject: [asterisk-users] h extension isn't processed after call file |
|
|
On Mon, 17 Feb 2014, Mike Diehl wrote:
Quote: | Is there something I need to do in order to get the h extension to get
called?
|
Would the 'g' dial() option help?
"Proceed with dialplan execution at the current extension if the
destination channel hangs up."
It won't take you to h, but it may allow you to do what you need to do --
even if the next dialplan priority just says 'goto h.'
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards@sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
--
_____________________________________________________________________
-- 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 |
|
|
mjordan at digium.com Guest
|
Posted: Wed Feb 19, 2014 6:10 pm Post subject: [asterisk-users] h extension isn't processed after call file |
|
|
On Tue, Feb 18, 2014 at 2:13 PM, Steve Edwards
<asterisk.org@sedwards.com> wrote:
Quote: | On Mon, 17 Feb 2014, Mike Diehl wrote:
Quote: | Is there something I need to do in order to get the h extension to get
called?
|
Would the 'g' dial() option help?
"Proceed with dialplan execution at the current extension if the destination
channel hangs up."
It won't take you to h, but it may allow you to do what you need to do --
even if the next dialplan priority just says 'goto h.'
|
I'm actually a bit confused about what channel(s) are executing the
'h' extension. From the description in OP's e-mail, it sounds as if at
least one channel is dropping into the 'h' extension, and some
channels are not. Which channels are they? If it is the outbound
channel, then since that channel doesn't execute dialplan, it will
never get put into the 'h' extension, unless you use the Dial
application's 'e' option. If you want hangup logic and you're using
Asterisk 11+, you could also use a hangup handler on the outbound
channel.
But otherwise, I would expect that the 'h' extension would always be
fired for a channel executing dialplan, so long as it is in the same
context.
--
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 |
|
|
mdiehlenator at gmail.com Guest
|
Posted: Thu Feb 20, 2014 12:22 am Post subject: [asterisk-users] h extension isn't processed after call file |
|
|
Matthew,
I don't think I've been as clear as I'd like.
I've got some fax-connected TA's that make outbound calls. The dial
plan routes those calls to an AGI script that captures the fax image,
the destination phone number, and creates a call file to deliver the
image to the destination.
The first outbound call executes the h extension when it is hung up.
The second call, created by the call file, doesn't execute the h
extension, even though I use the dialplan to actually route the
outbound call.
So, I'm ending up with statistics on the reception of the fax, but not
the final delivery.
Does that make more sense?
Mike.
On Wed, Feb 19, 2014 at 6:10 PM, Matthew Jordan <mjordan@digium.com> wrote:
Quote: | On Tue, Feb 18, 2014 at 2:13 PM, Steve Edwards
<asterisk.org@sedwards.com> wrote:
Quote: | On Mon, 17 Feb 2014, Mike Diehl wrote:
Quote: | Is there something I need to do in order to get the h extension to get
called?
|
Would the 'g' dial() option help?
"Proceed with dialplan execution at the current extension if the destination
channel hangs up."
It won't take you to h, but it may allow you to do what you need to do --
even if the next dialplan priority just says 'goto h.'
|
I'm actually a bit confused about what channel(s) are executing the
'h' extension. From the description in OP's e-mail, it sounds as if at
least one channel is dropping into the 'h' extension, and some
channels are not. Which channels are they? If it is the outbound
channel, then since that channel doesn't execute dialplan, it will
never get put into the 'h' extension, unless you use the Dial
application's 'e' option. If you want hangup logic and you're using
Asterisk 11+, you could also use a hangup handler on the outbound
channel.
But otherwise, I would expect that the 'h' extension would always be
fired for a channel executing dialplan, so long as it is in the same
context.
--
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
|
--
_____________________________________________________________________
-- 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 |
|
|
|
|
|
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
|