]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_pjsip: Set the context and extension on the channel when created 46/646/3
authorMatt Jordan <mjordan@digium.com>
Thu, 11 Jun 2015 23:52:09 +0000 (18:52 -0500)
committerMatt Jordan <mjordan@digium.com>
Fri, 12 Jun 2015 00:04:48 +0000 (19:04 -0500)
commit30a0f2d9acd0f7c14013d830a0b4bf673d0af2d0
tree5b7077b284378d458fddb4114f581e9852d69832
parent006930ee51919ee47abe0f7c7a8469cff0d31e9f
chan_pjsip: Set the context and extension on the channel when created

Prior to this patch, chan_pjsip was failing to pass the endpoint's
context and the desired extension to the ast_channel_alloc_* routine.
This caused a new channel snapshot to be issued without a context and
extension, which can cause some reporting issues for users of AMI, CEL,
and other APIs. The channel driver would later set the context and
extension on the channel such that the channel would start in the
correct location in the dialplan, but the information reported in the
initial event would be incorrect.

This patch modifies the channel driver such that it now passes the
context and extension directly into the allocation routine. This
provides the information in the new channel snapshot published over
Stasis.

ASTERISK-25156 #close
Reported by: cloos

Change-Id: Ic6f8542836e596db8f662071d118e8f934fdf25e
channels/chan_pjsip.c