Pièce jointe « PALMH323-1-56-auf1.patch »
Téléchargement 1 diff --ignore-file-name-case -ur PALMH323.orig/AUTOPROV/prov.c PALMH323/AUTOPROV/prov.c
2 --- PALMH323.orig/AUTOPROV/prov.c 2006-12-07 09:41:22.000000000 +0000
3 +++ PALMH323/AUTOPROV/prov.c 2006-12-08 10:12:05.000000000 +0000
4 @@ -96,7 +96,7 @@
5 {
6 PXCHAR_D pCur;
7 PXCHAR_D pContent;
8 - XCHAR pVer[6];
9 + XCHAR pVer[8];
10 DSHORT iCurVersion, iNewVersion;
11
12 pCur = pFileName;
13 @@ -111,7 +111,10 @@
14 pVer[0] = SOFT_VER_HIGH + '0'; //X_VAL(Sdram_pDataCache, FLAGS_VERSION_HI);
15 pVer[1] = SOFT_VER_LOW + '0'; // X_VAL(Sdram_pDataCache, FLAGS_VERSION_LO);
16 pVer[2] = SOFT_VER_BUILD + '0'; //X_VAL(Sdram_pDataCache, FLAGS_VERSION_BUILD);
17 - pVer[3] = 0;
18 + /* patch AUF pour prendre en compte 5 chiffres de version */
19 + pVer[3] = ENG_BUILD_HIGH + '0';
20 + pVer[4] = ENG_BUILD_MID + '0';
21 + pVer[5] = 0;
22 iCurVersion = p_atoi(pVer, 10);
23 iNewVersion = p_atoi(pCur, 10);
24 OutputVal(iCurVersion, IDS_CHECK_POINT_7);
25 diff --ignore-file-name-case -ur PALMH323.orig/cleanall.bat PALMH323/cleanall.bat
26 --- PALMH323.orig/cleanall.bat 2006-12-07 09:41:20.000000000 +0000
27 +++ PALMH323/cleanall.bat 2006-12-08 10:12:05.000000000 +0000
28 @@ -280,42 +280,6 @@
29 del *.tmp
30 cd ..
31
32 -cd p_epn
33 -del *.bak
34 -del *.lst
35 -del *.obj
36 -del *.hex
37 -del *.m51
38 -del *.abs
39 -del *.xrf
40 -del *.~rj
41 -del *.wmc
42 -del *.scc
43 -del *.tmp
44 -del *.aps
45 -del *.plg
46 -rd debug /s /q
47 -rd release /s /q
48 -cd ..
49 -
50 -cd p_h323
51 -del *.bak
52 -del *.lst
53 -del *.obj
54 -del *.hex
55 -del *.m51
56 -del *.abs
57 -del *.xrf
58 -del *.~rj
59 -del *.wmc
60 -del *.scc
61 -del *.tmp
62 -del *.aps
63 -del *.plg
64 -rd debug /s /q
65 -rd release /s /q
66 -cd ..
67 -
68 cd p_iax2
69 del *.bak
70 del *.lst
71 @@ -334,42 +298,6 @@
72 rd release /s /q
73 cd ..
74
75 -cd p_mgcp
76 -del *.bak
77 -del *.lst
78 -del *.obj
79 -del *.hex
80 -del *.m51
81 -del *.abs
82 -del *.xrf
83 -del *.~rj
84 -del *.wmc
85 -del *.scc
86 -del *.tmp
87 -del *.aps
88 -del *.plg
89 -rd debug /s /q
90 -rd release /s /q
91 -cd ..
92 -
93 -cd p_n2p
94 -del *.bak
95 -del *.lst
96 -del *.obj
97 -del *.hex
98 -del *.m51
99 -del *.abs
100 -del *.xrf
101 -del *.~rj
102 -del *.wmc
103 -del *.scc
104 -del *.tmp
105 -del *.aps
106 -del *.plg
107 -rd debug /s /q
108 -rd release /s /q
109 -cd ..
110 -
111 cd p_sip
112 del *.bak
113 del *.lst
114 @@ -388,24 +316,6 @@
115 rd release /s /q
116 cd ..
117
118 -cd p_tcpip
119 -del *.bak
120 -del *.lst
121 -del *.obj
122 -del *.hex
123 -del *.m51
124 -del *.abs
125 -del *.xrf
126 -del *.~rj
127 -del *.wmc
128 -del *.scc
129 -del *.tmp
130 -del *.aps
131 -del *.plg
132 -rd debug /s /q
133 -rd release /s /q
134 -cd ..
135 -
136 cd p_util
137 del *.bak
138 del *.lst
139 @@ -424,24 +334,6 @@
140 rd release /s /q
141 cd ..
142
143 -cd p_wp
144 -del *.bak
145 -del *.lst
146 -del *.obj
147 -del *.hex
148 -del *.m51
149 -del *.abs
150 -del *.xrf
151 -del *.~rj
152 -del *.wmc
153 -del *.scc
154 -del *.tmp
155 -del *.aps
156 -del *.plg
157 -rd debug /s /q
158 -rd release /s /q
159 -cd ..
160 -
161 cd page0
162 del *.bak
163 del *.lst
164 @@ -689,129 +581,4 @@
165
166 cd ..
167
168 -if not exist p_user goto end
169 -
170 -cd p_user
171 - cd auvtech
172 - del *.bak
173 - del *.lst
174 - del *.obj
175 - del *.hex
176 - del *.m51
177 - del *.abs
178 - del *.xrf
179 - del *.~rj
180 - del *.wmc
181 - del *.scc
182 - del *.tmp
183 - cd ..
184 -
185 - cd asiainfo
186 - del *.bak
187 - del *.lst
188 - del *.obj
189 - del *.hex
190 - del *.m51
191 - del *.abs
192 - del *.xrf
193 - del *.~rj
194 - del *.wmc
195 - del *.scc
196 - del *.tmp
197 - cd ..
198 -
199 - cd ringtec
200 - del *.bak
201 - del *.lst
202 - del *.obj
203 - del *.hex
204 - del *.m51
205 - del *.abs
206 - del *.xrf
207 - del *.~rj
208 - del *.wmc
209 - del *.scc
210 - del *.tmp
211 - cd ..
212 -
213 - cd citron
214 - del *.bak
215 - del *.lst
216 - del *.obj
217 - del *.hex
218 - del *.m51
219 - del *.abs
220 - del *.xrf
221 - del *.~rj
222 - del *.wmc
223 - del *.scc
224 - del *.tmp
225 - cd ..
226 -
227 - cd yiyang
228 - del *.bak
229 - del *.lst
230 - del *.obj
231 - del *.hex
232 - del *.m51
233 - del *.abs
234 - del *.xrf
235 - del *.~rj
236 - del *.wmc
237 - del *.scc
238 - del *.tmp
239 - cd ..
240 -
241 - cd txtc
242 - del *.bak
243 - del *.lst
244 - del *.obj
245 - del *.hex
246 - del *.m51
247 - del *.abs
248 - del *.xrf
249 - del *.~rj
250 - del *.wmc
251 - del *.scc
252 - del *.tmp
253 - cd ..
254 -
255 - cd skycom
256 - del *.bak
257 - del *.lst
258 - del *.obj
259 - del *.hex
260 - del *.m51
261 - del *.abs
262 - del *.xrf
263 - del *.~rj
264 - del *.wmc
265 - del *.scc
266 - del *.tmp
267 - cd ..
268 -
269 - cd mediaring
270 - del *.bak
271 - del *.lst
272 - del *.obj
273 - del *.hex
274 - del *.m51
275 - del *.abs
276 - del *.xrf
277 - del *.~rj
278 - del *.wmc
279 - del *.scc
280 - del *.tmp
281 - cd ..
282 -
283 -del *.scc
284 -del *.aps
285 -del *.plg
286 -rd debug /s /q
287 -rd release /s /q
288 -cd ..
289 -
290 -
291 -
292 -:end
293
294 diff --ignore-file-name-case -ur PALMH323.orig/inc/flags.h PALMH323/inc/flags.h
295 --- PALMH323.orig/inc/flags.h 2006-12-07 09:41:26.000000000 +0000
296 +++ PALMH323/inc/flags.h 2006-12-08 10:12:05.000000000 +0000
297 @@ -32,7 +32,8 @@
298 'A', 'O', 'L', 'Y', 'N', 'K', ' ','E', 'P', '2', '0', '1', 0, 0, 0, 0,
299 #endif
300 #elif defined VER_YWH500
301 - ' ', ' ', ' ', 'I', 'P', ' ', 'P', 'H', 'O', 'N', 'E', ' ', '5', 0, 0, 0,
302 + // ' ', ' ', ' ', 'I', 'P', ' ', 'P', 'H', 'O', 'N', 'E', ' ', '5', 0, 0, 0,
303 + 'A', 'U', 'F', ' ', 'V', 'o', 'I', 'P', ' ', SOFT_VER_HIGH + '0', SOFT_VER_LOW + '0', SOFT_VER_BUILD + '0', '-', ENG_BUILD_HIGH + '0', ENG_BUILD_MID + '0', 0,
304 #elif defined VER_YWH300
305 ' ', ' ', ' ', 'I', 'P', ' ', 'P', 'H', 'O', 'N', 'E', ' ', '4', 0, 0, 0,
306 #elif defined VER_YWH200
307 diff --ignore-file-name-case -ur PALMH323.orig/inc/p_iax2.h PALMH323/inc/p_iax2.h
308 --- PALMH323.orig/inc/p_iax2.h 2006-12-07 09:41:28.000000000 +0000
309 +++ PALMH323/inc/p_iax2.h 2006-12-08 10:12:05.000000000 +0000
310 @@ -17,7 +17,7 @@
311 void Iax2Connect();
312 void Iax2CallHold();
313 void Iax2AttendedTransfer();
314 - void Iax2UnattendedTransfer(PXCHAR pDstNumber);
315 + void Iax2_AUF_SendKey(UCHAR iKey);
316 void Iax2HandleTimer();
317 void Iax2SendDtmfKeys(PXCHAR pKeyBuf, UCHAR iLen);
318 void Iax2SendVoice(UCHAR iLen, PXCHAR pData);
319 diff --ignore-file-name-case -ur PALMH323.orig/inc/version.h PALMH323/inc/version.h
320 --- PALMH323.orig/inc/version.h 2006-12-07 15:35:18.000000000 +0000
321 +++ PALMH323/inc/version.h 2006-12-08 10:14:08.000000000 +0000
322 @@ -23,10 +23,10 @@
323 //#define VER_WG2203 // MT29F016, fast TOGO Tech, 2203 and 2501 phones
324 //#define VER_WG3051 // same as PA168V
325 //#define VER_YWH10 // same as PA168S except different keypad
326 -#define VER_YWH100 // same as PA168S except different keypad
327 +//#define VER_YWH100 // same as PA168S except different keypad
328 //#define VER_YWH200 // same as PA168S except different keypad
329 //#define VER_YWH300 // same as PA168S except different keypad
330 -//#define VER_YWH500 // same as PA168S except different keypad
331 +#define VER_YWH500 // same as PA168S except different keypad
332 //#define VER_COSUN // same as PA168S except different keypad
333 //#define VER_KINGTEL // same as PA168S except different keypad
334 //#define VER_EP668 // GW-EP668/A - same as PA168S
335 @@ -39,9 +39,9 @@
336 //#define CALL_H323
337 //#define CALL_SIP
338 //#define CALL_MGCP
339 -#define CALL_N2P
340 +//#define CALL_N2P
341 //#define CALL_WP
342 -//#define CALL_IAX2
343 +#define CALL_IAX2
344 //#define CALL_EPN
345
346 // Country -- Web page, LCD display, IVR voice and DTMF tone
347 @@ -60,13 +60,13 @@
348 //#define RES_CA_E // Canada (English) ^^^
349 //#define RES_CA_F // Canada (French) *** (web, lcd and ivr use French)
350 //#define RES_CL // Chile (Spanish) *** (web, lcd and ivr use Spain)
351 -#define RES_CN // China (Mandarin) ***
352 +//#define RES_CN // China (Mandarin) ***
353 //#define RES_CZ // Czech Republic *** (ivr use English)
354 //#define RES_DE // Germany ***
355 //#define RES_EG // Egypt
356 //#define RES_ES // Spain ***
357 //#define RES_ES_C // Catalonian (Spain) *** (Dtmf Tone use Spain)
358 -//#define RES_FR // France ***
359 +#define RES_FR // France ***
360 //#define RES_GB // United Kingdom (English) ^^^
361 //#define RES_GR // Greece
362 //#define RES_HK // China HongKong ^^^
363 @@ -99,7 +99,7 @@
364 //#define OEM_MEDIARING
365 //#define OEM_NET2PHONE
366 //#define OEM_NGTEL
367 -//#define OEM_NONE_IVR
368 +#define OEM_NONE_IVR
369 //#define OEM_POLYLINK
370 //#define OEM_RINGCHAT
371 //#define OEM_SKYCOM
372 @@ -451,5 +451,5 @@
373 #define SOFT_VER_LOW 5
374 #define SOFT_VER_BUILD 6
375 #define ENG_BUILD_HIGH 0
376 -#define ENG_BUILD_MID 0
377 +#define ENG_BUILD_MID 1
378 #define ENG_BUILD_LOW 1
379 diff --ignore-file-name-case -ur PALMH323.orig/main/function.c PALMH323/main/function.c
380 --- PALMH323.orig/main/function.c 2006-12-07 09:42:52.000000000 +0000
381 +++ PALMH323/main/function.c 2006-12-08 10:12:26.000000000 +0000
382 @@ -798,14 +798,7 @@
383 #endif
384
385 #ifdef CALL_IAX2
386 - if (p_strlen_x(Key_pBuf))
387 - {
388 - Iax2UnattendedTransfer(Key_pBuf);
389 - }
390 - else
391 - {
392 - Iax2AttendedTransfer();
393 - }
394 + Iax2AttendedTransfer();
395 #endif
396 KeypadClear();
397 }
398 diff --ignore-file-name-case -ur PALMH323.orig/p_apps/lcd_fr.c PALMH323/p_apps/lcd_fr.c
399 --- PALMH323.orig/p_apps/lcd_fr.c 2006-12-07 09:42:56.000000000 +0000
400 +++ PALMH323/p_apps/lcd_fr.c 2006-12-08 10:12:26.000000000 +0000
401 @@ -1,82 +1,82 @@
402 -CCHAR g_cWeekDay[DAYS_PER_WEEK][4] = {"DIM", "LUN", "MAR", "MER", "JEU", "VEN", "SAM"};
403 -CCHAR g_cMonth[MONTHS_PER_YEAR][4] = {"JAN", "FEV", "MAR", "AVR", "MAI", "JUI", "JUL", "AOU", "SEP", "OCT", "NOV", "DEC"};
404 +CCHAR g_cWeekDay[DAYS_PER_WEEK][4] = {"Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam"};
405 +CCHAR g_cMonth[MONTHS_PER_YEAR][4] = {"jan", "fev", "mar", "avr", "mai", "jui", "jul", "aou", "sep", "oct", "nov", "dec"};
406
407 CCHAR g_cPasswordPrompt[] = "Mot de passe:";
408 CCHAR g_cSettings[] = "Configuration";
409
410 CCHAR g_cEnableLabel[] = "1[Activer]";
411 -CCHAR g_cDisableLabel[] = "0[Deactiver]";
412 +CCHAR g_cDisableLabel[] = "0[Desactiver]";
413 CCHAR g_cInvalidLabel[] = "Invalide";
414 -CCHAR g_cSuperLable[] = "Passwd Administ..";
415 +CCHAR g_cSuperLable[] = "MdP Admin.";
416
417 -CCHAR g_cBooting[] = "Booting ...";
418 -CCHAR g_cReady[] = "Pret";
419 -CCHAR g_cLocalIP[] = "IP Locale";
420 -CCHAR g_cSubnetMask[] = "Masque S/ Reseau";
421 -CCHAR g_cRouterIP[] = "Adresse Routeur";
422 -CCHAR g_cServiceIP[] = "Adresse serveur";
423 -CCHAR g_cPhoneNumber[] = "Numero du Poste";
424 -CCHAR g_cMissedCalls[] = "Appels Manques:";
425 -CCHAR g_cAnsweredCalls[] = "Appels Recus:";
426 -CCHAR g_cDialedCalls[] = "Appels Emis:";
427 +CCHAR g_cBooting[] = "Initialisation";
428 +CCHAR g_cReady[] = "Telephone pret !";
429 +CCHAR g_cLocalIP[] = "IP locale";
430 +CCHAR g_cSubnetMask[] = "Masque reseau";
431 +CCHAR g_cRouterIP[] = "IP routeur";
432 +CCHAR g_cServiceIP[] = "IP serveur";
433 +CCHAR g_cPhoneNumber[] = "Numero du poste";
434 +CCHAR g_cMissedCalls[] = "Appels manques:";
435 +CCHAR g_cAnsweredCalls[] = "Appels recus:";
436 +CCHAR g_cDialedCalls[] = "Appels emis:";
437 CCHAR g_cEmpty[] = "Vide";
438 CCHAR g_cMemory[] = "Memoire";
439 -CCHAR g_cSpeedDial[] = "selection Rapide:";
440 +CCHAR g_cSpeedDial[] = "Selection rapide:";
441 CCHAR g_cVolPlus[] = "Vol+";
442 CCHAR g_cVolMinus[] = "Vol-";
443 CCHAR g_cRedial[] = "Bis";
444 CCHAR g_cCall[] = "Appel";
445 -CCHAR g_cCalling[] = "Appel En cours...";
446 -CCHAR g_cRinging[] = "Sonnerie ...";
447 -CCHAR g_cAnswering[] = "Reponse ...";
448 +CCHAR g_cCalling[] = "Appel en cours";
449 +CCHAR g_cRinging[] = "Sonnerie";
450 +CCHAR g_cAnswering[] = "Reponse";
451 CCHAR g_cConnected[] = "Connecte";
452 CCHAR g_cBlank[] = " ";
453 CCHAR g_cFailed[] = "Echoue";
454 -CCHAR g_cHandsetUp[] = "Vol+ Combine";
455 -CCHAR g_cHandsetDown[] = "Vol- Combine";
456 +CCHAR g_cHandsetUp[] = "Vol+ combine";
457 +CCHAR g_cHandsetDown[] = "Vol- combine";
458 CCHAR g_cNetwork[] = "Reseau";
459 CCHAR g_cDHCP[] = "DHCP";
460 CCHAR g_cPPPoE[] = "PPPoE";
461 -CCHAR g_cLogon[] = "Ouverture Session";
462 -CCHAR g_cLogoff[] = "Log Off";
463 -CCHAR g_cUpdating[] = "Mise a jour ...";
464 -CCHAR g_cPleaseWait[] = "Patientez Svp";
465 -CCHAR g_cTestMode[] = "Mode Test ...";
466 +CCHAR g_cLogon[] = "Ouverture session";
467 +CCHAR g_cLogoff[] = "Deconnexion";
468 +CCHAR g_cUpdating[] = "Mise a jour";
469 +CCHAR g_cPleaseWait[] = "Patientez SVP";
470 +CCHAR g_cTestMode[] = "MODE TEST";
471 CCHAR g_cStart[] = "Debut";
472 CCHAR g_cStop[] = "Arret";
473 CCHAR g_cRestart[] = "Redemarrage";
474 CCHAR g_cPercentStart[] = " 0%";
475 CCHAR g_cTimeStart[] = "00:00:00";
476 -CCHAR g_cConnecting[] = "Connexion en cours";
477 -CCHAR g_cDisconnecting[] = "Disconnecting...";
478 +CCHAR g_cConnecting[] = "Connexion ...";
479 +CCHAR g_cDisconnecting[] = "Deconnexion";
480 CCHAR g_cModem[] = "Modem";
481 -CCHAR g_cPeerHangup[] = "Dest: Raccrocher";
482 +CCHAR g_cPeerHangup[] = "Dest. a raccroche";
483 CCHAR g_cPeerBusy[] = "Occupe";
484 -CCHAR g_cCallHold[] = "Appel En Attente";
485 -CCHAR g_cPleaseDial[] = "Numerotez Svp ...";
486 -CCHAR g_cNoAnswer[] = "Pas de Reponse";
487 -CCHAR g_cPeerReject[] = "Dest: Rejet appel";
488 -CCHAR g_cLocalHangup[] = "Dernier Appel:";
489 -CCHAR g_cWaitLogon[] = "Attente D'Acces...";
490 -CCHAR g_cNetworkError[] = "Erreur Reseau";
491 +CCHAR g_cCallHold[] = "Appel en attente";
492 +CCHAR g_cPleaseDial[] = "Numerotez ...";
493 +CCHAR g_cNoAnswer[] = "Pas de reponse";
494 +CCHAR g_cPeerReject[] = "Dst refuse l'appel";
495 +CCHAR g_cLocalHangup[] = "Dernier appel:";
496 +CCHAR g_cWaitLogon[] = "Attente d'acces...";
497 +CCHAR g_cNetworkError[] = "Erreur reseau";
498 CCHAR g_cServiceClearCall[] = "Lib Appel Systeme";
499 -CCHAR g_cPleaseHangup[] = "Raccrochez Svp";
500 -CCHAR g_cCallForward[] = "Renvoie Appel";
501 -CCHAR g_cInvalidNumber[] = "Numero Invalide";
502 -CCHAR g_cUnknownNumber[] = "Numero Inconnu";
503 -CCHAR g_cDuplicateNumber[] = "Numero Duplique";
504 -CCHAR g_cCallRestricted[] = "Appel Restreint";
505 -CCHAR g_cCallTerminated[] = "Call Terminated";
506 -CCHAR g_cRecharge[] = "Recharger Svp";
507 -CCHAR g_cAccountExpired[] = "Compte Expire";
508 -CCHAR g_cInvalidPassword[] = "Passwd Invalide";
509 -CCHAR g_cBlockedNumber[] = "Numero Bloque";
510 -CCHAR g_cDuplicatedIP[] = "Adrs IP Duplique!";
511 -CCHAR g_cCallWaiting[] = "Call Waiting";
512 -CCHAR g_cNewMessage[] = "Message arrive";
513 +CCHAR g_cPleaseHangup[] = "Raccrochez";
514 +CCHAR g_cCallForward[] = "Renvoi";
515 +CCHAR g_cInvalidNumber[] = "Numero invalide";
516 +CCHAR g_cUnknownNumber[] = "Numero inconnu";
517 +CCHAR g_cDuplicateNumber[] = "Numero duplique";
518 +CCHAR g_cCallRestricted[] = "Appel restreint";
519 +CCHAR g_cCallTerminated[] = "Fin d'appel";
520 +CCHAR g_cRecharge[] = "Rechargez SVP";
521 +CCHAR g_cAccountExpired[] = "Compte expire";
522 +CCHAR g_cInvalidPassword[] = "MdP invalide";
523 +CCHAR g_cBlockedNumber[] = "Numero bloque";
524 +CCHAR g_cDuplicatedIP[] = "Adr. IP dupliquee!";
525 +CCHAR g_cCallWaiting[] = "Appel en attente";
526 +CCHAR g_cNewMessage[] = "Messagerie";
527 CCHAR g_cCallTransfer[] = "Transfert";
528 -CCHAR g_cProvisioning[] = "Provisioning";
529 -CCHAR g_cCallMuted[] = "Call Muted";
530 +CCHAR g_cProvisioning[] = "Autoconfig";
531 +CCHAR g_cCallMuted[] = "Silencieux";
532
533 #ifdef CALL_H323
534 CCHAR g_cProtocol[] = "H323";
535 diff --ignore-file-name-case -ur PALMH323.orig/P_IAX2/iax2.c PALMH323/P_IAX2/iax2.c
536 --- PALMH323.orig/P_IAX2/iax2.c 2006-12-07 09:43:02.000000000 +0000
537 +++ PALMH323/P_IAX2/iax2.c 2006-12-08 10:12:26.000000000 +0000
538 @@ -1391,47 +1391,6 @@
539 }
540 }
541
542 - void Iax2UnattendedTransfer(PXCHAR pDstNumber)
543 -{
544 - DCHAR iSession;
545 -
546 - iSession = Iax2_iCallSess[Iax2_iCurCall];
547 - iax2_ie_start();
548 - iax2_ie_add_xstr(IAX_IE_CALLED_NUMBER, pDstNumber);
549 - iax2_session_send_packet(iSession, AST_FRAME_IAX, IAX_COMMAND_TRANSFER, iax2_ie_get_len());
550 -}
551 -
552 - void Iax2AttendedTransfer()
553 -{
554 - DCHAR iAltCall, iAltSession;
555 - DCHAR iSession;
556 -
557 - iAltCall = 1 - Iax2_iCurCall;
558 - if (Iax2_iCallState[Iax2_iCurCall] != IAX_CALL_STATE_CONNECTED || Iax2_iCallState[iAltCall] != IAX_CALL_STATE_CONNECTED)
559 - {
560 - DebugCString((PCCHAR)"No two established calls");
561 - return;
562 - }
563 - iSession = Iax2_iCallSess[Iax2_iCurCall];
564 - iAltSession = Iax2_iCallSess[iAltCall];
565 -
566 - Sess_iTransSession[iSession] = iAltSession;
567 - Sess_iTransState[iSession] = IAX_TRANS_STATE_CONNECTING;
568 - p_rand_array(Sess_pTransferID[iSession], IAX_TRANSFERID_LEN);
569 - Sess_iTransCallNo[iSession] = Sess_iPeerCallNo[iAltSession];
570 - Iax2_iCallState[Iax2_iCurCall] = IAX_CALL_STATE_TRANSFERRING;
571 - iax2_send_txreq(iSession, Sess_iPeerPort[iAltSession], Sess_pPeerIP[iAltSession]);
572 -
573 - Sess_iTransSession[iAltSession] = iSession;
574 - Sess_iTransState[iAltSession] = IAX_TRANS_STATE_CONNECTING;
575 - p_memcpy_x2x(Sess_pTransferID[iAltSession], Sess_pTransferID[iSession], IAX_TRANSFERID_LEN);
576 - Sess_iTransCallNo[iAltSession] = Sess_iPeerCallNo[iSession];
577 - Iax2_iCallState[iAltCall] = IAX_CALL_STATE_TRANSFERRING;
578 - iax2_send_txreq(iAltSession, Sess_iPeerPort[iSession], Sess_pPeerIP[iSession]);
579 -
580 - Task_bCallTransfer = TRUE;
581 -}
582 -
583 void Iax2HandleTimer()
584 {
585 iax2_session_handle_timer();
586 @@ -1559,4 +1518,23 @@
587 }
588 }
589
590 +/* AUF */
591 +
592 + void Iax2_AUF_SendKey(UCHAR iKey) {
593 + DCHAR iKeyID;
594 + XCHAR pKeyBuf[2];
595 +
596 + if (!IsInCall()) return;
597 + if (Task_bCallHold) return;
598 +
599 + iKeyID = iKey;
600 + pKeyBuf[0] = iKeyID;
601 + Iax2SendDtmfKeys(pKeyBuf,1);
602 +}
603 +
604 + void Iax2AttendedTransfer() {
605 + Iax2_AUF_SendKey('*');
606 + Iax2_AUF_SendKey('2');
607 +}
608 +
609
Fichiers joints
Pour vous référer aux pièces jointes d'une page, utilisez attachment:filename, comme indiqué ci-dessous dans la liste de fichiers. N'utilisez pas l'URL du lien [get], car elle peut changer et donc être facilement cassée.Vous n'êtes pas autorisé à joindre un fichier à cette page.