[Home]

Summary:ASTERISK-25156: chan_pjsip’s CHAN_START cel event lacks the correct context and exten
Reporter:cloos (cloos)Labels:
Date Opened:2015-06-11 14:16:54Date Closed:2015-06-11 19:52:50
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Channels/chan_pjsip
Versions:13.1.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Attachments:( 0) ASTERISK-25156-13.diff
Description:Matt posted this in reply:

When we allocate a channel in chan_pjsip, we are passing empty strings into ast_channel_alloc_with_endpoint for the extension and context parameters. The act of creating the channel in ast_channel_alloc will, when the routine is finished, publish the existence of the channel to the 'world' via Stasis, which will create the CHAN_START event in CEL.

We set the context/extension later on in chan_pjsip_new after the channel has been created; it should be trivial to refactor that to pass that information into ast_channel_alloc_with_endpoint.
Comments:By: Matt Jordan (mjordan) 2015-06-11 19:01:51.820-0500

[~cloos]: I've attached a patch for Asterisk 13 that I believe will solve this issue, and placed it up for review on Gerrit (https://gerrit.asterisk.org/#/c/646/). If you could test it out, that'd be greatly appreciated. Thanks!