~ubuntu-branches/ubuntu/saucy/sflphone/saucy

« back to all changes in this revision

Viewing changes to sflphone-common/src/iax/iaxaccount.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Francois Marier
  • Date: 2011-04-05 14:14:13 UTC
  • mfrom: (4.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20110405141413-hbwbunfsxpn2rtre
Tags: 0.9.13-1
* New upstream release
  - remove Debian patch (applied upstream)
* Fix watch file
* Remove unnecessary versioned dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
153
153
        val = NULL;
154
154
    }
155
155
 
 
156
    // Update codec list which one is used for SDP offer
 
157
    setActiveCodecs (Manager::instance ().unserialize (_codecStr));
 
158
 
156
159
    val = (Conf::ScalarNode *) (map->getValue (displayNameKey));
157
160
 
158
161
    if (val) {
250
253
 
251
254
int IAXAccount::registerVoIPLink()
252
255
{
253
 
    _link->init();
254
 
 
255
 
    // Stuff needed for IAX registration
256
 
    setHostname (_hostname);
257
 
    setUsername (_username);
258
 
    setPassword (_password);
259
 
 
260
 
    _link->sendRegister (_accountID);
 
256
        try {
 
257
 
 
258
        _link->init();
 
259
 
 
260
        // Stuff needed for IAX registration
 
261
        setHostname (_hostname);
 
262
        setUsername (_username);
 
263
        setPassword (_password);
 
264
 
 
265
        _link->sendRegister (_accountID);
 
266
        }
 
267
        catch(VoipLinkException &e) {
 
268
                _error("IAXAccount: %s", e.what());
 
269
        }
261
270
 
262
271
    return SUCCESS;
263
272
}
265
274
int
266
275
IAXAccount::unregisterVoIPLink()
267
276
{
268
 
    _link->sendUnregister (_accountID);
269
 
    _link->terminate();
270
 
 
271
 
    return SUCCESS;
 
277
        try {
 
278
        _link->sendUnregister (_accountID);
 
279
        _link->terminate();
 
280
 
 
281
        return SUCCESS;
 
282
        }
 
283
        catch(VoipLinkException &e) {
 
284
                _error("IAXAccount: %s", e.what());
 
285
        }
 
286
 
 
287
        return SUCCESS;
272
288
}
273
289
 
274
290
void