equal
deleted
inserted
replaced
125 // |
125 // |
126 //-========================================================= |
126 //-========================================================= |
127 CSipSubConnectionProvider::~CSipSubConnectionProvider() |
127 CSipSubConnectionProvider::~CSipSubConnectionProvider() |
128 { |
128 { |
129 LOG_NODE_DESTROY(KSipSCprTag, CSipSubConnectionProvider); |
129 LOG_NODE_DESTROY(KSipSCprTag, CSipSubConnectionProvider); |
|
130 if(iSipSm != NULL) |
130 iSipSm->DeleteWhenReady(); |
131 iSipSm->DeleteWhenReady(); |
131 } |
132 } |
132 |
133 |
133 CSipSubConnectionProvider::CSipSubConnectionProvider(ESock::CSubConnectionProviderFactoryBase& aFactory) |
134 CSipSubConnectionProvider::CSipSubConnectionProvider(ESock::CSubConnectionProviderFactoryBase& aFactory) |
134 : CCoreSubConnectionProvider(aFactory, SipSCprActivities::activityMap::Self()) |
135 : CCoreSubConnectionProvider(aFactory, SipSCprActivities::activityMap::Self()) |
346 { |
347 { |
347 __CFLOG_VAR((KSipSCprTag, KSipSCprSubTag, _L8("CSubConSIPResponseEvent::NewL() left with the error: [%d]"), error)); |
348 __CFLOG_VAR((KSipSCprTag, KSipSCprSubTag, _L8("CSubConSIPResponseEvent::NewL() left with the error: [%d]"), error)); |
348 return; |
349 return; |
349 } |
350 } |
350 sipevent->SetResponse(aSipCode); |
351 sipevent->SetResponse(aSipCode); |
351 NotifyClientsL(*sipevent); |
352 TRAP(error, NotifyClientsL(*sipevent)); |
352 } |
353 if (error != KErrNone) |
|
354 { |
|
355 __CFLOG_VAR((KSipSCprTag, KSipSCprSubTag, _L8("NotifyClientsL left with the error: [%d]"), error)); |
|
356 return; |
|
357 } |
|
358 } |
353 } |
359 } |
354 |
360 |
355 /** |
361 /** |
356 This is a call-back function of SIP stata machine. |
362 This is a call-back function of SIP stata machine. |
357 It will be called when an incoming connection(incoming INVITE) is received with the |
363 It will be called when an incoming connection(incoming INVITE) is received with the |
415 if (error != KErrNone) |
421 if (error != KErrNone) |
416 { |
422 { |
417 __CFLOG_VAR((KSipSCprTag, KSipSCprSubTag, _L8("CSubConSIPAuthenticationRequiredEvent::SetRealmL() left with error [%d]"), error)); |
423 __CFLOG_VAR((KSipSCprTag, KSipSCprSubTag, _L8("CSubConSIPAuthenticationRequiredEvent::SetRealmL() left with error [%d]"), error)); |
418 return; |
424 return; |
419 } |
425 } |
420 NotifyClientsL(*event); |
426 TRAP(error, NotifyClientsL(*event)); |
|
427 if (error != KErrNone) |
|
428 { |
|
429 __CFLOG_VAR((KSipSCprTag, KSipSCprSubTag, _L8("NotifyClientsL left with the error: [%d]"), error)); |
|
430 return; |
|
431 } |
421 #endif |
432 #endif |
422 } |
433 } |
423 |
434 |
424 /** |
435 /** |
425 This is callback function. This will be called when the SIP high-level |
436 This is callback function. This will be called when the SIP high-level |
428 void CSipSubConnectionProvider::ReceiveNotification(TDesC8 & aNotification) |
439 void CSipSubConnectionProvider::ReceiveNotification(TDesC8 & aNotification) |
429 { |
440 { |
430 |
441 |
431 __CFLOG_VAR((KSipSCprTag, KSipSCprSubTag, _L8("CSipSubConnectionProvider::ReceiveNotification"))); |
442 __CFLOG_VAR((KSipSCprTag, KSipSCprSubTag, _L8("CSipSubConnectionProvider::ReceiveNotification"))); |
432 CSubConSIPNotificationEvent* event = CSubConSIPNotificationEvent::NewL(); |
443 CSubConSIPNotificationEvent* event = CSubConSIPNotificationEvent::NewL(); |
433 event->SetNotificationL(aNotification); |
444 TRAPD(error, event->SetNotificationL(aNotification)); |
|
445 if (error != KErrNone) |
|
446 { |
|
447 __CFLOG_VAR((KSipSCprTag, KSipSCprSubTag, _L8("event->SetNotificationL left with the error: [%d]"), error)); |
|
448 return; |
|
449 } |
434 |
450 |
435 TInt32 gId = event->GroupId(); |
451 TInt32 gId = event->GroupId(); |
436 |
452 |
437 NotifyClientsL(*event); |
453 TRAP(error, NotifyClientsL(*event)); |
|
454 if (error != KErrNone) |
|
455 { |
|
456 __CFLOG_VAR((KSipSCprTag, KSipSCprSubTag, _L8("NotifyClientsL left with the error: [%d]"), error)); |
|
457 return; |
|
458 } |
438 } |
459 } |
439 |
460 |
440 /** |
461 /** |
441 Creates SIP high-level state machine |
462 Creates SIP high-level state machine |
442 */ |
463 */ |