Re: [asterisk-users] How to give users the capability to set CDR userfield for some calls

2013-01-25 Thread Olivier
2013/1/18 Danny Nicholas 

> Since Gosub is technically an application, you should be able to modify
> this snippet in features.conf
>
> testfeature => #9,peer,Playback,tt-monkeys  ;Allow both the caller and
> callee to play
>
> ;;tt-monkeys to the opposite
> channel
>
> To this
>
> testfeature => #9,peer,Gosub,play-monkeys,s,1  ;Allow both the caller and
> callee to play
>
> ;;tt-monkeys to the opposite
> channel
>
> And in extensions.conf add
>
> [play-monkeys]
>
> Exten => s,1,playback(tt-monkeys)
>
> Exten => s,n,return()
>

Unfortunately,  I couldn't make the above work (with Asterisk 1.8/FreePBX
2.10) nore I could pass arguments to a custom Macro.
Can you confirm it worked on your setup ? Which asterisk version did you
use ?

> 
>
> ** **
>
> ** **
>
> *From:* asterisk-users-boun...@lists.digium.com [mailto:
> asterisk-users-boun...@lists.digium.com] *On Behalf Of *Olivier
> *Sent:* Friday, January 18, 2013 3:35 AM
>
> *To:* Asterisk Users Mailing List - Non-Commercial Discussion
> *Subject:* Re: [asterisk-users] How to give users the capability to set
> CDR userfield for some calls
>
> ** **
>
> ** **
>
> 2013/1/17 Kevin Larsen 
>
> Possibly switch to using subroutines instead of Macros. Macros are being
> deprecated in place of subroutines. 
>
>
>
> Interesting thing to try.
> The trouble is I can't find any usable example of calling Gosub routines
> from features.conf's application map.
> I've found old references explaining that this is not supported but I
> don't if it's still valid or not.
>
> Any ex
>
>  
>
>
> Kevin Larsen - Systems Analyst - Pioneer Balloon - Ph: 316-688-8208
>
>
>
> From:    Olivier 
> To:    Asterisk Users Mailing List - Non-Commercial Discussion <
> asterisk-users@lists.digium.com>,
> Date:01/17/2013 10:29 AM
> Subject:[asterisk-users] How to give users the capability to set
> CDRuserfield for some calls
> Sent by:asterisk-users-boun...@lists.digium.com 
> --
>
>
>
> 
>
> Hello,
>
> To my surprise, with asterisk 1.8 (I've not tried with other versions), it
> seems you cannot set CDR's userfield from within a dialplan macro called by
> dynamic features.
>
> See :
>
> testfeature => *321,self/callee,Macro,toto
>
> [macro-toto]
> exten => s,1,Verbose(0,Into macro-toto with CDR(src) set to ${CDR(src)})
> exten => s,n,Set(CDR(userfield)=foobar)
>
> I'm planning to use this feature to let users mark in CDR an ongoing call
> as malicious or important or whatever.
>
> Any hint ?
>
> Regards--
> _
> -- 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
>
> ** **
>
> --
> _
> -- 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

Re: [asterisk-users] How to give users the capability to set CDR userfield for some calls

2013-01-18 Thread Danny Nicholas
Since Gosub is technically an application, you should be able to modify this
snippet in features.conf

testfeature => #9,peer,Playback,tt-monkeys  ;Allow both the caller and
callee to play

;;tt-monkeys to the opposite
channel

To this

testfeature => #9,peer,Gosub,play-monkeys,s,1  ;Allow both the caller and
callee to play

;;tt-monkeys to the opposite
channel

And in extensions.conf add

[play-monkeys]

Exten => s,1,playback(tt-monkeys)

Exten => s,n,return()

 

 

From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Olivier
Sent: Friday, January 18, 2013 3:35 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] How to give users the capability to set CDR
userfield for some calls

 

 

2013/1/17 Kevin Larsen 

Possibly switch to using subroutines instead of Macros. Macros are being
deprecated in place of subroutines. 



Interesting thing to try.
The trouble is I can't find any usable example of calling Gosub routines
from features.conf's application map.
I've found old references explaining that this is not supported but I don't
if it's still valid or not.

Any ex

 


Kevin Larsen - Systems Analyst - Pioneer Balloon - Ph: 316-688-8208 



From:Olivier  
To:Asterisk Users Mailing List - Non-Commercial Discussion
, 
Date:01/17/2013 10:29 AM 
Subject:    [asterisk-users] How to give users the capability to set CDR
userfield for some calls 
Sent by:asterisk-users-boun...@lists.digium.com 

  _  





Hello,

To my surprise, with asterisk 1.8 (I've not tried with other versions), it
seems you cannot set CDR's userfield from within a dialplan macro called by
dynamic features.

See :

testfeature => *321,self/callee,Macro,toto

[macro-toto]
exten => s,1,Verbose(0,Into macro-toto with CDR(src) set to ${CDR(src)})
exten => s,n,Set(CDR(userfield)=foobar)

I'm planning to use this feature to let users mark in CDR an ongoing call as
malicious or important or whatever.

Any hint ?

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

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   <http://lists.digium.com/mailman/listinfo/asterisk-users>
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

 

--
_
-- 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] How to give users the capability to set CDR userfield for some calls

2013-01-18 Thread Olivier
2013/1/17 Kevin Larsen 

> Possibly switch to using subroutines instead of Macros. Macros are being
> deprecated in place of subroutines.
>


Interesting thing to try.
The trouble is I can't find any usable example of calling Gosub routines
from features.conf's application map.
I've found old references explaining that this is not supported but I don't
if it's still valid or not.

Any ex



>
> Kevin Larsen - Systems Analyst - Pioneer Balloon - Ph: 316-688-8208
>
>
>
> From:Olivier 
> To:Asterisk Users Mailing List - Non-Commercial Discussion <
> asterisk-users@lists.digium.com>,
> Date:    01/17/2013 10:29 AM
> Subject:[asterisk-users] How to give users the capability to set
> CDRuserfield for some calls
> Sent by:asterisk-users-boun...@lists.digium.com
> --
>
>
>
> Hello,
>
> To my surprise, with asterisk 1.8 (I've not tried with other versions), it
> seems you cannot set CDR's userfield from within a dialplan macro called by
> dynamic features.
>
> See :
>
> testfeature => *321,self/callee,Macro,toto
>
> [macro-toto]
> exten => s,1,Verbose(0,Into macro-toto with CDR(src) set to ${CDR(src)})
> exten => s,n,Set(CDR(userfield)=foobar)
>
> I'm planning to use this feature to let users mark in CDR an ongoing call
> as malicious or important or whatever.
>
> Any hint ?
>
> Regards--
> _
> -- 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
>
--
_
-- 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] How to give users the capability to set CDR userfield for some calls

2013-01-17 Thread Kevin Larsen
Possibly switch to using subroutines instead of Macros. Macros are being 
deprecated in place of subroutines.

Kevin Larsen - Systems Analyst - Pioneer Balloon - Ph: 316-688-8208



From:   Olivier 
To: Asterisk Users Mailing List - Non-Commercial Discussion 
, 
Date:   01/17/2013 10:29 AM
Subject:[asterisk-users] How to give users the capability to set 
CDR userfield for some calls
Sent by:asterisk-users-boun...@lists.digium.com



Hello,

To my surprise, with asterisk 1.8 (I've not tried with other versions), it 
seems you cannot set CDR's userfield from within a dialplan macro called 
by dynamic features.

See :

testfeature => *321,self/callee,Macro,toto

[macro-toto]
exten => s,1,Verbose(0,Into macro-toto with CDR(src) set to ${CDR(src)})
exten => s,n,Set(CDR(userfield)=foobar)

I'm planning to use this feature to let users mark in CDR an ongoing call 
as malicious or important or whatever.

Any hint ?

Regards--
_
-- 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

[asterisk-users] How to give users the capability to set CDR userfield for some calls

2013-01-17 Thread Olivier
Hello,

To my surprise, with asterisk 1.8 (I've not tried with other versions), it
seems you cannot set CDR's userfield from within a dialplan macro called by
dynamic features.

See :

testfeature => *321,self/callee,Macro,toto

[macro-toto]
exten => s,1,Verbose(0,Into macro-toto with CDR(src) set to ${CDR(src)})
exten => s,n,Set(CDR(userfield)=foobar)

I'm planning to use this feature to let users mark in CDR an ongoing call
as malicious or important or whatever.

Any hint ?

Regards
--
_
-- 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