Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[asterisk-users] Dial()-Function


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





PostPosted: Thu Mar 17, 2016 7:55 am    Post subject: [asterisk-users] Dial()-Function Reply with quote

Hi all! Smile

I search a function or option for application Dail().


My situations:

I have two or more Dial()s with multiple devices (Handgroups).

Level1: Dial(SIP/device1,20)
Level2: Dial(SIP/device1&SIP/device2,20)
Level3: Dial(SIP/device1&SIP/device2&SIP/device3,20)

When in level one, no one accept the call until the timeout, they have a missed call on device.
When in level two, no one accept the call until the timeout, they have a missed call on device again.
If SIP/device3 accept the call, SIP/device1 has two missed calls and SIP/device2 has one missed call.

If on the same level anyone accept the call, the other in the same level get "Call complered elsewhere". (That's okay)

If i use option "c" for Dial() in any case asterisk send "Call completed elsewhere".
Also if the Caller hangup during ringing/cancel the call.


What i need:

On timeout: "Call completed elsewhere" (this is with option "c")
If any other in the same level accept the call: "Call completed elsewhere" (Thats normal)

And special, if the caller cancel the call during ringing: "Missed Call" (This is without option "c")
But i need this behavior with option c, cause on timeout i need a "Call completed elsewhere".

How can I achieve this?

Sincerely,
Dominique

--
_____________________________________________________________________
-- 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
webaccounts173 at jgoe...
Guest





PostPosted: Thu Mar 17, 2016 8:06 am    Post subject: [asterisk-users] Dial()-Function Reply with quote

Quote:
Hi all! Smile

I search a function or option for application Dail().


My situations:

I have two or more Dial()s with multiple devices (Handgroups).

Level1: Dial(SIP/device1,20)
Level2: Dial(SIP/device1&SIP/device2,20)
Level3: Dial(SIP/device1&SIP/device2&SIP/device3,20)

When in level one, no one accept the call until the timeout, they have a missed call on device.
When in level two, no one accept the call until the timeout, they have a missed call on device again.
If SIP/device3 accept the call, SIP/device1 has two missed calls and SIP/device2 has one missed call.

If on the same level anyone accept the call, the other in the same level get "Call complered elsewhere". (That's okay)

If i use option "c" for Dial() in any case asterisk send "Call completed elsewhere".
Also if the Caller hangup during ringing/cancel the call.


What i need:

On timeout: "Call completed elsewhere" (this is with option "c")
If any other in the same level accept the call: "Call completed elsewhere" (Thats normal)

And special, if the caller cancel the call during ringing: "Missed Call" (This is without option "c")
But i need this behavior with option c, cause on timeout i need a "Call completed elsewhere".

How can I achieve this?

Sincerely,
Dominique

Wouldn't it be easier to use a local channel and do something like is done in the "Delay Dialing
Devices Example"?

https://wiki.asterisk.org/wiki/display/AST/Delay+Dialing+Devices+Example

jg


--
_____________________________________________________________________
-- 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
dominique.haeber at xi...
Guest





PostPosted: Fri Mar 18, 2016 8:42 am    Post subject: [asterisk-users] Dial()-Function Reply with quote

hi jg,

jg <webaccounts173@jgoettgens.de> schrieb am Don, 17. Mär 14:05:
Quote:
Wouldn't it be easier to use a local channel and do something like
is done in the "Delay Dialing Devices Example"?

https://wiki.asterisk.org/wiki/display/AST/Delay+Dialing+Devices+Example

No, i think unfortunately it is not easier. :/

I have a string from database (Macro/appdata) in the format:

function|timeout|function|timeout|function|timeout|....

Up to seven value pairs.

"function" can be "Queue" (Identified by: "qu"-string), "Voicemail" (Identified by: "vm"-string),
"Anouncement" (Identified by: "an"-string), "Enddiveces" (Identified by: "SIP/"-string))
or an "external Number".

Every function with an timeout to the next. I loop all.

I have no idea how I can pass the function and the timeout to the
extension by the most beautiful way. Without a variables war.
One possibility would be to package the parameters in the extension,
but that would be very ugly.


Yes, today we would solve the most different. Smile




Quote:
jg


Sincerely,
Dominique

--
_____________________________________________________________________
-- 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
webaccounts173 at jgoe...
Guest





PostPosted: Fri Mar 18, 2016 10:55 am    Post subject: [asterisk-users] Dial()-Function Reply with quote

Quote:
No, i think unfortunately it is not easier. :/ I have a string from database (Macro/appdata)
in the format: function|timeout|function|timeout|function|timeout|.... Up to seven value
pairs. "function" can be "Queue" (Identified by: "qu"-string), "Voicemail" (Identified by:
"vm"-string), "Anouncement" (Identified by: "an"-string), "Enddiveces" (Identified by:
"SIP/"-string)) or an "external Number". Every function with an timeout to the next. I loop
all. I have no idea how I can pass the function and the timeout to the extension by the most
beautiful way. Without a variables war. One possibility would be to package the parameters in
the extension, but that would be very ugly. Yes, today we would solve the most different. Smile
I can't see what you are trying to do and how your "appdata" relate to your previous mails. I am
also wondering why you want to "pass" functions and timeouts. Wouldn't it be enough to dispatch
everything, set some channelvars, assemble a dial string, and then let the local channels take
care of the rest?

jg

--
_____________________________________________________________________
-- 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