[asterisk-bugs] [JIRA] (ASTERISK-28535) Error when change my callerid(num)

Kevin Harwell (JIRA) noreply at issues.asterisk.org
Tue Sep 17 11:27:47 CDT 2019


    [ https://issues.asterisk.org/jira/browse/ASTERISK-28535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=248044#comment-248044 ] 

Kevin Harwell commented on ASTERISK-28535:
------------------------------------------

If however, you want to alter the outbound/destination (DST) record setting the callerid in a pre-dial handler on the outbound leg _might_ get you what you want. Here is an example of how you _could_ do that:
{noformat}
[globals]
TECH=PJSIP

; outbound pre-dial handler
exten => predial_outbound,1,NoOp()
	same => n,Set(CALLERID(num)=8001)
	same => n,Return()

exten => _1XX,1,NoOp()
	same => n,Dial(${TECH}/${EXTEN},,b(default^predial_outbound^1))
	same => n,Hangup()
{noformat}
This essentially sets the caller id number on the outbound leg, which in turn _should_ set the DST field on the CDR. However, I am not sure what other side effects setting the outbound caller id might have in your setup.

> Error when change my callerid(num)
> ----------------------------------
>
>                 Key: ASTERISK-28535
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28535
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/CallerID
>    Affects Versions: 13.11.2, 13.28.0, 13.28.1
>         Environment: CentOs 6.X; CentOs 7
> ARA with PostgreSQL
>            Reporter: Roberto
>            Assignee: Unassigned
>              Labels: pjsip
>
> When I change callerid (num), asterisk is improperly changing the ORIGIN number.
> Example:
> I am dialing from extension 8249 to extension 8001.
> If I change this way set(callerid (num)) = 8001
> ticketing looks like this:
> {noformat}
> clid = "Extension 8249" <8001>
> src = 8001
> dst = 8001
> {noformat}
> If I do not make a change, it is correctly, as below:
> {noformat}
> clid = "Extension 8249" <8249>
> src = 8249
> dst = 8001
> {noformat}
> In asterisk 11.17.1, I also change callerid (num) as explained above and the error does not occur.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list