equal
deleted
inserted
replaced
96 "PE CPEParserVoipNumberHandler::ProcessDialToVoipNumberL, aNumber: %S, aDtmfPostfix: %S", |
96 "PE CPEParserVoipNumberHandler::ProcessDialToVoipNumberL, aNumber: %S, aDtmfPostfix: %S", |
97 &aNumber, |
97 &aNumber, |
98 &aDtmfPostfix ); |
98 &aDtmfPostfix ); |
99 |
99 |
100 TPEPhoneNumber phoneNumber; |
100 TPEPhoneNumber phoneNumber; |
|
101 |
|
102 // Check if phone is locked |
|
103 iOwner.CheckIfPhoneIsLockedL(); |
101 |
104 |
102 if ( aNumber.Length() == 0 ) |
105 if ( aNumber.Length() == 0 ) |
103 { |
106 { |
104 User::Leave( ECCPErrorInvalidPhoneNumber ); |
107 User::Leave( ECCPErrorInvalidPhoneNumber ); |
105 } |
108 } |
106 |
109 |
107 phoneNumber.Append( aNumber ); |
110 phoneNumber.Append( aNumber ); |
108 |
111 |
109 TPECallType processType = iDataStore.CallTypeCommand(); |
112 TPECallType processType = iDataStore.CallTypeCommand(); |
110 |
113 |
111 // Remove possible + or w chartes. |
114 // Remove possible + or w chartes. |
112 TPEPhoneNumber postfix = FilterPostfix( aDtmfPostfix ); |
115 TPEPhoneNumber postfix = FilterPostfix( aDtmfPostfix ); |
113 if( postfix.Length() ) |
116 if( postfix.Length() ) |
114 { |
117 { |
115 phoneNumber.Append( postfix ); |
118 phoneNumber.Append( postfix ); |
116 } |
119 } |
121 , &phoneNumber |
124 , &phoneNumber |
122 , &iDtmfString ); |
125 , &iDtmfString ); |
123 |
126 |
124 // Temporary hack for enabling client calls with service id 3 |
127 // Temporary hack for enabling client calls with service id 3 |
125 // Proper solution to be done to CallUi and AIW dial data |
128 // Proper solution to be done to CallUi and AIW dial data |
|
129 |
|
130 |
126 TUint32 serviceId = iDataStore.ServiceIdCommand(); |
131 TUint32 serviceId = iDataStore.ServiceIdCommand(); |
127 iServiceHandling.EnableServiceL( serviceId ); |
132 iServiceHandling.EnableServiceL( serviceId ); |
|
133 |
128 } |
134 } |
129 |
135 |
130 // ----------------------------------------------------------------------------- |
136 // ----------------------------------------------------------------------------- |
131 // CPEParserVoipNumberHandler::FilterPostfix |
137 // CPEParserVoipNumberHandler::FilterPostfix |
132 // ----------------------------------------------------------------------------- |
138 // ----------------------------------------------------------------------------- |
173 &phoneNumber ); |
179 &phoneNumber ); |
174 TBool clientCall = ( iDataStore.CallOriginCommand() != EPECallOriginPhone ); |
180 TBool clientCall = ( iDataStore.CallOriginCommand() != EPECallOriginPhone ); |
175 // DialCall method will set call origin as unknow |
181 // DialCall method will set call origin as unknow |
176 TInt errorCode = iCallHandling.DialCall( phoneNumber, callId ); |
182 TInt errorCode = iCallHandling.DialCall( phoneNumber, callId ); |
177 |
183 |
178 if ( iDataStore.IsTransferDial() ) |
|
179 { |
|
180 iDataStore.SetDoCallBackRequest( ETrue, callId ); |
|
181 iDataStore.SetIsTransferDial( EFalse ); |
|
182 } |
|
183 |
|
184 // Set dtmf string to dataStore |
184 // Set dtmf string to dataStore |
185 iDataStore.SetDtmfPostFix( iDtmfString, callId ); |
185 iDataStore.SetDtmfPostFix( iDtmfString, callId ); |
186 |
186 |
187 //PhoneClient originated call |
187 //PhoneClient originated call |
188 if( clientCall && ( ECCPErrorNone == errorCode ) ) |
188 if( clientCall && ( ECCPErrorNone == errorCode ) ) |