Review Board 1.7.16


sync chan_dahdi->p->outgoing with sig_XXX->p-outgoing

Review Request #1747 - Created Feb. 15, 2012 and submitted

Alec Davis
1.8 and above
Reviewers
asterisk-dev
Asterisk
Jeremy Pepper review https://reviewboard.asterisk.org/r/1737/ highlighted an issue where p->outgoing flag isn't in sync between chan_dahdi and sig_analog
sig_analog: Basic calls in and out with analog TDM800P
sig_pri and sig_ss7: compiles

Diff revision 1

This is not the most recent revision of the diff. The latest diff is revision 5. See what's changed.

1 2 3 4 5
1 2 3 4 5

  1. trunk/channels/chan_dahdi.c: Loading...
  2. trunk/channels/sig_analog.h: Loading...
  3. trunk/channels/sig_analog.c: Loading...
trunk/channels/chan_dahdi.c
Revision 353434 New Change
[20] 2274 lines
[+20] [+] static void my_set_dialing(void *pvt, int is_dialing)
2275
	struct dahdi_pvt *p = pvt;
2275
	struct dahdi_pvt *p = pvt;
2276

    
   
2276

   
2277
	p->dialing = is_dialing;
2277
	p->dialing = is_dialing;
2278
}
2278
}
2279

    
   
2279

   

    
   
2280
static void my_set_outgoing(void *pvt, int is_outgoing)

    
   
2281
{

    
   
2282
	struct dahdi_pvt *p = pvt;

    
   
2283

   

    
   
2284
	ast_log(LOG_WARNING, "ALEC p->outgoing(%d) = %d\n", p->outgoing, is_outgoing);

    
   
2285
	p->outgoing = is_outgoing;

    
   
2286
}

    
   
2287

   
2280
#if defined(HAVE_PRI) || defined(HAVE_SS7)
2288
#if defined(HAVE_PRI) || defined(HAVE_SS7)
2281
static void my_set_digital(void *pvt, int is_digital)
2289
static void my_set_digital(void *pvt, int is_digital)
2282
{
2290
{
2283
	struct dahdi_pvt *p = pvt;
2291
	struct dahdi_pvt *p = pvt;
2284

    
   
2292

   
[+20] [20] 1391 lines
[+20] [+] static struct analog_callback dahdi_analog_callbacks =
3676
	.get_sigpvt_bridged_channel = my_get_sigpvt_bridged_channel,
3684
	.get_sigpvt_bridged_channel = my_get_sigpvt_bridged_channel,
3677
	.get_sub_fd = my_get_sub_fd,
3685
	.get_sub_fd = my_get_sub_fd,
3678
	.set_cadence = my_set_cadence,
3686
	.set_cadence = my_set_cadence,
3679
	.set_alarm = my_set_alarm,
3687
	.set_alarm = my_set_alarm,
3680
	.set_dialing = my_set_dialing,
3688
	.set_dialing = my_set_dialing,

    
   
3689
	.set_outgoing = my_set_outgoing,
3681
	.set_ringtimeout = my_set_ringtimeout,
3690
	.set_ringtimeout = my_set_ringtimeout,
3682
	.set_waitingfordt = my_set_waitingfordt,
3691
	.set_waitingfordt = my_set_waitingfordt,
3683
	.check_waitingfordt = my_check_waitingfordt,
3692
	.check_waitingfordt = my_check_waitingfordt,
3684
	.set_confirmanswer = my_set_confirmanswer,
3693
	.set_confirmanswer = my_set_confirmanswer,
3685
	.check_confirmanswer = my_check_confirmanswer,
3694
	.check_confirmanswer = my_check_confirmanswer,
[+20] [20] 15275 lines
trunk/channels/sig_analog.h
Revision 353434 New Change
 
trunk/channels/sig_analog.c
Revision 353434 New Change
 
  1. trunk/channels/chan_dahdi.c: Loading...
  2. trunk/channels/sig_analog.h: Loading...
  3. trunk/channels/sig_analog.c: Loading...

https://reviewboard.asterisk.org/ runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to asteriskteam@digium.com.