Asterisk SIP Trunk calling thorugh other server – Communicating two asterisk server
Asterisk SIP Trunk calling thorugh other server – Communicating two asterisk server
Configuration:-
Configure the following sip account in both the asterisk server like below.
ServerA | ServerB |
[serverB] type=peer context=phones host=10.0.30.47 defaultuser=serverA allow=all | [serverA] type=peer context=phones host=10.0.10.16 defaultuser=serverB allow=all |
Now change the dialplan on both the server like the :-
configure extensions.conf :-
exten => _6XXXXXXXXXX,1,set(CALLERID(num)=4425100)
exten => _6XXXXXXXXXX,n,Dial(SIP/10.0.30.47/${EXTEN:1},20,rt)