Hi All, I am still working on an TAPI solution for my customer. They are trying to connect Asterisk to Navision.
I am using the Activa TSP and an TAPI connector for Navision. When a customer calls I use the following rule: exten => s,n,Dial(LOCAL/11&LOCAL/991013,25,tTr) 991013 is an extension that waits 10 seconds and then dials the number 13. This results in a couple of TAPI lines in the logfile: Contactscherm gecontroleerd Pickedup Incomming Date Time Last External No. Caller ID Caller ID Name Called ID Direction Duration (Sec.) State External Entry No. Key local Partner ID Partner ID Name Lokale ID Lokale ID Name Bezug Bemerkung User Nee Nee Nee 20-06-2008 14:46:59 442072530221 442072530221 Onbekend Nummer 11 in 0,84 connected Ja 3416 A44816B9922F4B728DB121BE274EF7E0 442072530221 11 MyMSN 11 SUPER Nee Ja Nee 20-06-2008 14:46:59 442072530221 442072530221 Onbekend Nummer 11 in 0,84 connected Ja 3415 A44816B9922F4B728DB121BE274EF7E0 442072530221 11 MyMSN 11 SUPER Nee Nee Nee 20-06-2008 14:47:09 442072530221 442072530221 Onbekend Nummer 13 in 1,19 connected Ja 3414 2AC0A7B110DB43CCA57C793DEF7E127E 442072530221 13 13 SUPER Nee Ja Nee 20-06-2008 14:47:09 442072530221 442072530221 Onbekend Nummer 13 in 1,19 connected Ja 3413 2AC0A7B110DB43CCA57C793DEF7E127E 442072530221 13 13 SUPER Nee Nee Nee 20-06-2008 14:47:00 442072530221 442072530221 Onbekend Nummer 12 in 0,84 connected Ja 3412 7636F7BB09BF46D88F25E412434B79A4 442072530221 12 MyMSN 12 SUPER Nee Ja Nee 20-06-2008 14:46:59 442072530221 442072530221 Onbekend Nummer 11 in 0,05 connected Ja 3411 A44816B9922F4B728DB121BE274EF7E0 442072530221 11 MyMSN 11 SUPER Nee Nee Ja 20-06-2008 14:47:09 442072530221 442072530221 Onbekend Nummer 13 in 0 not connected Ja 3410 2AC0A7B110DB43CCA57C793DEF7E127E 442072530221 SUPER As you can see all the lines are logged as connected but this is not actually the case, in this test only the number 11 has picked up the call. The 11 and 13 extension look like this: exten => 11,1,Macro(bel) I use the following macros to send TAPI events, but it does not seem to work: [macro-bel] exten => s,1,UserEvent(TAPI|TAPIEVENT: LINE_NEWCALL ${MACRO_EXTEN}) exten => s,n,UserEvent(TAPI|TAPIEVENT: LINE_CALLSTATE LINECALLSTATE_OFFERING) exten => s,n,UserEvent(TAPI|TAPIEVENT: SET CALLERID ${CALLERID}) exten => s,n,UserEvent(TAPI|TAPIEVENT: LINE_CALLINFO LINECALLINFOSTATE_CALLERID) exten => s,n,Dial(SCCP/${MACRO_EXTEN}/ringer=outside,3600,rtM(tapi^ ${UNIQUEID}|${MACRO_EXTEN})) exten => s,n,Goto(s-${DIALSTATUS},1) exten => s-NOANSWER,n,UserEvent(TAPI|TAPIEVENT: [~${UNIQUEID}&! ${MACRO_EXTEN}] LINE_CALLSTATE LINECALLSTATE_HANGUP) exten => s-BUSY,n,UserEvent(TAPI|TAPIEVENT: [~${UNIQUEID}&! ${MACRO_EXTEN}] LINE_CALLSTATE LINECALLSTATE_HANGUP) exten => s-.,1,Goto(s-NOANSWER,1) [macro-tapi]; exten => s,1,UserEvent(TAPI|TAPIEVENT: [~${ARG1}&${ARG2}] LINE_CALLSTATE LINECALLSTATE_CONNECTED) exten => s,2,UserEvent(TAPI|TAPIEVENT: [~${ARG1}&!${ARG2}] LINE_CALLSTATE LINECALLSTATE_HANGUP) Could someone shine a light on this? Kind regards, Gert-Jan de Boer
_______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2008 - September 22 - 25 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users