Pièce jointe « PALMH323-1-55-auf2.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-10-08 11:20:42.000000000 +0000
3 +++ PALMH323/AUTOPROV/prov.c 2006-11-16 16:55:14.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-10-08 11:20:40.000000000 +0000
27 +++ PALMH323/cleanall.bat 2006-10-31 12:40:42.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-10-08 11:20:48.000000000 +0000
296 +++ PALMH323/inc/flags.h 2006-11-16 17:06:36.000000000 +0000
297 @@ -34,7 +34,8 @@
298 #elif defined VER_TIGER
299 'T', 'I', 'N', 'Y', ' ', 'T', 'I', 'G', 'E', 'R', 0, 0, 0, 0, 0, 0,
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-10-08 11:20:50.000000000 +0000
309 +++ PALMH323/inc/p_iax2.h 2006-11-10 14:20:59.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-10-08 13:15:08.000000000 +0000
321 +++ PALMH323/inc/version.h 2006-11-16 17:06:54.000000000 +0000
322 @@ -5,7 +5,7 @@
323 //#define VER_PA168FS // 004T, fast
324 //#define VER_PA168P // 008T, FXS one port GW, use AM79R70 as SLIC chip
325 //#define VER_PA168Q // 008T, FXS one port GW, use AG1170 as SLIC chip
326 -#define VER_PA168S // 008T, fast
327 +//#define VER_PA168S // 008T, fast
328 //#define VER_PA168T // phone with MT28F016
329 //#define VER_PA168V // 1-port fxs with MT28F016, with PSTN dual mode support
330 //#define VER_H2001 // Tsinghua Huahuan
331 @@ -27,7 +27,7 @@
332 //#define VER_YWH100 // same as PA168S except different keypad
333 //#define VER_YWH200 // same as PA168S except different keypad
334 //#define VER_YWH300 // same as PA168S except different keypad
335 -//#define VER_YWH500 // same as PA168S except different keypad
336 +#define VER_YWH500 // same as PA168S except different keypad
337 //#define VER_COSUN // same as PA168S except different keypad
338 //#define VER_TIGER // same as PA168S except different keypad
339 //#define VER_KINGTEL // same as PA168S except different keypad
340 @@ -38,12 +38,12 @@
341 //#define VER_IPLINK // same as PA168T, keypad same as 5111phone
342
343 // Protocols
344 -#define CALL_H323
345 +//#define CALL_H323
346 //#define CALL_SIP
347 //#define CALL_MGCP
348 //#define CALL_N2P
349 //#define CALL_WP
350 -//#define CALL_IAX2
351 +#define CALL_IAX2
352 //#define CALL_EPN
353
354 // Country -- Web page, LCD display, IVR voice and DTMF tone
355 @@ -62,13 +62,13 @@
356 //#define RES_CA_E // Canada (English) ^^^
357 //#define RES_CA_F // Canada (French) *** (web, lcd and ivr use French)
358 //#define RES_CL // Chile (Spanish) *** (web, lcd and ivr use Spain)
359 -#define RES_CN // China (Mandarin) ***
360 +//#define RES_CN // China (Mandarin) ***
361 //#define RES_CZ // Czech Republic *** (ivr use English)
362 //#define RES_DE // Germany ***
363 //#define RES_EG // Egypt
364 //#define RES_ES // Spain ***
365 //#define RES_ES_C // Catalonian (Spain) *** (Dtmf Tone use Spain)
366 -//#define RES_FR // France ***
367 +#define RES_FR // France ***
368 //#define RES_GB // United Kingdom (English) ^^^
369 //#define RES_GR // Greece
370 //#define RES_HK // China HongKong ^^^
371 @@ -101,7 +101,7 @@
372 //#define OEM_MEDIARING
373 //#define OEM_NET2PHONE
374 //#define OEM_NGTEL
375 -//#define OEM_NONE_IVR
376 +#define OEM_NONE_IVR
377 //#define OEM_POLYLINK
378 //#define OEM_RINGCHAT
379 //#define OEM_SKYCOM
380 @@ -464,5 +464,5 @@
381 #define SOFT_VER_LOW 5
382 #define SOFT_VER_BUILD 5
383 #define ENG_BUILD_HIGH 0
384 -#define ENG_BUILD_MID 1
385 -#define ENG_BUILD_LOW 3
386 +#define ENG_BUILD_MID 2
387 +#define ENG_BUILD_LOW 0
388 diff --ignore-file-name-case -ur PALMH323.orig/main/function.c PALMH323/main/function.c
389 --- PALMH323.orig/main/function.c 2006-10-08 11:21:48.000000000 +0000
390 +++ PALMH323/main/function.c 2006-10-31 12:27:21.000000000 +0000
391 @@ -798,14 +798,7 @@
392 #endif
393
394 #ifdef CALL_IAX2
395 - if (p_strlen_x(Key_pBuf))
396 - {
397 - Iax2UnattendedTransfer(Key_pBuf);
398 - }
399 - else
400 - {
401 - Iax2AttendedTransfer();
402 - }
403 + Iax2AttendedTransfer();
404 #endif
405 KeypadClear();
406 }
407 diff --ignore-file-name-case -ur PALMH323.orig/p_apps/lcd_fr.c PALMH323/p_apps/lcd_fr.c
408 --- PALMH323.orig/p_apps/lcd_fr.c 2006-10-08 11:21:50.000000000 +0000
409 +++ PALMH323/p_apps/lcd_fr.c 2006-11-16 16:01:35.000000000 +0000
410 @@ -1,82 +1,82 @@
411 -CCHAR g_cWeekDay[DAYS_PER_WEEK][4] = {"DIM", "LUN", "MAR", "MER", "JEU", "VEN", "SAM"};
412 -CCHAR g_cMonth[MONTHS_PER_YEAR][4] = {"JAN", "FEV", "MAR", "AVR", "MAI", "JUI", "JUL", "AOU", "SEP", "OCT", "NOV", "DEC"};
413 +CCHAR g_cWeekDay[DAYS_PER_WEEK][4] = {"Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam"};
414 +CCHAR g_cMonth[MONTHS_PER_YEAR][4] = {"jan", "fev", "mar", "avr", "mai", "jui", "jul", "aou", "sep", "oct", "nov", "dec"};
415
416 CCHAR g_cPasswordPrompt[] = "Mot de passe:";
417 CCHAR g_cSettings[] = "Configuration";
418
419 CCHAR g_cEnableLabel[] = "1[Activer]";
420 -CCHAR g_cDisableLabel[] = "0[Deactiver]";
421 +CCHAR g_cDisableLabel[] = "0[Desactiver]";
422 CCHAR g_cInvalidLabel[] = "Invalide";
423 -CCHAR g_cSuperLable[] = "Passwd Administ..";
424 +CCHAR g_cSuperLable[] = "MdP Admin.";
425
426 -CCHAR g_cBooting[] = "Booting ...";
427 -CCHAR g_cReady[] = "Pret";
428 -CCHAR g_cLocalIP[] = "IP Locale";
429 -CCHAR g_cSubnetMask[] = "Masque S/ Reseau";
430 -CCHAR g_cRouterIP[] = "Adresse Routeur";
431 -CCHAR g_cServiceIP[] = "Adresse serveur";
432 -CCHAR g_cPhoneNumber[] = "Numero du Poste";
433 -CCHAR g_cMissedCalls[] = "Appels Manques:";
434 -CCHAR g_cAnsweredCalls[] = "Appels Recus:";
435 -CCHAR g_cDialedCalls[] = "Appels Emis:";
436 +CCHAR g_cBooting[] = "Initialisation";
437 +CCHAR g_cReady[] = "Telephone pret !";
438 +CCHAR g_cLocalIP[] = "IP locale";
439 +CCHAR g_cSubnetMask[] = "Masque reseau";
440 +CCHAR g_cRouterIP[] = "IP routeur";
441 +CCHAR g_cServiceIP[] = "IP serveur";
442 +CCHAR g_cPhoneNumber[] = "Numero du poste";
443 +CCHAR g_cMissedCalls[] = "Appels manques:";
444 +CCHAR g_cAnsweredCalls[] = "Appels recus:";
445 +CCHAR g_cDialedCalls[] = "Appels emis:";
446 CCHAR g_cEmpty[] = "Vide";
447 CCHAR g_cMemory[] = "Memoire";
448 -CCHAR g_cSpeedDial[] = "selection Rapide:";
449 +CCHAR g_cSpeedDial[] = "Selection rapide:";
450 CCHAR g_cVolPlus[] = "Vol+";
451 CCHAR g_cVolMinus[] = "Vol-";
452 CCHAR g_cRedial[] = "Bis";
453 CCHAR g_cCall[] = "Appel";
454 -CCHAR g_cCalling[] = "Appel En cours...";
455 -CCHAR g_cRinging[] = "Sonnerie ...";
456 -CCHAR g_cAnswering[] = "Reponse ...";
457 +CCHAR g_cCalling[] = "Appel en cours";
458 +CCHAR g_cRinging[] = "Sonnerie";
459 +CCHAR g_cAnswering[] = "Reponse";
460 CCHAR g_cConnected[] = "Connecte";
461 CCHAR g_cBlank[] = " ";
462 CCHAR g_cFailed[] = "Echoue";
463 -CCHAR g_cHandsetUp[] = "Vol+ Combine";
464 -CCHAR g_cHandsetDown[] = "Vol- Combine";
465 +CCHAR g_cHandsetUp[] = "Vol+ combine";
466 +CCHAR g_cHandsetDown[] = "Vol- combine";
467 CCHAR g_cNetwork[] = "Reseau";
468 CCHAR g_cDHCP[] = "DHCP";
469 CCHAR g_cPPPoE[] = "PPPoE";
470 -CCHAR g_cLogon[] = "Ouverture Session";
471 -CCHAR g_cLogoff[] = "Log Off";
472 -CCHAR g_cUpdating[] = "Mise a jour ...";
473 -CCHAR g_cPleaseWait[] = "Patientez Svp";
474 -CCHAR g_cTestMode[] = "Mode Test ...";
475 +CCHAR g_cLogon[] = "Ouverture session";
476 +CCHAR g_cLogoff[] = "Deconnexion";
477 +CCHAR g_cUpdating[] = "Mise a jour";
478 +CCHAR g_cPleaseWait[] = "Patientez SVP";
479 +CCHAR g_cTestMode[] = "MODE TEST";
480 CCHAR g_cStart[] = "Debut";
481 CCHAR g_cStop[] = "Arret";
482 CCHAR g_cRestart[] = "Redemarrage";
483 CCHAR g_cPercentStart[] = " 0%";
484 CCHAR g_cTimeStart[] = "00:00:00";
485 -CCHAR g_cConnecting[] = "Connexion en cours";
486 -CCHAR g_cDisconnecting[] = "Disconnecting...";
487 +CCHAR g_cConnecting[] = "Connexion ...";
488 +CCHAR g_cDisconnecting[] = "Deconnexion";
489 CCHAR g_cModem[] = "Modem";
490 -CCHAR g_cPeerHangup[] = "Dest: Raccrocher";
491 +CCHAR g_cPeerHangup[] = "Dest. a raccroche";
492 CCHAR g_cPeerBusy[] = "Occupe";
493 -CCHAR g_cCallHold[] = "Appel En Attente";
494 -CCHAR g_cPleaseDial[] = "Numerotez Svp ...";
495 -CCHAR g_cNoAnswer[] = "Pas de Reponse";
496 -CCHAR g_cPeerReject[] = "Dest: Rejet appel";
497 -CCHAR g_cLocalHangup[] = "Dernier Appel:";
498 -CCHAR g_cWaitLogon[] = "Attente D'Acces...";
499 -CCHAR g_cNetworkError[] = "Erreur Reseau";
500 +CCHAR g_cCallHold[] = "Appel en attente";
501 +CCHAR g_cPleaseDial[] = "Numerotez ...";
502 +CCHAR g_cNoAnswer[] = "Pas de reponse";
503 +CCHAR g_cPeerReject[] = "Dst refuse l'appel";
504 +CCHAR g_cLocalHangup[] = "Dernier appel:";
505 +CCHAR g_cWaitLogon[] = "Attente d'acces...";
506 +CCHAR g_cNetworkError[] = "Erreur reseau";
507 CCHAR g_cServiceClearCall[] = "Lib Appel Systeme";
508 -CCHAR g_cPleaseHangup[] = "Raccrochez Svp";
509 -CCHAR g_cCallForward[] = "Renvoie Appel";
510 -CCHAR g_cInvalidNumber[] = "Numero Invalide";
511 -CCHAR g_cUnknownNumber[] = "Numero Inconnu";
512 -CCHAR g_cDuplicateNumber[] = "Numero Duplique";
513 -CCHAR g_cCallRestricted[] = "Appel Restreint";
514 -CCHAR g_cCallTerminated[] = "Call Terminated";
515 -CCHAR g_cRecharge[] = "Recharger Svp";
516 -CCHAR g_cAccountExpired[] = "Compte Expire";
517 -CCHAR g_cInvalidPassword[] = "Passwd Invalide";
518 -CCHAR g_cBlockedNumber[] = "Numero Bloque";
519 -CCHAR g_cDuplicatedIP[] = "Adrs IP Duplique!";
520 -CCHAR g_cCallWaiting[] = "Call Waiting";
521 -CCHAR g_cNewMessage[] = "Message arrive";
522 +CCHAR g_cPleaseHangup[] = "Raccrochez";
523 +CCHAR g_cCallForward[] = "Renvoi";
524 +CCHAR g_cInvalidNumber[] = "Numero invalide";
525 +CCHAR g_cUnknownNumber[] = "Numero inconnu";
526 +CCHAR g_cDuplicateNumber[] = "Numero duplique";
527 +CCHAR g_cCallRestricted[] = "Appel restreint";
528 +CCHAR g_cCallTerminated[] = "Fin d'appel";
529 +CCHAR g_cRecharge[] = "Rechargez SVP";
530 +CCHAR g_cAccountExpired[] = "Compte expire";
531 +CCHAR g_cInvalidPassword[] = "MdP invalide";
532 +CCHAR g_cBlockedNumber[] = "Numero bloque";
533 +CCHAR g_cDuplicatedIP[] = "Adr. IP dupliquee!";
534 +CCHAR g_cCallWaiting[] = "Appel en attente";
535 +CCHAR g_cNewMessage[] = "Messagerie";
536 CCHAR g_cCallTransfer[] = "Transfert";
537 -CCHAR g_cProvisioning[] = "Provisioning";
538 -CCHAR g_cCallMuted[] = "Call Muted";
539 +CCHAR g_cProvisioning[] = "Autoconfig";
540 +CCHAR g_cCallMuted[] = "Silencieux";
541
542 #ifdef CALL_H323
543 CCHAR g_cProtocol[] = "H323";
544 diff --ignore-file-name-case -ur PALMH323.orig/P_IAX2/iax2.c PALMH323/P_IAX2/iax2.c
545 --- PALMH323.orig/P_IAX2/iax2.c 2006-10-08 11:21:52.000000000 +0000
546 +++ PALMH323/P_IAX2/iax2.c 2006-11-10 12:30:58.000000000 +0000
547 @@ -1391,47 +1391,6 @@
548 }
549 }
550
551 - void Iax2UnattendedTransfer(PXCHAR pDstNumber)
552 -{
553 - DCHAR iSession;
554 -
555 - iSession = Iax2_iCallSess[Iax2_iCurCall];
556 - iax2_ie_start();
557 - iax2_ie_add_xstr(IAX_IE_CALLED_NUMBER, pDstNumber);
558 - iax2_session_send_packet(iSession, AST_FRAME_IAX, IAX_COMMAND_TRANSFER, iax2_ie_get_len());
559 -}
560 -
561 - void Iax2AttendedTransfer()
562 -{
563 - DCHAR iAltCall, iAltSession;
564 - DCHAR iSession;
565 -
566 - iAltCall = 1 - Iax2_iCurCall;
567 - if (Iax2_iCallState[Iax2_iCurCall] != IAX_CALL_STATE_CONNECTED || Iax2_iCallState[iAltCall] != IAX_CALL_STATE_CONNECTED)
568 - {
569 - DebugCString((PCCHAR)"No two established calls");
570 - return;
571 - }
572 - iSession = Iax2_iCallSess[Iax2_iCurCall];
573 - iAltSession = Iax2_iCallSess[iAltCall];
574 -
575 - Sess_iTransSession[iSession] = iAltSession;
576 - Sess_iTransState[iSession] = IAX_TRANS_STATE_CONNECTING;
577 - p_rand_array(Sess_pTransferID[iSession], IAX_TRANSFERID_LEN);
578 - Sess_iTransCallNo[iSession] = Sess_iPeerCallNo[iAltSession];
579 - Iax2_iCallState[Iax2_iCurCall] = IAX_CALL_STATE_TRANSFERRING;
580 - iax2_send_txreq(iSession, Sess_iPeerPort[iAltSession], Sess_pPeerIP[iAltSession]);
581 -
582 - Sess_iTransSession[iAltSession] = iSession;
583 - Sess_iTransState[iAltSession] = IAX_TRANS_STATE_CONNECTING;
584 - p_memcpy_x2x(Sess_pTransferID[iAltSession], Sess_pTransferID[iSession], IAX_TRANSFERID_LEN);
585 - Sess_iTransCallNo[iAltSession] = Sess_iPeerCallNo[iSession];
586 - Iax2_iCallState[iAltCall] = IAX_CALL_STATE_TRANSFERRING;
587 - iax2_send_txreq(iAltSession, Sess_iPeerPort[iSession], Sess_pPeerIP[iSession]);
588 -
589 - Task_bCallTransfer = TRUE;
590 -}
591 -
592 void Iax2HandleTimer()
593 {
594 iax2_session_handle_timer();
595 @@ -1559,4 +1518,23 @@
596 }
597 }
598
599 +/* AUF */
600 +
601 + void Iax2_AUF_SendKey(UCHAR iKey) {
602 + DCHAR iKeyID;
603 + XCHAR pKeyBuf[2];
604 +
605 + if (!IsInCall()) return;
606 + if (Task_bCallHold) return;
607 +
608 + iKeyID = iKey;
609 + pKeyBuf[0] = iKeyID;
610 + Iax2SendDtmfKeys(pKeyBuf,1);
611 +}
612 +
613 + void Iax2AttendedTransfer() {
614 + Iax2_AUF_SendKey('*');
615 + Iax2_AUF_SendKey('2');
616 +}
617 +
618
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.