Re: [asterisk-users] Multiple Channel Variables with AMI Originate

2009-12-03 Thread Jim Dickenson
I do this:

Action: Originate
Channel: Local/dial_num...@cfmc_cdi_private
Exten: queue_answer
Context: cfmc_cdi_private
Priority: 1
Variable: CfMC_ActionID=CallAndQueue
Variable: CfMC_QueueToUse=tqe
Variable: CfMC_AgentToUse=1001
Variable: CfMC_DialInfo=SIP/GXP280_18
Variable: CfMC_RingTimeout=30
Variable: CfMC_DoAMD=No
ActionID: CallAndQueue
Async: true


and things work as expected. This is in recent versions of 1.4 and 1.6.0.
-- 
Jim Dickenson
mailto:dicken...@cfmc.com

CfMC
http://www.cfmc.com/



On Dec 3, 2009, at 4:22 PM, Matthew Edmondson wrote:

 
 Hi guys I seem to be having a problem, I don't know if it's a bug or whether 
 I'm just doing it incorrectly.
 
 I want to set about 3 channel variables when I originate a call via AMI.
 
 All the documentation I have found says to do it like this:
 
 Variable: variable1=value|variable2=value|variable3=value
 
 
 However when I do this it runs them all together and I end up with:
 
 variable1 = value|variable2=value|variable3=value
 
 
 Instead of:
 
 variable1 = value
 variable2 = value
 variable3 = value
 
 
 So I think the delimiters are not working.
 
 I tried just adding multiple Variable: lines one for each, but it only sets 
 the first one and ignores the rest.
 
 Any help with this would be greatly appreciated.
 
 Thanks! --Matt
 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 
 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 --

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

Re: [asterisk-users] Multiple Channel Variables with AMI Originate

2009-12-03 Thread Matthew Edmondson
Thanks Jim.

We're using the 1.6.2 rc's. I'll try it on 1.6.0 and see if it works. If it
does then I guess its a bug in the new releases.

Problem is we need features of the 1.6.2.

On Fri, Dec 4, 2009 at 11:03 AM, Jim Dickenson dicken...@cfmc.com wrote:

 I do this:

 Action: Originate
 Channel: Local/dial_num...@cfmc_cdi_private
 Exten: queue_answer
 Context: cfmc_cdi_private
 Priority: 1
 Variable: CfMC_ActionID=CallAndQueue
 Variable: CfMC_QueueToUse=tqe
 Variable: CfMC_AgentToUse=1001
 Variable: CfMC_DialInfo=SIP/GXP280_18
 Variable: CfMC_RingTimeout=30
 Variable: CfMC_DoAMD=No
 ActionID: CallAndQueue
 Async: true


 and things work as expected. This is in recent versions of 1.4 and 1.6.0.
 --
 Jim Dickenson
 mailto:dicken...@cfmc.com dicken...@cfmc.com

 CfMC
 http://www.cfmc.com/



 On Dec 3, 2009, at 4:22 PM, Matthew Edmondson wrote:


 Hi guys I seem to be having a problem, I don't know if it's a bug or
 whether I'm just doing it incorrectly.

 I want to set about 3 channel variables when I originate a call via AMI.

 All the documentation I have found says to do it like this:

 Variable: variable1=value|variable2=value|variable3=value


 However when I do this it runs them all together and I end up with:

 variable1 = value|variable2=value|variable3=value


 Instead of:

 variable1 = value
 variable2 = value
 variable3 = value


 So I think the delimiters are not working.

 I tried just adding multiple Variable: lines one for each, but it only
 sets the first one and ignores the rest.

 Any help with this would be greatly appreciated.

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

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

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

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

Re: [asterisk-users] Multiple Channel Variables with AMI Originate

2009-12-03 Thread Tilghman Lesher
On Thursday 03 December 2009 18:22:19 Matthew Edmondson wrote:
 Hi guys I seem to be having a problem, I don't know if it's a bug or
 whether I'm just doing it incorrectly.

 I want to set about 3 channel variables when I originate a call via AMI.

 All the documentation I have found says to do it like this:

 Variable: variable1=value|variable2=value|variable3=value

With the change in application delimiter came this change, as it uses the
application delimiter parsing code.  Therefore, the variable delimiter is a
comma, not the pipe.

-- 
Tilghman Lesher
Digium, Inc. | Senior Software Developer
twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
Check us out at: www.digium.com  www.asterisk.org

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

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