[Freeswitch-users] openzap / dialplan / Sangoma A204 questions

John Wehle john at feith.com
Tue Jul 1 18:29:42 PDT 2008


> Can you try upgrading to the latest svn build of FS.
> There are several fixes to openzap in there that I know will fix your issue.

Yes, that works much better.  A couple minor changes required so the
openzap code would compile on FreeBSD 6.2:

  a) The header for select needed to be included.

  b) A comment needed to be fixed.

I'm now able to dial out through the fxo as well as have incoming calls
answered.

What would my dialplan look like so that dialing 551 just bridges the
call to the tip ring line from the PBX?  I.e. dialing 551 gets me a
PBX dialtone without actually dialing an extension on the PBX.

-- John
-----------------------8<-----------------------8<-----------------------
*** libs/openzap/src/include/openzap.h.ORIGINAL	Tue Jul  1 19:07:52 2008
--- libs/openzap/src/include/openzap.h	Tue Jul  1 19:20:12 2008
***************
*** 127,132 ****
--- 127,133 ----
  #include <strings.h>
  #endif
  #include <assert.h>
+ #include <sys/select.h>
  #include "zap_types.h"
  #include "hashtable.h"
  #include "zap_config.h"
*** libs/openzap/src/isdn/Q931.c.ORIGINAL	Tue Jul  1 19:07:51 2008
--- libs/openzap/src/isdn/Q931.c	Tue Jul  1 19:17:25 2008
***************
*** 346,352 ****
  	/* Protocol Discriminator */
      m->ProtDisc = Mes[IOff++];
  
!     /* CRV */add 
      m->CRVFlag = Mes[IOff + 1] & 0x80;
      m->CRV = Q931Uie_CRV(pTrunk, Mes, m->buf, &IOff, &ISize);
  
--- 346,352 ----
  	/* Protocol Discriminator */
      m->ProtDisc = Mes[IOff++];
  
!     /* CRV add */
      m->CRVFlag = Mes[IOff + 1] & 0x80;
      m->CRV = Q931Uie_CRV(pTrunk, Mes, m->buf, &IOff, &ISize);
  
-------------------------------------------------------------------------
|   Feith Systems  |   Voice: 1-215-646-8000  |  Email: john at feith.com  |
|    John Wehle    |     Fax: 1-215-540-5495  |                         |
-------------------------------------------------------------------------





More information about the FreeSWITCH-users mailing list