[libpri-commits] rmudgett: branch group/issue14292 r812 - /team/group/issue14292/pri_facility.c
SVN commits to the libpri project
libpri-commits at lists.digium.com
Fri May 22 10:47:39 CDT 2009
Author: rmudgett
Date: Fri May 22 10:47:36 2009
New Revision: 812
URL: http://svn.asterisk.org/svn-view/libpri?view=rev&rev=812
Log:
Bring CCBS/CCNR up-to-date with the new party structures.
Modified:
team/group/issue14292/pri_facility.c
Modified: team/group/issue14292/pri_facility.c
URL: http://svn.asterisk.org/svn-view/libpri/team/group/issue14292/pri_facility.c?view=diff&rev=812&r1=811&r2=812
==============================================================================
--- team/group/issue14292/pri_facility.c (original)
+++ team/group/issue14292/pri_facility.c Fri May 22 10:47:36 2009
@@ -2029,18 +2029,25 @@
msg.operation = cc_request;
msg.invoke_id = get_invokeid(ctrl);
- msg.args.qsig.CcbsRequest.number_a.presentation = 0; /* presentationAllowedNumber */
- msg.args.qsig.CcbsRequest.number_a.number.plan = 1; /* public */
- msg.args.qsig.CcbsRequest.number_a.number.ton = 0; /* unknown */
+ /* numberA is the caller_id.number */
+ msg.args.qsig.CcbsRequest.number_a.presentation = presentation_from_q931(ctrl,
+ call->caller_id.number.presentation, call->caller_id.number.str[0]);
+ msg.args.qsig.CcbsRequest.number_a.number.plan = numbering_plan_from_q931(ctrl,
+ call->caller_id.number.plan);
+ msg.args.qsig.CcbsRequest.number_a.number.ton = typeofnumber_from_q931(ctrl,
+ call->caller_id.number.plan);
libpri_copy_string((char *) msg.args.qsig.CcbsRequest.number_a.number.str,
- call->callernum, sizeof(msg.args.qsig.CcbsRequest.number_a.number.str));
+ call->caller_id.number.str, sizeof(msg.args.qsig.CcbsRequest.number_a.number.str));
msg.args.qsig.CcbsRequest.number_a.number.length = strlen((char *)
msg.args.qsig.CcbsRequest.number_a.number.str);
- msg.args.qsig.CcbsRequest.number_b.plan = 1; /* public */
- msg.args.qsig.CcbsRequest.number_b.ton = 0; /* unknown */
- libpri_copy_string((char *) msg.args.qsig.CcbsRequest.number_b.str, call->callednum,
- sizeof(msg.args.qsig.CcbsRequest.number_b.str));
+ /* numberB is the called_number */
+ msg.args.qsig.CcbsRequest.number_b.plan = numbering_plan_from_q931(ctrl,
+ call->called_number.plan);
+ msg.args.qsig.CcbsRequest.number_b.ton = typeofnumber_from_q931(ctrl,
+ call->called_number.plan);
+ libpri_copy_string((char *) msg.args.qsig.CcbsRequest.number_b.str,
+ call->called_number.str, sizeof(msg.args.qsig.CcbsRequest.number_b.str));
msg.args.qsig.CcbsRequest.number_b.length = strlen((char *)
msg.args.qsig.CcbsRequest.number_b.str);
More information about the libpri-commits
mailing list