equal
deleted
inserted
replaced
2224 SVPDEBUG2(" CSVPController::CNTSL: iServiceId = %d", callParams.ServiceId() ) |
2224 SVPDEBUG2(" CSVPController::CNTSL: iServiceId = %d", callParams.ServiceId() ) |
2225 |
2225 |
2226 // Get VoIP profile by service id |
2226 // Get VoIP profile by service id |
2227 reg->FindByServiceIdL( callParams.ServiceId(), entryArray ); |
2227 reg->FindByServiceIdL( callParams.ServiceId(), entryArray ); |
2228 // Take first entry from array |
2228 // Take first entry from array |
2229 CRCSEProfileEntry* entry = entryArray[0]; |
2229 CRCSEProfileEntry* entry = NULL; |
2230 |
2230 if (entryArray.Count() > 0) |
|
2231 { |
|
2232 entry = entryArray[0]; |
|
2233 } |
|
2234 else |
|
2235 { |
|
2236 User::Leave(KErrNotFound); |
|
2237 } |
2231 // array for provisioned data |
2238 // array for provisioned data |
2232 CDesC8ArrayFlat* userAgentHeaders = new( ELeave )CDesC8ArrayFlat( 4 ); |
2239 CDesC8ArrayFlat* userAgentHeaders = new( ELeave )CDesC8ArrayFlat( 4 ); |
2233 CleanupStack::PushL( userAgentHeaders ); |
2240 CleanupStack::PushL( userAgentHeaders ); |
2234 |
2241 |
2235 // variable for storing security status |
2242 // variable for storing security status |