jroper wrote:
Hi
This all sounds doable, but you may have to do some work with the Asterisk Dialplan to set the right variables in the right places, or it may just work out of the box - check and see what happens, and let us know.
Joe
Joe,
Thanks for the reply. This pretty cut and dry if it is in a typical call routing within the Asterisk dial plan
;--- 1+ LD Terminate to Global Crossing ---
exten => _1NXXNXXXXXX,1,NoOp("LCR 1+ to GBLX NY & LA")
exten => _1NXXNXXXXXX,n,Set(CALLERID(name)=)
exten => _1NXXNXXXXXX,n,Dial(SIP/${EXTEN}@GBLX_NY)
exten => _1NXXNXXXXXX,n,Dial(SIP/${EXTEN}@GBLX_LA)
exten => _1NXXNXXXXXX,n,Congestion
exten => _1NXXNXXXXXX,n,Hangup
The above code is how I handle calls originate from customer and turn around to route is out based on the DNIS that was send over PRI signalling.
The above configuration is typical wholesale Origination and Termination, which is the basic function of a Tandem switch.
From my understanding there are 2 ways to invoke the scripts.
;#1
[did]
; DID routing application ???
exten => _X.,1,AGI(a2billing.php,1,did)
;#2
[card]
; CallingCard application
exten => _X.,n,AGI(a2billing.php,1)
I would appreciate if you could explain the logic on how the A2bill script handle the "did" parameter, how can one invoke A2bill to route the call based on the DID to a vendor trunk without asking the user the destination they wish to call.
Does this works if I assign the variable "did" to the inbound DNIS (destination dial number) and invoke the A2Bill script to route based on the set "did" value ?
[did_routing]
; DID routing application ???
exten => _X.,1,NoOp("Set the DNIS for A2bill routing")
exten => _X.,n,Set(did=${EXTEN})
exten => _X.,n,AGI(a2billing.php,1,did)
I will gladly purchase support hour from Star2Bill in implementing the above. Let me know if you're game for it.
Thank you very much.