Closed jesusQuintana-30-2017 closed 4 years ago
Hola Jesus como estas, mira en tu archivo de implementacion puedes buscar el metodo onSipEventStack ahi entras en un case case 'i_new_call' realizas el auto-answer, esta seria la implementacion para tu codigo:
`function onSipEventStack(e ) { switch (e.type) {
case 'i_new_call': { if (oSipSessionCall) { e.newSession.hangup(); // comment this line for multi-line support }else{ oSipSessionCall = e.newSession; oSipSessionCall.setConfiguration(oConfigCall); var sRemoteNumber = (oSipSessionCall.getRemoteFriendlyName() || 'unknown'); oSipSessionCall.accept(oConfigCall); // en esta linea abres la linea y contestas la llamada. } } } }`
Si necesitas mas detalles de la implementacion me avisas, pero en terminos generales yo lo tengo asi como te lo puse aca y funciona muy bien en un ambiente de produccion, obviamente puedes ir mas alla y agregar en tu plan de marcacion un header que te indique si se debe autocontestar o no y dependiendo de eso disparas el accept.
Felicidades y exito en tu implementacion
gracias David ya resolví el tema gracias por tu ayuda.
El lun., 9 sept. 2019 a las 21:59, David Andrade (notifications@github.com) escribió:
Hola Jesus como estas, mira en tu archivo de implementacion puedes buscar el metodo onSipEventStack ahi entras en un case case 'i_new_call' realizas el auto-answer, esta seria la implementacion para tu codigo:
`function onSipEventStack(e ) { switch (e.type) {
case 'i_new_call': { if (oSipSessionCall) { e.newSession.hangup(); // comment this line for multi-line support }else{ oSipSessionCall = e.newSession; oSipSessionCall.setConfiguration(oConfigCall); var sRemoteNumber = (oSipSessionCall.getRemoteFriendlyName() || 'unknown'); oSipSessionCall.accept(oConfigCall); // en esta linea abres la linea y contestas la llamada. } } } }`
Si necesitas mas detalles de la implementacion me avisas, pero en terminos generales yo lo tengo asi como te lo puse aca y funciona muy bien en un ambiente de produccion, obviamente puedes ir mas alla y agregar en tu plan de marcacion un header que te indique si se debe autocontestar o no y dependiendo de eso disparas el accept.
Felicidades y exito en tu implementacion
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/DoubangoTelecom/sipml5/issues/332?email_source=notifications&email_token=AHZ33UKCO5WMV6K6AR476TDQI4EPRA5CNFSM4IVAWZSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6JU6BA#issuecomment-529747716, or mute the thread https://github.com/notifications/unsubscribe-auth/AHZ33UNXV73QKSS2RZPUFJTQI4EPRANCNFSM4IVAWZSA .
David, youre a real MVP here 😁 Thanks, I was thinking about this auto-respond too.
Regards
Andy Moser
Von meinem Smartphone gesendet
On 10 Sep 2019, at 18:35, jesusQuintana-30-2017 notifications@github.com wrote:
gracias David ya resolví el tema gracias por tu ayuda.
El lun., 9 sept. 2019 a las 21:59, David Andrade (notifications@github.com) escribió:
Hola Jesus como estas, mira en tu archivo de implementacion puedes buscar el metodo onSipEventStack ahi entras en un case case 'i_new_call' realizas el auto-answer, esta seria la implementacion para tu codigo:
`function onSipEventStack(e ) { switch (e.type) {
case 'i_new_call': { if (oSipSessionCall) { e.newSession.hangup(); // comment this line for multi-line support }else{ oSipSessionCall = e.newSession; oSipSessionCall.setConfiguration(oConfigCall); var sRemoteNumber = (oSipSessionCall.getRemoteFriendlyName() || 'unknown'); oSipSessionCall.accept(oConfigCall); // en esta linea abres la linea y contestas la llamada. } } } }`
Si necesitas mas detalles de la implementacion me avisas, pero en terminos generales yo lo tengo asi como te lo puse aca y funciona muy bien en un ambiente de produccion, obviamente puedes ir mas alla y agregar en tu plan de marcacion un header que te indique si se debe autocontestar o no y dependiendo de eso disparas el accept.
Felicidades y exito en tu implementacion
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/DoubangoTelecom/sipml5/issues/332?email_source=notifications&email_token=AHZ33UKCO5WMV6K6AR476TDQI4EPRA5CNFSM4IVAWZSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6JU6BA#issuecomment-529747716, or mute the thread https://github.com/notifications/unsubscribe-auth/AHZ33UNXV73QKSS2RZPUFJTQI4EPRANCNFSM4IVAWZSA .
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
i need the autoanwer for operation un callcenter the agent are "peresosos"