[asterisk-bugs] [JIRA] (ASTERISK-28149) PJSIP: Setting CallerID for outbound channel from predial handler doesn't work
Richard Mudgett (JIRA)
noreply at issues.asterisk.org
Sun Nov 4 13:51:47 CST 2018
[ https://issues.asterisk.org/jira/browse/ASTERISK-28149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard Mudgett updated ASTERISK-28149:
---------------------------------------
Description:
When using chan_sip, it is possible to set outbound CallerID(num) from predial handler, effectively setting From: in outbound sip packets.
In case of PJSIP it seems to ignore it in outbound channels predial handler. If we set it on source channel before launching Dial application, it works fine.
But we want to set CallerID per outbound channel so need some way to resolve this.
{noformat}
context route_users {
_X. => {
Dial(PJSIP/10000,,b(set_clid,1,1));
}
}
context set_clid {
_X => {
Set(CALLERID(num)=123123123);
}
}
{noformat}
Despite Set(CALLERID(num)) is launched on originated channel, it doesn't set CallerID.
We don't use PAI or RPID, so we need to set CallerID in From.
Maybe I miss some parameter or PJSIP setting? In case with chan_sip this just works.
was:
When using chan_sip, it is possible to set outbound CallerID(num) from predial handler, effectively setting From: in outbound sip packets.
In case of PJSIP it seems to ignore it in outbound channels predial handler. If we set it on source channel before launching Dial application, it works fine.
But we want to set CallerID per outbound channel so need some way to resolve this.
context route_users {
_X. => {
Dial(PJSIP/10000,,b(set_clid,1,1));
}
}
context set_clid {
_X => {
Set(CALLERID(num)=123123123);
}
}
Despite Set(CALLERID(num)) is launched on originated channel, it doesn't set CallerID.
We don't use PAI or RPID, so we need to set CallerID in From.
Maybe I miss some parameter or PJSIP setting? In case with chan_sip this just works.
> PJSIP: Setting CallerID for outbound channel from predial handler doesn't work
> ------------------------------------------------------------------------------
>
> Key: ASTERISK-28149
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-28149
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: pjproject/pjsip
> Affects Versions: 14.6.0, 16.0.0
> Reporter: Dmitry Sytchev
> Labels: pjsip
>
> When using chan_sip, it is possible to set outbound CallerID(num) from predial handler, effectively setting From: in outbound sip packets.
> In case of PJSIP it seems to ignore it in outbound channels predial handler. If we set it on source channel before launching Dial application, it works fine.
> But we want to set CallerID per outbound channel so need some way to resolve this.
> {noformat}
> context route_users {
> _X. => {
> Dial(PJSIP/10000,,b(set_clid,1,1));
> }
> }
> context set_clid {
> _X => {
> Set(CALLERID(num)=123123123);
> }
> }
> {noformat}
> Despite Set(CALLERID(num)) is launched on originated channel, it doesn't set CallerID.
> We don't use PAI or RPID, so we need to set CallerID in From.
> Maybe I miss some parameter or PJSIP setting? In case with chan_sip this just works.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list