Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asterisk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Voice
asterisk
Commits
319fe822
Commit
319fe822
authored
9 years ago
by
Matt Jordan
Committed by
Gerrit Code Review
9 years ago
Browse files
Options
Downloads
Plain Diff
Merge "channels/pjsip/dialplan_functions: Add an option for extracting the SIP call-id" into 13
parents
6a4d2b2e
78d0b9d9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGES
+11
-0
11 additions, 0 deletions
CHANGES
channels/pjsip/dialplan_functions.c
+5
-0
5 additions, 0 deletions
channels/pjsip/dialplan_functions.c
with
16 additions
and
0 deletions
CHANGES
+
11
−
0
View file @
319fe822
...
...
@@ -8,6 +8,17 @@
===
==============================================================================
------------------------------------------------------------------------------
--- Functionality changes from Asterisk 13.5.0 to Asterisk 13.6.0 ------------
------------------------------------------------------------------------------
Dialplan Functions
------------------
* The CHANNEL function, when used on a PJSIP channel, now exposes a 'call-id'
extraction option when using with the 'pjsip' signalling option. It will
return the SIP Call-ID associated with the INVITE request that established
the PJSIP channel.
------------------------------------------------------------------------------
--- Functionality changes from Asterisk 13.4.0 to Asterisk 13.5.0 ------------
------------------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
channels/pjsip/dialplan_functions.c
+
5
−
0
View file @
319fe822
...
...
@@ -318,6 +318,9 @@
<literal>type</literal> parameter must be provided. It specifies
which signalling parameter to read.</para>
<enumlist>
<enum name="call-id">
<para>The SIP call-id.</para>
</enum>
<enum name="secure">
<para>Whether or not the signalling uses a secure transport.</para>
<enumlist>
...
...
@@ -594,6 +597,8 @@ static int channel_read_pjsip(struct ast_channel *chan, const char *type, const
if
(
ast_strlen_zero
(
type
))
{
ast_log
(
LOG_WARNING
,
"You must supply a type field for 'pjsip' information
\n
"
);
return
-
1
;
}
else
if
(
!
strcmp
(
type
,
"call-id"
))
{
snprintf
(
buf
,
buflen
,
"%.*s"
,
(
int
)
pj_strlen
(
&
dlg
->
call_id
->
id
),
pj_strbuf
(
&
dlg
->
call_id
->
id
));
}
else
if
(
!
strcmp
(
type
,
"secure"
))
{
#ifdef HAVE_PJSIP_GET_DEST_INFO
pjsip_host_info
dest
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment