Summary:ASTERISK-19974: AMI ORIGINATE - can't set CALLERID(num-pres) on outgoing call
Reporter:Maciej Krajewski (jamicque)Labels:
Date Opened:2012-06-08 07:39:44Date Closed:2012-06-19 07:43:54
Versions: Frequency of
Description:When I want to make a Call with prohibited presentation is quite easy. I simply have to not set "CALLERID" option in originate and asterisk itself will hide the presentation in FROM field.
However, the problem exist if your peer have to have RPID or PAI. Then you are not able to set the options whether to hide the presentation or not.
If I won't set callerid variable the remote party id header won't be send (it's quite logical, because Asterisk doesn't have any info (in none hardcoded in peer definition) to set.
But if I set the callerid in originate I can't order asterisk to set screening and privacy flags, becouse the CALLERID(num-pres) variable is not set on channel originated by AMI.

Here is the sample AMI ORIGINATE command:
Action: Originate
Channel: SIP/222222@test
Context: TEST
Exten: 11
Priority: 1
Callerid: "22222"<333434>
Variable: CALLERID(num-pres)=prohib

Originated call to number 222222 through test peer won't have the privacy flags set.
Comments:By: Matt Jordan (mjordan) 2012-06-19 07:43:40.562-0500

You cannot set caller ID information using the Variable: field in an Originate.  The CALLERID function sets caller ID information upon a channel, which is not the same thing as a channel variable.

There are ways to do what you want in the dialplan.  For example, you could originate the call to an extension which sets CALLERID(num-pres)=prohib, then does an outbound Dial.

As it is, this would be a new feature, not a bug.

By: Matt Jordan (mjordan) 2012-06-19 07:43:49.632-0500

Features requests are no longer submitted to or accepted through the issue tracker. Features requests are openly discussed on the mailing lists [1] and Asterisk IRC channels and made note of by Bug Marshals.

[1] http://www.asterisk.org/support/mailing-lists