[asterisk-bugs] [JIRA] (ASTERISK-26063) ${PJSIP_HEADER(read, Call-ID)} does not work - documentation needs clarification for when read/write is possible
Rusty Newton (JIRA)
noreply at issues.asterisk.org
Fri May 27 12:37:56 CDT 2016
[ https://issues.asterisk.org/jira/browse/ASTERISK-26063?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=230817#comment-230817 ]
Rusty Newton edited comment on ASTERISK-26063 at 5/27/16 12:35 PM:
-------------------------------------------------------------------
"core show function CHANNEL" on the Asterisk CLI.
On the wiki: https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Function_CHANNEL
{{CHANNEL(pjsip,call-id)}} definitely works in both pre-dial and pre-bridge. You can pursue further assistance from the community at https://community.asterisk.org/. We don't provide technical support via the tracker. Thanks!
was (Author: rnewton):
"core show function CHANNEL" on the Asterisk CLI.
On the wiki: https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Function_CHANNEL
CHANNEL(pjsip,call-id) definitely works in both pre-dial and pre-bridge. You can pursue further assistance from the community at https://community.asterisk.org/. We don't provide technical support via the tracker. Thanks!
> ${PJSIP_HEADER(read,Call-ID)} does not work - documentation needs clarification for when read/write is possible
> ---------------------------------------------------------------------------------------------------------------
>
> Key: ASTERISK-26063
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-26063
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Channels/chan_pjsip
> Affects Versions: 13.9.1
> Environment: Linux 64 bits
> Reporter: Private Name
> Assignee: Rusty Newton
> Attachments: asterisk-error-1.txt, asterisk-error.txt
>
>
> I run the code below inside a b(handler) parameter in the Dial function.
> The code is excuted but it does not return the header Call-ID, which I need to capture for billing purposes. I mean on the outbound channel. In the old SIP channel, there was a variable that held that information. No it is empty, and I guess the code below should read the header in question.
> {noformat}
> exten => s,n,Set(SIPCALLID=${PJSIP_HEADER(read,Call-ID)}
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list