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
b9da3d64
Commit
b9da3d64
authored
7 years ago
by
Jenkins2
Committed by
Gerrit Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "chan_sip: Expose read-only access to the full SIP INVITE Request-URI"
parents
7ff464bc
a5f1d58f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
channels/sip/dialplan_functions.c
+6
-0
6 additions, 0 deletions
channels/sip/dialplan_functions.c
with
6 additions
and
0 deletions
channels/sip/dialplan_functions.c
+
6
−
0
View file @
b9da3d64
...
...
@@ -41,6 +41,9 @@
<enum name="uri">
<para>R/O Get the URI from the Contact: header.</para>
</enum>
<enum name="ruri">
<para>R/O Get the Request-URI from the INVITE header.</para>
</enum>
<enum name="useragent">
<para>R/O Get the useragent.</para>
</enum>
...
...
@@ -162,6 +165,9 @@ int sip_acf_channel_read(struct ast_channel *chan, const char *funcname, char *p
ast_copy_string
(
buf
,
p
->
from
,
buflen
);
}
else
if
(
!
strcasecmp
(
args
.
param
,
"uri"
))
{
ast_copy_string
(
buf
,
p
->
uri
,
buflen
);
}
else
if
(
!
strcasecmp
(
args
.
param
,
"ruri"
))
{
char
*
tmpruri
=
REQ_OFFSET_TO_STR
(
&
p
->
initreq
,
rlpart2
);
ast_copy_string
(
buf
,
tmpruri
,
buflen
);
}
else
if
(
!
strcasecmp
(
args
.
param
,
"useragent"
))
{
ast_copy_string
(
buf
,
p
->
useragent
,
buflen
);
}
else
if
(
!
strcasecmp
(
args
.
param
,
"peername"
))
{
...
...
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