Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
47f23dd8
Commit
47f23dd8
authored
17 years ago
by
Alexandre Bourget
Browse files
Options
Downloads
Patches
Plain Diff
IAX: Allow to save the Full Name in the configuration, to use when calling outside.
parent
3c4bb197
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/iaxaccount.cpp
+6
-3
6 additions, 3 deletions
src/iaxaccount.cpp
src/sipaccount.cpp
+2
-1
2 additions, 1 deletion
src/sipaccount.cpp
with
8 additions
and
4 deletions
src/iaxaccount.cpp
+
6
−
3
View file @
47f23dd8
...
...
@@ -21,9 +21,10 @@
#include
"iaxvoiplink.h"
#include
"manager.h"
#define IAX_HOST "IAX.host"
#define IAX_USER "IAX.user"
#define IAX_PASS "IAX.pass"
#define IAX_FULL_NAME "IAX.fullName"
#define IAX_HOST "IAX.host"
#define IAX_USER "IAX.user"
#define IAX_PASS "IAX.pass"
IAXAccount
::
IAXAccount
(
const
AccountID
&
accountID
)
:
Account
(
accountID
)
...
...
@@ -54,6 +55,7 @@ IAXAccount::registerAccount()
unregisterAccount
();
IAXVoIPLink
*
tmplink
=
dynamic_cast
<
IAXVoIPLink
*>
(
_link
);
if
(
tmplink
)
{
// Stuff needed for IAX registration
tmplink
->
setHost
(
Manager
::
instance
().
getConfigString
(
_accountID
,
IAX_HOST
));
tmplink
->
setUser
(
Manager
::
instance
().
getConfigString
(
_accountID
,
IAX_USER
));
tmplink
->
setPass
(
Manager
::
instance
().
getConfigString
(
_accountID
,
IAX_PASS
));
...
...
@@ -106,6 +108,7 @@ IAXAccount::initConfig(Conf::ConfigTree& config)
// IAX specific
config
.
addConfigTreeItem
(
section
,
Conf
::
ConfigTreeItem
(
CONFIG_ACCOUNT_TYPE
,
"IAX"
,
type_str
));
config
.
addConfigTreeItem
(
section
,
Conf
::
ConfigTreeItem
(
IAX_FULL_NAME
,
""
,
type_str
));
config
.
addConfigTreeItem
(
section
,
Conf
::
ConfigTreeItem
(
IAX_HOST
,
""
,
type_str
));
config
.
addConfigTreeItem
(
section
,
Conf
::
ConfigTreeItem
(
IAX_USER
,
""
,
type_str
));
config
.
addConfigTreeItem
(
section
,
Conf
::
ConfigTreeItem
(
IAX_PASS
,
""
,
type_str
));
...
...
This diff is collapsed.
Click to expand it.
src/sipaccount.cpp
+
2
−
1
View file @
47f23dd8
...
...
@@ -59,7 +59,8 @@ SIPAccount::registerAccount()
unregisterAccount
();
SIPVoIPLink
*
tmplink
=
dynamic_cast
<
SIPVoIPLink
*>
(
_link
);
if
(
tmplink
)
{
tmplink
->
setProxy
(
Manager
::
instance
().
getConfigString
(
_accountID
,
SIP_PROXY
));
// Stuff needed for SIP registration.
tmplink
->
setProxy
(
Manager
::
instance
().
getConfigString
(
_accountID
,
SIP_PROXY
));
tmplink
->
setUserPart
(
Manager
::
instance
().
getConfigString
(
_accountID
,
SIP_USER_PART
));
tmplink
->
setAuthName
(
Manager
::
instance
().
getConfigString
(
_accountID
,
SIP_AUTH_NAME
));
tmplink
->
setPassword
(
Manager
::
instance
().
getConfigString
(
_accountID
,
SIP_PASSWORD
));
...
...
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