[asterisk-bugs] [JIRA] (ASTERISK-26063) ${PJSIP_HEADER(read, Call-ID)} does not work
Private Name (JIRA)
noreply at issues.asterisk.org
Thu May 26 09:04:57 CDT 2016
[ https://issues.asterisk.org/jira/browse/ASTERISK-26063?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=230792#comment-230792 ]
Private Name commented on ASTERISK-26063:
-----------------------------------------
the code is:
[setcodec]
exten => s,1,Set(SIP_CODEC=${MASTER_CHANNEL(CODEC)})
exten => s,n,Set(SIPCALLID=${PJSIP_HEADER(read,Call-ID)})
exten => s,n,Verbose(0,WE ARE USING ${SIP_CODEC} FOR "${SIPCALLID}")
exten => s,n,Return
executed from
exten => _X.,n,Dial(PJSIP/${CODEC}-outbound/sip:${DID}${EXTEN}@${Target},,M(short^${EXTEN:-11}^${CALLERID(num)})${C${recvip}}b(setcodec,s,1))
the code executes fine
-- Executing [s at setcodec:1] Set("PJSIP/ulaw-outbound-00000007", "SIP_CODEC=ulaw") in new stack
[May 26 13:51:34] DEBUG[26311][C-00000003]: pbx.c:1308 new_find_extension: Nothing strange about this match
[May 26 13:51:34] DEBUG[26311][C-00000003]: pbx.c:1309 new_find_extension: returning an exact match-- first found-- s
[May 26 13:51:34] DEBUG[26002]: res_pjsip_header_funcs.c:269 read_header: There was no datastore from which to read headers.
[May 26 13:51:34] DEBUG[26311][C-00000003]: pbx_variables.c:708 pbx_substitute_variables_helper_full: Function PJSIP_HEADER(read,Call-ID) result is '(null)'
[May 26 13:51:34] DEBUG[26311][C-00000003]: pbx.c:2825 pbx_extension_helper: Launching 'Set'
-- Executing [s at setcodec:2] Set("PJSIP/ulaw-outbound-00000007", "SIPCALLID=") in new stack
> ${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: Private Name
>
> 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.
> exten => s,n,Set(SIPCALLID=${PJSIP_HEADER(read,Call-ID)}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list