[asterisk-bugs] [JIRA] (ASTERISK-26698) PJSIP: PAI showing dial plan filters to customers
Richard Mudgett (JIRA)
noreply at issues.asterisk.org
Sun Jan 15 22:39:10 CST 2017
[ https://issues.asterisk.org/jira/browse/ASTERISK-26698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=234639#comment-234639 ]
Richard Mudgett commented on ASTERISK-26698:
--------------------------------------------
This is not a bug.
{{Dial}} tries to *guess* what the outgoing Caller-ID should be if the channel driver does not supply it. One of the sources of Caller-ID *is* the calling exten. You should look at the documented {{Dial}} options. The 'o' and 'u' options apply to outgoing Caller-ID and 'I' affects the reported connected line ID back to the caller.
Also you cannot {{Set}} the value of EXTEN. EXTEN has a special built-in meaning that overrides any variable you try to set of the same name. The CONTEXT, EXTEN, and PRIORITY values together specify the currently executing dialplan location. To change the EXTEN value you need to {{Goto}} a new location.
For example:
{noformat}
exten = X!,1,NoOp(EXTEN is '${EXTEN}')
; Prepend 1800 to EXTEN by going to the next dialplan location.
same = n,Goto(1800${EXTEN},$[${PRIORITY}+1])
same = n,NoOp(Now EXTEN is '${EXTEN}')
{noformat}
> PJSIP: PAI showing dial plan filters to customers
> -------------------------------------------------
>
> Key: ASTERISK-26698
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-26698
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Affects Versions: 13.13.1
> Reporter: Luke Escude
> Assignee: Luke Escude
> Attachments: CID_bug.pcap
>
>
> Occasionally (not all the time) when dialing out or picking up a parked call, the caller ID will no longer display the 10-digit phone number and name (if valid)... It will show the actual dial plan filters, like _1XXXXX.
> I will attached a PCAP of the PAI header including the filter, as well as a console readout showing the dialplan execution in case my code is at fault.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list