Re: [asterisk-users] Dial()-Function

2016-03-19 Thread jg



Hi all! :)

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/device2,20)
Level3: Dial(SIP/device1/device2/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


Re: [asterisk-users] Dial()-Function

2016-03-18 Thread jg


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. :)
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


Re: [asterisk-users] Dial()-Function

2016-03-18 Thread Dominique Haeber
hi jg,

jg  schrieb am Don, 17. Mär 14:05:
> 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. :)




> 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


Re: [asterisk-users] Dial() function

2011-02-17 Thread Paul Belanger
On 11-02-17 07:31 PM, Albert wrote:
 Hello everybody,
 
 Can someone explain [gGrR] in Dial() function?
 
*CLI core show application Dial

 To dial external extension 18005551212 over channel 2 we will use:
 Dial(DAHDI/2/18005551212)
 
 To dial external extension 18005551212 over one of channel from group of
 channels (nr 2) we will use:
 Dial(DAHDI/g2/18005551212)
 
 So lets assume that group 2 consists of 5 channels. How does Dial()
 function choose channel:
 - randomly?
 - first free?
 
I don't actually think this is documented any where, best I could find
was a previous email[1] from Jared Smith.

[1] http://lists.digium.com/pipermail/asterisk-users/2009-July/234419.html

-- 
Paul Belanger
Digium, Inc. | Software Developer
twitter: pabelanger | IRC: pabelanger (Freenode)
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


Re: [asterisk-users] Dial function exit, go to line n+1

2008-07-09 Thread Jerome Poggi
On Mon, 07 Jul 2008, Matt Riddell wrote:
  Example :
  
  exten = s,5,ChanIsAvail(SIP/604,s)
  exten = s,6,Dial(SIP/604,15,wotr)
  exten = s,106,NoOp(Matthieu)
  exten = s,n,ChanIsAvail(SIP/605,s)
  
  Won't work because Dial exit to 7, and line 7 don't exist
  
  but
  
  exten = s,5,ChanIsAvail(SIP/604,s)
  exten = s,6,Dial(SIP/604,15,wotr)
  exten = s,7,NoOp(Nopnopnopnopnop)
  exten = s,106,NoOp(Matthieu)
  exten = s,n,ChanIsAvail(SIP/605,s)
  
  Work, because line 7 exist
 That's what it's supposed to do - maybe you are referring to the
 deprecated +101 jumps?

I use them before some patch. But this example work :

 exten = s,5,ChanIsAvail(SIP/604,s)
 exten = s,6,Dial(SIP/604,15,wotr)
 exten = s,7,NoOp(Nopnopnopnopnop)
 exten = s,10,NoOp(Matthieu)

and this not :

 exten = s,5,ChanIsAvail(SIP/604,s)
 exten = s,6,Dial(SIP/604,15,wotr)
 exten = s,10,NoOp(Matthieu)

The problem is not the deprecated jump n+101, the problem is simple why
Dial exit to line 7 but not to the next line.

Cordialement,
Poggi Jérôme.

--
Jérôme POGGI  [EMAIL PROTECTED]
Herve Schauer Consultants -=- Consultant Sécurité Informatique, CISSP
http://www.hsc.fr/  -  Tél : +33 141 409 700  - Fax : +33 141 409 709

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Dial function exit, go to line n+1

2008-07-09 Thread Jared Smith
On Wed, 2008-07-09 at 13:42 +0200, Jerome Poggi wrote:
 I use them before some patch. But this example work :
 
  exten = s,5,ChanIsAvail(SIP/604,s)
  exten = s,6,Dial(SIP/604,15,wotr)
  exten = s,7,NoOp(Nopnopnopnopnop)
  exten = s,10,NoOp(Matthieu)
 
 and this not :
 
  exten = s,5,ChanIsAvail(SIP/604,s)
  exten = s,6,Dial(SIP/604,15,wotr)
  exten = s,10,NoOp(Matthieu)
 
 The problem is not the deprecated jump n+101, the problem is simple why
 Dial exit to line 7 but not to the next line.

Priority numbers *must* be sequential... in other words, your priority
numbers must be 1, 2, 3, 4, 5... Asterisk won't skip missing numbers in
the sequence.

-- 
Jared Smith
Training Manager
Digium, Inc.


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Dial function exit, go to line n+1

2008-07-09 Thread Tilghman Lesher
On Wednesday 09 July 2008 09:03:07 Jared Smith wrote:
 On Wed, 2008-07-09 at 13:42 +0200, Jerome Poggi wrote:
  I use them before some patch. But this example work :
 
   exten = s,5,ChanIsAvail(SIP/604,s)
   exten = s,6,Dial(SIP/604,15,wotr)
   exten = s,7,NoOp(Nopnopnopnopnop)
   exten = s,10,NoOp(Matthieu)
 
  and this not :
 
   exten = s,5,ChanIsAvail(SIP/604,s)
   exten = s,6,Dial(SIP/604,15,wotr)
   exten = s,10,NoOp(Matthieu)
 
  The problem is not the deprecated jump n+101, the problem is simple why
  Dial exit to line 7 but not to the next line.

 Priority numbers *must* be sequential... in other words, your priority
 numbers must be 1, 2, 3, 4, 5... Asterisk won't skip missing numbers in
 the sequence.

Incidentally, this is precisely why the 'n' autoincrement for priorities was
created:  so that if you want to insert or delete a priority, you won't have
to renumber all priorities thereafter.

-- 
Tilghman

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Dial function exit, go to line n+1

2008-07-09 Thread Rob Hillis

Jared Smith wrote:

On Wed, 2008-07-09 at 13:42 +0200, Jerome Poggi wrote:
  

I use them before some patch. But this example work :

 exten = s,5,ChanIsAvail(SIP/604,s)
 exten = s,6,Dial(SIP/604,15,wotr)
 exten = s,7,NoOp(Nopnopnopnopnop)
 exten = s,10,NoOp(Matthieu)

and this not :

 exten = s,5,ChanIsAvail(SIP/604,s)
 exten = s,6,Dial(SIP/604,15,wotr)
 exten = s,10,NoOp(Matthieu)

The problem is not the deprecated jump n+101, the problem is simple why
Dial exit to line 7 but not to the next line.



Priority numbers *must* be sequential... in other words, your priority
numbers must be 1, 2, 3, 4, 5... Asterisk won't skip missing numbers in
the sequence.

  
Alternatively (and IMHO much more simple) you label the first priority 
1 and every subsequent priority n. I forget exactly which version of 
Asterisk this was introduced, but I've been using it since 1.2 with no 
problems.


Gotos are handled quite easily too - any goto target's priorty should be 
n(somelabel) and you simply specify Goto(somelabel), 
Goto(extension,somelabel) or Goto(context,extension,somelabel) as required.


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Dial function exit, go to line n+1

2008-07-07 Thread Matt Riddell
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jerome Poggi wrote:
 Yesturday I found a bug in Asterisk, in particular in Dial application.
 When the Dial function exit it want to branch to n+1, but if n+1 do not
 exist, it exit from the context.
 
 Example :
 
 exten = s,5,ChanIsAvail(SIP/604,s)
 exten = s,6,Dial(SIP/604,15,wotr)
 exten = s,106,NoOp(Matthieu)
 exten = s,n,ChanIsAvail(SIP/605,s)
 
 Won't work because Dial exit to 7, and line 7 don't exist
 
 but
 
 exten = s,5,ChanIsAvail(SIP/604,s)
 exten = s,6,Dial(SIP/604,15,wotr)
 exten = s,7,NoOp(Nopnopnopnopnop)
 exten = s,106,NoOp(Matthieu)
 exten = s,n,ChanIsAvail(SIP/605,s)
 
 Work, because line 7 exist
 
 I use Asterisk 1.4.18

That's what it's supposed to do - maybe you are referring to the
deprecated +101 jumps?

- --
Kind Regards,

Matt Riddell
Director
___

http://www.venturevoip.com (Great new VoIP end to end solution)
http://www.venturevoip.com/news.php (Daily Asterisk News - html)
http://www.venturevoip.com/newrssfeed.php (Daily Asterisk News - rss)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIccPcDQNt8rg0Kp4RAptLAJ9ro1BuinTSIdJdiC7TAatIpLfppQCgjUUA
4pNzmkt5+IWRQma/bZo9kR0=
=BfVo
-END PGP SIGNATURE-

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users