Changeset 580
- Timestamp:
- 02/04/08 16:13:02 (10 months ago)
- Files:
-
- branches/1.3/A2Billing_AGI/a2billing.php (modified) (5 diffs)
- trunk/A2Billing_AGI/a2billing.php (modified) (5 diffs)
- trunk_v2/A2Billing_AGI/a2billing.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.3/A2Billing_AGI/a2billing.php
r466 r580 54 54 } 55 55 56 56 if($dynamic_idconfig = intval($agi->get_variable("IDCONF", true))){ 57 $idconfig = $dynamic_idconfig; 58 } 57 59 58 60 if ($argc > 2 && strlen($argv[2]) > 0 && $argv[2] == 'did') $mode = 'did'; … … 417 419 $A2B->agiconfig['cid_enable']=1; 418 420 $A2B->agiconfig['cid_askpincode_ifnot_callerid']=0; 421 $A2B->agiconfig['say_balance_after_auth']=0; 419 422 420 423 if (strlen($A2B->CallerID)>1 && is_numeric($A2B->CallerID)) { … … 504 507 505 508 $uniqueid = MDP_NUMERIC(5).'-'.MDP_STRING(7); 506 $variable = " CALLED=".$A2B ->destination."|MODE=CID|CBID=$uniqueid|LEG=".$A2B -> username;509 $variable = "IDCONF=$idconfig|CALLED=".$A2B ->destination."|MODE=CID|CBID=$uniqueid|LEG=".$A2B -> username; 507 510 foreach($callbackrate as $key => $value){ 508 511 $variable .= '|'.strtoupper($key).'='.$value; … … 577 580 $A2B ->agiconfig['use_dnid']=1; 578 581 $A2B ->agiconfig['say_timetocall']=0; 582 $A2B ->agiconfig['say_balance_after_auth']=0; 579 583 $A2B ->dnid = $A2B ->destination = $caller_areacode.$A2B->CallerID; 580 584 … … 643 647 644 648 $uniqueid = MDP_NUMERIC(5).'-'.MDP_STRING(7); 645 $variable = " CALLED=".$A2B ->destination."|MODE=ALL|CBID=$uniqueid|TARIFF=".$A2B ->tariff.'|LEG='.$A2B -> username;649 $variable = "IDCONF=$idconfig|CALLED=".$A2B ->destination."|MODE=ALL|CBID=$uniqueid|TARIFF=".$A2B ->tariff.'|LEG='.$A2B -> username; 646 650 647 651 $status = 'PENDING'; trunk/A2Billing_AGI/a2billing.php
r551 r580 54 54 } 55 55 56 56 if($dynamic_idconfig = intval($agi->get_variable("IDCONF", true))){ 57 $idconfig = $dynamic_idconfig; 58 } 57 59 58 60 if ($argc > 2 && strlen($argv[2]) > 0 && $argv[2] == 'did') $mode = 'did'; … … 416 418 $A2B->agiconfig['cid_enable']=1; 417 419 $A2B->agiconfig['cid_askpincode_ifnot_callerid']=0; 420 $A2B->agiconfig['say_balance_after_auth']=0; 418 421 419 422 if (strlen($A2B->CallerID)>1 && is_numeric($A2B->CallerID)) { … … 503 506 504 507 $uniqueid = MDP_NUMERIC(5).'-'.MDP_STRING(7); 505 $variable = " CALLED=".$A2B ->destination."|MODE=CID|CBID=$uniqueid|LEG=".$A2B -> username;508 $variable = "IDCONF=$idconfig|CALLED=".$A2B ->destination."|MODE=CID|CBID=$uniqueid|LEG=".$A2B -> username; 506 509 foreach($callbackrate as $key => $value){ 507 510 $variable .= '|'.strtoupper($key).'='.$value; … … 576 579 $A2B ->agiconfig['use_dnid']=1; 577 580 $A2B ->agiconfig['say_timetocall']=0; 581 $A2B ->agiconfig['say_balance_after_auth']=0; 578 582 $A2B ->dnid = $A2B ->destination = $caller_areacode.$A2B->CallerID; 579 583 … … 642 646 643 647 $uniqueid = MDP_NUMERIC(5).'-'.MDP_STRING(7); 644 $variable = " CALLED=".$A2B ->destination."|MODE=ALL|CBID=$uniqueid|TARIFF=".$A2B ->tariff.'|LEG='.$A2B -> username;648 $variable = "IDCONF=$idconfig|CALLED=".$A2B ->destination."|MODE=ALL|CBID=$uniqueid|TARIFF=".$A2B ->tariff.'|LEG='.$A2B -> username; 645 649 646 650 $status = 'PENDING'; trunk_v2/A2Billing_AGI/a2billing.php
r551 r580 54 54 } 55 55 56 56 if($dynamic_idconfig = intval($agi->get_variable("IDCONF", true))){ 57 $idconfig = $dynamic_idconfig; 58 } 57 59 58 60 if ($argc > 2 && strlen($argv[2]) > 0 && $argv[2] == 'did') $mode = 'did'; … … 416 418 $A2B->agiconfig['cid_enable']=1; 417 419 $A2B->agiconfig['cid_askpincode_ifnot_callerid']=0; 420 $A2B->agiconfig['say_balance_after_auth']=0; 418 421 419 422 if (strlen($A2B->CallerID)>1 && is_numeric($A2B->CallerID)) { … … 503 506 504 507 $uniqueid = MDP_NUMERIC(5).'-'.MDP_STRING(7); 505 $variable = " CALLED=".$A2B ->destination."|MODE=CID|CBID=$uniqueid|LEG=".$A2B -> username;508 $variable = "IDCONF=$idconfig|CALLED=".$A2B ->destination."|MODE=CID|CBID=$uniqueid|LEG=".$A2B -> username; 506 509 foreach($callbackrate as $key => $value){ 507 510 $variable .= '|'.strtoupper($key).'='.$value; … … 576 579 $A2B ->agiconfig['use_dnid']=1; 577 580 $A2B ->agiconfig['say_timetocall']=0; 581 $A2B ->agiconfig['say_balance_after_auth']=0; 578 582 $A2B ->dnid = $A2B ->destination = $caller_areacode.$A2B->CallerID; 579 583 … … 642 646 643 647 $uniqueid = MDP_NUMERIC(5).'-'.MDP_STRING(7); 644 $variable = " CALLED=".$A2B ->destination."|MODE=ALL|CBID=$uniqueid|TARIFF=".$A2B ->tariff.'|LEG='.$A2B -> username;648 $variable = "IDCONF=$idconfig|CALLED=".$A2B ->destination."|MODE=ALL|CBID=$uniqueid|TARIFF=".$A2B ->tariff.'|LEG='.$A2B -> username; 645 649 646 650 $status = 'PENDING';
