Summary:ASTERISK-17240: [regression] Local channel: Caller ID in .call file ignored
Reporter:Kirill Katsnelson (kkm)Labels:
Date Opened:2011-01-13 09:04:01.000-0600Date Closed:2011-06-07 14:04:45
Versions:Frequency of
Environment:Attachments:( 0) 18614.ael
( 1) 18614.call
Description:A .call file used to originate a call with CalledID set. The caller ID is available in the inner script of the Local channel but not in its outer script.

1.6 did not have that problem.

****** STEPS TO REPRODUCE ******

== AEL: ==

context test-local {
 _[!-z]. => {
   Verbose(1,test-local extension ${EXTEN} caller id [${CALLERID(num)}]);

context test-remote {
 _[!-z]. => {
   Verbose(1,test-remote extension ${EXTEN} caller id [${CALLERID(num)}]);

== .call file ==

CallerID: "" <8885550101>
Channel: Local/Sample@test-local
Extension: 13105550202
Priority: 1
Context: test-remote
WaitTime: 120

== Verbose output: ==

test-local extension Sample caller id [8885550101]
test-remote extension 13105550202 caller id []


AMI Originate does not seem to have that problem, but I am not very certain.
Comments:By: Timothy M. Rodriguez (timothy055) 2011-01-25 16:46:54.000-0600

I am also experiencing this issue via AMI or when using a call file in Asterisk

By: Chatri Khatfan (chatri) 2011-01-29 15:35:56.000-0600

I also had the same problem using call files with "channel_local" on Asterisk and in Asterisk

By: Alex Barzinsky (sunshine) 2011-02-18 05:09:12.000-0600

I have that trouble too.

By: Kirill Katsnelson (kkm) 2011-02-18 06:13:20.000-0600

As an obvious workaround, I am passing the called ID in a variable to assign later in the dialplan.

By: Chatri Khatfan (chatri) 2011-02-18 11:27:22.000-0600

@kkm that's what I've been doing as a temporary solution too but hoping someone will look into this.

By: Richard Mudgett (rmudgett) 2011-04-05 16:34:59

This is not a bug but an expected behaviour when the call is answered.

The CallerID is being updated when the first call is answered because of
the connected line feature.  Please read about the connected line and
digit manipulation features on the Asterisk wiki.


For your test configuration, you can simply use the 'I' option on the
Dial() application.