vulcan wrote:
first,
Instead of creating a test DID 7777 and going in a circle. Delete that and send the call directly to the calling card context.
sip.conf
[8000]
defaultuser=
secret=
canreinvite=yes
context=callingcard
type=friend
nat=
disallow=all
allow=ulaw
Ok, here, may have reason, even it's just for testing...but done
Quote:
exntensions.conf
[callingcard]
exten => _X.,n,Wait(1)
exten => _X.,n,AGI(a2billing.php,1)
exten => _X.,n,Wait(1)
exten => _X.,n,Hangup()
This is the Unique which i changed, i had this:
Quote:
[callingcard]
exten => _X.,1,NoOp(A2Billing Start)
exten => _X.,n,Agi(a2billing.php,1)
exten => _X.,n,Hangup()
And I change it but what do you propose, but giving the wait priority 1.
Quote:
If and when you want to use a real DID, you would NOT define it in A2b but in Asterisk then let Asterisk direct it to the calling card context.
[from-pstn]
exten => 18665554444,1,Goto(callingcard,${EXTEN},1)
I had this:
Quote:
exten => 9510000000,1,Dial(local/${EXTEN}@callingcard)
So, just after modifying the dialplan, and change the dial by goto, it seem to be working..!! Strange, where's the different between dial and goto in the dialpan, it's the same, no?? Or even, the wait application...
No idea, but with this changes i just placed calls for the calling card application, all are properly billed and correct!! Strange... I can't explain it to myself
Quote:
Second,
Code:
dialcommand_param = ,60,LIW(%TIMEOUT(absolute)=3600%:60000:30000)
make no sense to A2B or asterisk.
A2B is expecting formats such as:
Code:
|60|HiL(%timeout%:61000:30000)
|60|HiL(%timeoutsec%:61000:30000)
|60|HiL(36000000:61000:30000)
Asterisk expecting this:
Code:
|60|HiL(36000000:61000:30000)
After experiences, we had to impose several restrictions, as using the timeout absolute, to avoid negative balance with large calls duration, avoid call transfer in the dialcommand, and elsewhere...
But, as i said, without touching the dialcommand, just modifying the dialplan, it's working and billing properly....
I'm really wondering, as i know, Goto and dial have equal and similar functions...
Thanks again, really for BOTH
Regards,