[Moziax] Feedback

Jean-Denis Girard jd.girard at sysnux.pf
Mon Jul 10 09:35:20 EDT 2006


Scott Gifford a écrit :
> 
> Here's the copy I've been using with good success:
> 
>     http://www.suspectclass.com/~sgifford/idefisk-iaxclient/iaxclient_r36_source.zip
> 
> I ran a quick diff against the CVS version, and there were a lot of
> differences; I haven't had time to look any further than that.


OK the important part is in libiax2; I made the following changes to 
libiaxclient-mihai, and I can now use qualify without INVAL from Asterisk.

I'll try releasing a new version of MozPhone soon, but if you may want 
to try the following patch before. I will also submit to iaxclient.

Thanks,
Jean-Denis


[jdg at taina libiax2]$ svn diff
Index: src/iax-client.h
===================================================================
--- src/iax-client.h    (révision 586)
+++ src/iax-client.h    (copie de travail)
@@ -77,6 +77,7 @@
  #define IAX_EVENT_REGREJ  30           /* Registration reply */
  #define IAX_EVENT_LINKURL      31              /* Unlink */
  #define IAX_EVENT_CNG  32              /* Comfort-noise (almost 
silence) */
+#define IAX_EVENT_POKE   33

  /* moved from iax.c to support attended transfer */
  #define IAX_EVENT_REREQUEST    999
Index: src/iax.c
===================================================================
--- src/iax.c   (révision 586)
+++ src/iax.c   (copie de travail)
@@ -1509,6 +1509,13 @@
                                 iax_send_pong(event->session, event->ts);
                                 iax_event_free(event);
                                 break;
+                       case IAX_EVENT_POKE:
+                               event->etype = IAX_EVENT_PONG;
+                               iax_send_pong(event->session, event->ts);
+                               destroy_session(event->session);
+                               iax_event_free(event);
+                               break;
+
                         default:
                                 return event;
                         }
@@ -2580,8 +2587,11 @@
                                 e->ts = ts;
                                 e = schedule_delivery(e, ts, 
updatehistory);
                                 break;
+                       case IAX_COMMAND_POKE:
+                               e->etype = IAX_EVENT_POKE;
+                               e->ts = ts;
+                               break;
                         case IAX_COMMAND_PING:
-                       case IAX_COMMAND_POKE:
                                 /* PINGS and PONGS don't get scheduled; */
                                 e->etype = IAX_EVENT_PING;
                                 e->ts = ts;


More information about the Moziax mailing list