Uncategorized

Asterisk: Connect 2 Boxes

 

 

BOX 1: pjsip.conf
;=============== REGISTRATION

[do] type=registration
outbound_auth= auth
server_uri=sip:do@XXXXXX
client_uri=sip:do@XXXXXX
retry_interval=60

[do_auth] type=auth
auth_type=userpass
username=do
password=PASSWORD

[do] type=aor
contact=sip:XXXXXX:5060

[do] type=endpoint
context=do
disallow=all
allow=ulaw
outbound_auth=auth
aors=do

;[do] ;type=identify
;endpoint=do
;match=XXXXXX

 

BOX 1:  extensions.conf

exten => 1208,1,DIAL(PJSIP/1208@do)

 

On BOX 2:

Configure your extensions.conf dialplan with the [do] header and put your desired logic.

Leave a Reply

Your email address will not be published. Required fields are marked *