Review Board 1.7.16


Add ISDN Calling and Called Subaddress support functions to LIBPRI

Review Request #406 - Created Oct. 14, 2009 and submitted

Alec Davis
15604
Reviewers
asterisk-dev
mattf, rmudgett
LibPRI
Further Libpri support for subaddress, previously LIBPRI only supported receiving Calling Subaddress.

The first intentions of this are to add Transmit and Receive capabilites for Calling Subaddress and Called Subaddress.

Calling, Called, Connected and Redirecting Subaddress, now correctly supports User Specific type and the default NSAP.

Redirection and Redirecting Subaddress have been identified, but will come later.

 

Changes between revision 1 and 2

1 2 3 4 5 6 7
1 2 3 4 5 6 7

  1. /team/rmudgett/subaddr/pri.c: Loading...
  2. /team/rmudgett/subaddr/q931.c: Loading...
/team/rmudgett/subaddr/pri.c
Diff Revision 1 Diff Revision 2
This file contains only whitespace changes.
[20] 1256 lines
[+20] [+] void pri_sr_set_caller_party(struct pri_sr *sr, const struct pri_party_id *caller)
1257
	pri_copy_party_id_to_q931(&sr->caller, caller);
1257
	pri_copy_party_id_to_q931(&sr->caller, caller);
1258
}
1258
}
1259

    
   
1259

   
1260
void pri_sr_set_calling_subaddress(struct pri_sr *sr, const struct pri_party_subaddress *subaddress)
1260
void pri_sr_set_calling_subaddress(struct pri_sr *sr, const struct pri_party_subaddress *subaddress)
1261
{
1261
{
1262
	pri_copy_party_subaddress_to_q931(&sr->caller.subaddress, subaddress); 
1262
	pri_copy_party_subaddress_to_q931(&sr->caller.subaddress, subaddress);
1263
}
1263
}
1264

    
   
1264

   
1265
void pri_sr_set_called_subaddress(struct pri_sr *sr, const struct pri_party_subaddress *subaddress)
1265
void pri_sr_set_called_subaddress(struct pri_sr *sr, const struct pri_party_subaddress *subaddress)
1266
{
1266
{
1267
	pri_copy_party_subaddress_to_q931(&sr->called.subaddress, subaddress); 
1267
	pri_copy_party_subaddress_to_q931(&sr->called.subaddress, subaddress);
1268
}
1268
}
1269

    
   
1269

   
1270
int pri_sr_set_redirecting(struct pri_sr *sr, char *num, int plan, int pres, int reason)
1270
int pri_sr_set_redirecting(struct pri_sr *sr, char *num, int plan, int pres, int reason)
1271
{
1271
{
1272
	q931_party_redirecting_init(&sr->redirecting);
1272
	q931_party_redirecting_init(&sr->redirecting);
[+20] [20] 41 lines
/team/rmudgett/subaddr/q931.c
Diff Revision 1 Diff Revision 2
 
  1. /team/rmudgett/subaddr/pri.c: Loading...
  2. /team/rmudgett/subaddr/q931.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.