Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[asterisk-users] SET with pipe symbol


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





PostPosted: Tue Jan 29, 2008 10:14 am    Post subject: [asterisk-users] SET with pipe symbol Reply with quote

On Tuesday 29 January 2008 08:32:44 Arjan Kroon | Mobillion wrote:
Quote:
I want to place a pipe symbol in a variable by using the command Set
I tried the following code:
Set(M_CHANNELVAR=${UNIQUEID}|${CALLERID(number))

When I call to my applicatie I see the following output in my CLI :
Ignoring entry '612345678' with no = (and not last 'options'
entry)
(in my test call ${CALLERID(number) = 061234578)

I tried to escape the pipe symbol by using \ (backslash)
With the same result
Also I tried to place the variable between single or double quotes, but
with the same result.

Does anybody now how place a pipe symbol in variable.

You can't, in 1.4. This is by design. We have removed this restriction in
1.6. As a workaround, in 1.4, use the NoOp instruction with the SET dialplan
function, i.e.
NoOp(${SET(M_CHANNELVAR=${UNIQUEID}|${CALLERID(number))})

--
Tilghman
Back to top
Arjan.Kroon at mobilli...
Guest





PostPosted: Wed Jan 30, 2008 4:14 am    Post subject: [asterisk-users] SET with pipe symbol Reply with quote

Tilghman,

Tx, That was the solution.

Kind Regards,

Arjan Kroon

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Tilghman
Lesher
Sent: dinsdag 29 januari 2008 16:14
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] SET with pipe symbol

On Tuesday 29 January 2008 08:32:44 Arjan Kroon | Mobillion wrote:
Quote:
I want to place a pipe symbol in a variable by using the command Set
I tried the following code:
Set(M_CHANNELVAR=${UNIQUEID}|${CALLERID(number))

When I call to my applicatie I see the following output in my CLI :
Ignoring entry '612345678' with no = (and not last 'options'
entry)
(in my test call ${CALLERID(number) = 061234578)

I tried to escape the pipe symbol by using \ (backslash)
With the same result
Also I tried to place the variable between single or double quotes,
but
Quote:
with the same result.

Does anybody now how place a pipe symbol in variable.

You can't, in 1.4. This is by design. We have removed this restriction
in
1.6. As a workaround, in 1.4, use the NoOp instruction with the SET
dialplan
function, i.e.
NoOp(${SET(M_CHANNELVAR=${UNIQUEID}|${CALLERID(number))})

--
Tilghman

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