hello, all of users:
I have implemented cha_ss7 in china. initially, the chan_ss7 can not support 
the call group. i modify the code. now the problem is that, both sides can hear 
the ring, but i can not hear the voice from each other. 
i think the ss7 does not send the voice steam to the destination. 
in chan_ss7, i added:

 static struct ss7_chan *cic_hunt_even_mru(struct linkset* linkset) {
  struct ss7_chan *cur, *prev, *best, *best_prev;

  best = NULL;
  best_prev = NULL;

  for(cur = linkset->idle_list, prev = NULL; cur != NULL; prev = cur, cur = 
cur->next_idle) {
    /* Don't select lines that are resetting or blocked. */
    if(!cur->reset_done || (cur->blocked & 
(BL_LH|BL_RM|BL_RH|BL_UNEQUIPPED|BL_LINKDOWN))) {
      continue;
    }
/* if((cur->cic % 2) == 0) {  */
/*change to this*/
if(((cur->cic % 2) == 0)&&0==strcasecmp(cur->link->name,linkname)) {
      /* Choose the first idle even circuit, if any. */
/*end of change*/      
best = cur;
      best_prev = prev;
      break;
    } else if(best == NULL) {
      /* Remember the first odd circuit, in case no even circuits are
         available. */
      best = cur;
      best_prev = prev;
    }
  }

cic_hunt_even_mru  if(((cur->cic % 2) == 
0)&&0==strcasecmp(cur->link->name,linkname)) {
my environment is:
asterisk-1.4.20
chan_ss7-1.0.91
Openvox D410P
===========================
anyone has an idea for the problem?
please give me some hints!
thanks!
james.zhu


      

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-ss7 mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-ss7

Reply via email to