[asterisk-bugs] [JIRA] (ASTERISK-26063) ${PJSIP_HEADER(read, Call-ID)} does not work
Private Name (JIRA)
noreply at issues.asterisk.org
Thu May 26 15:13:57 CDT 2016
[ https://issues.asterisk.org/jira/browse/ASTERISK-26063?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=230801#comment-230801 ]
Private Name commented on ASTERISK-26063:
-----------------------------------------
The issue happens, I forgot to mention, also in the macro that excutes after the call is connected
[May 26 20:08:19] DEBUG[26669][C-00000006]: app_macro.c:439 _macro_exec: Executed application: Verbose
[May 26 20:08:19] DEBUG[26446]: res_pjsip_header_funcs.c:269 read_header: There was no datastore from which to read headers.
[May 26 20:08:19] DEBUG[26669][C-00000006]: pbx.c:2825 pbx_extension_helper: Launching 'Set'
-- Executing [s at macro-short:2] Set("PJSIP/ulaw-outbound-0000000d", "SIPCALLID=") in new stack
[May 26 20:08:19] DEBUG[26669][C-00000006]: app_macro.c:439 _macro_exec: Executed application: Set
[May 26 20:08:19] DEBUG[26669][C-00000006]: pbx.c:2825 pbx_extension_helper: Launching 'Verbose'
-- Executing [s at macro-short:3] Verbose("PJSIP/ulaw-outbound-0000000d", "0,WE ARE USING ulaw FOR """) in new stack
So if we cannot read the header also iside this macro, where can we actually read this information.
the relevant code is
[macro-short]
exten => s,1,Verbose(0,Calls ${GROUP_MATCH_COUNT(.*)} LOWER DID ${ARG1} Done Dialing SIP ID="${CALLID}")
exten => s,n,Set(SIPCALLID=${PJSIP_HEADER(read,Call-ID)})
exten => s,n,Verbose(0,WE ARE USING ${SIP_CODEC} FOR "${SIPCALLID}")
> ${PJSIP_HEADER(read,Call-ID)} does not work
> -------------------------------------------
>
> 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: Unassigned
> Attachments: 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