Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Sun Sep 20, 2020 1:41 am
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Please help using AGI and PHP
PostPosted: Sat Mar 17, 2012 5:58 am 
Offline

Joined: Sat Mar 17, 2012 5:52 am
Posts: 1
I was stupid to write a script to write each sip peer for a2billing account at the below.
Can't I write multiple context once sip peer on a2billing account? because now i create a new sip peer & need to write a new context for the sip peer, isn't that possible...
[7000]
exten => _7XXX,1,NoOp(CLI:${CALLERID(num)} DNID:${CALLERID(dnid)})
exten => _7XXX,2,Dial(SIP/${EXTEN})
exten => _7XXX,3,Hangup()
exten => _00852ZX.,1,NoOp(CLI:${CALLERID(num)} DNID:${CALLERID(dnid)})
exten => _00852ZX.,2,Dial(SIP/HKPSTN/852${EXTEN:5})
exten => _00852ZX.,3,Hangup()
exten => _852ZX.,1,NoOp(CLI:${CALLERID(num)} DNID:${CALLERID(dnid)})
exten => _852ZX.,2,Dial(SIP/HKPSTN/852${EXTEN:3})
exten => _852ZX.,3,Hangup()
exten => _ZX.,1,NoOp(CLI:${CALLERID(num)} DNID:${CALLERID(dnid)})
exten => _ZX.,2,Dial(SIP/HKPSTN/852${EXTEN})
exten => _ZX.,3,Hangup()
exten => _00XXX.,1,Set(CALLFILENAME=C1128-Out-${CDR(accountcode)}-${EXTEN}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)})
exten => _00XXX.,2,Set(CDR(userfield)=${CALLFILENAME})
exten => _00XXX.,3,Set(CDR(accountcode)=6463688870)
exten => _00XXX.,4,MixMonitor(${CALLFILENAME}.wav|b|)
exten => _00XXX.,5,NoOp(CLI:${CALLERID(num)} DNID:${CALLERID(dnid)} AC:${CDR(accountcode)})
exten => _00XXX.,6,DeadAGI(a2billing.php|2)
exten => _00XXX.,7,Hangup



[7001]
exten => _7XXX,1,NoOp(CLI:${CALLERID(num)} DNID:${CALLERID(dnid)})
exten => _7XXX,2,Dial(SIP/${EXTEN})
exten => _7XXX,3,Hangup()
exten => _00852ZX.,1,NoOp(CLI:${CALLERID(num)} DNID:${CALLERID(dnid)})
exten => _00852ZX.,2,Dial(SIP/HKPSTN/852${EXTEN:5})
exten => _00852ZX.,3,Hangup()
exten => _852ZX.,1,NoOp(CLI:${CALLERID(num)} DNID:${CALLERID(dnid)})
exten => _852ZX.,2,Dial(SIP/HKPSTN/852${EXTEN:3})
exten => _852ZX.,3,Hangup()
exten => _ZX.,1,NoOp(CLI:${CALLERID(num)} DNID:${CALLERID(dnid)})
exten => _ZX.,2,Dial(SIP/HKPSTN/852${EXTEN})
exten => _ZX.,3,Hangup()
exten => _00XXX.,1,Set(CALLERID(num)=852${CALLERID(num)})
exten => _00XXX.,2,Set(CDR(accountcode)=9913929798)
exten => _00XXX.,3,NoOp(CLI:${CALLERID(num)} DNID:${CALLERID(dnid)} AC:${CDR(accountcode)})
exten => _00XXX.,4,DeadAGI(a2billing.php|2)
exten => _00XXX.,5,Hangup

[7006]
exten => _7XXX,1,NoOp(CLI:${CALLERID(num)} DNID:${CALLERID(dnid)})
exten => _7XXX,2,Dial(SIP/${EXTEN})
exten => _7XXX,3,Hangup()
exten => _00852ZX.,1,NoOp(CLI:${CALLERID(num)} DNID:${CALLERID(dnid)})
exten => _00852ZX.,2,Dial(SIP/HKPSTN/852${EXTEN:5})
exten => _00852ZX.,3,Hangup()
exten => _852ZX.,1,NoOp(CLI:${CALLERID(num)} DNID:${CALLERID(dnid)})
exten => _852ZX.,2,Dial(SIP/HKPSTN/852${EXTEN:3})
exten => _852ZX.,3,Hangup()
exten => _ZX.,1,NoOp(CLI:${CALLERID(num)} DNID:${CALLERID(dnid)})
exten => _ZX.,2,Dial(SIP/HKPSTN/852${EXTEN})
exten => _ZX.,3,Hangup()
exten => _00XXX.,1,Set(CALLERID(num)=852${CALLERID(num)})
exten => _00XXX.,2,Set(CDR(accountcode)=8870934175)
exten => _00XXX.,3,NoOp(CLI:${CALLERID(num)} DNID:${CALLERID(dnid)} AC:${CDR(accountcode)})
exten => _00XXX.,4,DeadAGI(a2billing.php|2)
exten => _00XXX.,5,Hangup

Please help me solve this....

Best Regards,
Tirtha


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 
Voice Broadcast System


All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group