Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
47f23dd8
Commit
47f23dd8
authored
Aug 31, 2007
by
Alexandre Bourget
Browse files
IAX: Allow to save the Full Name in the configuration, to use when calling outside.
parent
3c4bb197
Changes
2
Show whitespace changes
Inline
Side-by-side
src/iaxaccount.cpp
View file @
47f23dd8
...
...
@@ -21,6 +21,7 @@
#include "iaxvoiplink.h"
#include "manager.h"
#define IAX_FULL_NAME "IAX.fullName"
#define IAX_HOST "IAX.host"
#define IAX_USER "IAX.user"
#define IAX_PASS "IAX.pass"
...
...
@@ -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
));
...
...
src/sipaccount.cpp
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
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment