stavros wrote:
You'll have to distinguish these calls that you want to pass to A2Billing in the Asterisk dialplan somehow.
Ok, but, how to made that ??
How can I define in the SIP trunk that calls pass to A2Billing ??
This is my configuration:
sip_additional.conf
[6000]
type=friend
secret=6000
record_out=Adhoc
record_in=Adhoc
qualify=yes
port=5060
pickupgroup=
nat=yes
mailbox=6000@device
host=dynamic
dtmfmode=rfc2833
dial=SIP/6000
context=from-internal
canreinvite=no
callgroup=
callerid=device <6000>
accountcode=
call-limit=50
[Mitel]
host=192.168.2.1
username=0000
secret=0000
type=peer
allow=ulaw
allow=alaw
allow=gsm
allow=g723
allow=g729
insecure=very
nat=yes
Ok, the extension takes the trunk with 123 + xxx or 2xx or 3xx .. etc
extensions_additional.conf
[outrt-002-Trunk-Mitel]
include => outrt-002-Trunk-Mitel-custom
exten => _123.1xx,1,Macro(user-callerid,SKIPTTL,)
exten => _123.1xx,n,Set(_NODEST=)
exten => _123.1xx,n,Macro(record-enable,${AMPUSER},OUT,)
exten => _123.1xx,n,Macro(dialout-trunk,2,${EXTEN:3},,)
exten => _123.1xx,n,Macro(outisbusy,)
exten => _2xx,1,Macro(user-callerid,SKIPTTL,)
exten => _2xx,n,Set(_NODEST=)
exten => _2xx,n,Macro(record-enable,${AMPUSER},OUT,)
exten => _2xx,n,Macro(dialout-trunk,2,${EXTEN},,)
exten => _2xx,n,Macro(outisbusy,)
exten => _3xx,1,Macro(user-callerid,SKIPTTL,)
exten => _3xx,n,Set(_NODEST=)
exten => _3xx,n,Macro(record-enable,${AMPUSER},OUT,)
exten => _3xx,n,Macro(dialout-trunk,2,${EXTEN},,)
exten => _3xx,n,Macro(outisbusy,)
exten => _5xx,1,Macro(user-callerid,SKIPTTL,)
exten => _5xx,n,Set(_NODEST=)
exten => _5xx,n,Macro(record-enable,${AMPUSER},OUT,)
exten => _5xx,n,Macro(dialout-trunk,2,${EXTEN},,)
exten => _5xx,n,Macro(outisbusy,)
exten => _94xxxxxxx,1,Macro(user-callerid,SKIPTTL,)
exten => _94xxxxxxx,n,Set(_NODEST=)
exten => _94xxxxxxx,n,Macro(record-enable,${AMPUSER},OUT,)
exten => _94xxxxxxx,n,Macro(dialout-trunk,2,${EXTEN},,)
exten => _94xxxxxxx,n,Macro(outisbusy,)
This works FINE! but, I really don't know how can I made pass this for A2Billing....
Please, if someone have any idea...
THANKS!