Hi All,

I added the following patch to the asterisk-1.2-disconnect patch to let asterisk disconnect incoming calls via pstn(hfc-pci TE-mode). Before calling the asterisk e.g. into demo asterisk continued playing audio even if the caller hungup. And finished line later on with an frame writing error. I don't know If it's correct so please check it - at least for me it seems to work.


diff -ur asterisk-1.2.1/file.c asterisk-1.2.1-dri/file.c
--- asterisk-1.2.1/file.c       2006-01-09 23:07:26.000000000 +0100
+++ asterisk-1.2.1-dri/file.c   2006-05-25 21:48:14.000000000 +0200
@@ -1025,6 +1025,12 @@
                                        return -1;
                                case AST_CONTROL_RINGING:
                                case AST_CONTROL_ANSWER:
+                               case AST_CONTROL_INBAND_INFO:
+                                       ast_frfree(fr);
+                                       return -1;
+                               case AST_CONTROL_DISCONNECT:
+                                       ast_frfree(fr);
+                                       return -1;
                                case AST_CONTROL_VIDUPDATE:
                                        /* Unimportant */
                                        break;

_______________________________________________
Visdn-hackers mailing list
[email protected]
https://mailman.uli.it/mailman/listinfo/visdn-hackers

Reply via email to