Re: [asterisk-users] Function IMPORT and Local channels

2015-04-29 Thread Ethy H. Brito
On Mon, 27 Apr 2015 23:56:30 -0300
Ethy H. Brito ethy.br...@inexo.com.br wrote:

 On Mon, 27 Apr 2015 23:52:30 -0300
 Ethy H. Brito ethy.br...@inexo.com.br wrote:
 
  
  Hi all
  
  These questions were asked back in 2009 at lists.digium.com and got
  unanswered:
  
  - Has someone been successful in using IMPORT on a Local channel ? 
  - Is there a known limitation in doing so ?
  
  I run into the same problem.
  
  ${IMPORT(Local/1234@example-abcd;2,CALLERID(dstchannel))} returns
  nothing. But I can read the dstchannel for it into the CDR.
 
 MY MISTAKE HERE!!
 
 the correct instance is:
 
 ${IMPORT(Local/1234@example-abcd;2,CDR(dstchannel))}
 
 Stupid cut and paste error.
 
 sorry for that.

Opps!! Maybe I got no answers up to this moment because I did not explained my
mistake correctly.

What I meant was that I made a mistake when choosing from where to copy the 
text into the mail. My coding is correct.

The problem of having IMPORT returning nothing to CDR(dstchannel) when channel
is Local/..., is there. 

mysql select channel,dstchannel from cdr where channel like Local% or 
dstchannel like Local% limit 2;
+-+-+
| channel | dstchannel  |
+-+-+
| SIP/jane_doe-0069ff70   | Local/1234@trunk-1908;1 |
| Local/1234@trunk-1908;2 | SIP/john_doe-00811c40   |
+-+-+

Shouldn't same = 
n,Set(test=${IMPORT(Local/1234@trunk-1908;2,CDR(dstchannel))}) yield to 
test=SIP/john_doe-00811c40 ?

Regards

Ethy

-- 
_
-- 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] Function IMPORT and Local channels

2015-04-27 Thread Ethy H. Brito
On Mon, 27 Apr 2015 23:52:30 -0300
Ethy H. Brito ethy.br...@inexo.com.br wrote:

 
 Hi all
 
 These questions were asked back in 2009 at lists.digium.com and got
 unanswered:
 
 - Has someone been successful in using IMPORT on a Local channel ? 
 - Is there a known limitation in doing so ?
 
 I run into the same problem.
 
 ${IMPORT(Local/1234@example-abcd;2,CALLERID(dstchannel))} returns
 nothing. But I can read the dstchannel for it into the CDR.

MY MISTAKE HERE!!

the correct instance is:

${IMPORT(Local/1234@example-abcd;2,CDR(dstchannel))}

Stupid cut and paste error.

sorry for that.

Ethy

-- 
_
-- 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] Function IMPORT and Local channels

2009-06-18 Thread Olivier
2009/6/18 Tilghman Lesher tilgh...@mail.jeffandtilghman.com

 On Wednesday 17 June 2009 17:06:25 Olivier wrote:
  At the moment, I can't read Local channels variables using IMPORT
 function
  : ${IMPORT(Local/7...@pcdialer-5dff\;1,CALLERID(num))}

 I'm confused as to why you're trying to escape the semicolon here.  The
 name
 of the channel cannot be hardcoded into a configuration file, because it's
 dynamically generated at runtime, and the only reason I'd see for escaping
 the
 semicolon would be if you wanted it preserved during a load from a
 configuration file.  What am I missing?


You're not missing anything, I think.
Root cause of this thread is that when I'm giving IMPORT function a Local
channel as first argument (and I agree with you saying this Local channel
value is generated dynamically), I've got an empty reply though requested
variable appears (with a non-empty value) in DumpChan's output.

When I tried to understand why the same function call works with SIP
channels and does work with Local, I wondered if this could come from the
fact a dynamically generated Local channel name includes a semi colon.
No experience I did backed this assumption (root cause is semi-colon).

So this question remains :
- Has someone been successfull in using IMPORT on a Local channel ? Is there
a known limitation in doing so ?

Cheers




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

___
-- 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] Function IMPORT and Local channels

2009-06-17 Thread Tilghman Lesher
On Wednesday 17 June 2009 17:06:25 Olivier wrote:
 At the moment, I can't read Local channels variables using IMPORT function
 : ${IMPORT(Local/7...@pcdialer-5dff\;1,CALLERID(num))}

I'm confused as to why you're trying to escape the semicolon here.  The name
of the channel cannot be hardcoded into a configuration file, because it's
dynamically generated at runtime, and the only reason I'd see for escaping the
semicolon would be if you wanted it preserved during a load from a
configuration file.  What am I missing?

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