[quote=“amit”]Hi
that i was told you use IAX that is slotion for this. for that you need IAX provide. As u told me both proxy are Asterisk.
use IAX protocol with IAX proivider as we use in sip.
Amit[/quote]
Hello!
Could you tell me which files do I have to change in asterisk1 and asterisk2 to do that??
Also, what to write in sip.conf and extensions.conf ??
(iax.conf too??)
My files contain:
Asterisk1
@@@@@@@@@@@@@@@
sip.conf
#######
[general]
context=default
srvlookup=yes
port=5060
binaddr = 0.0.0.0
[caller]
type=friend
;secret=welcome
qualify=no
nat=no
host=dynamic
canreinvite=no
context=internal
username=caller
#######extensions.conf
[internal]
exten => callee,1,Dial(SIP/callee) //how to change this line? To “route” to Asterisk2 if there is no callee in localdomain?
Asterisk2
@@@@@@@@@@@@@@@
sip.conf
#######
[callee]
type=friend
;secret=welcome
qualify=no
nat=no
host=dynamic
canreinvite=no
context=internal
username=callee
extensions.conf
#######
exten => caller,1,Dial(SIP/caller) //how to change this line? To “route” to Asterisk1 if there is no caller in localdomain?
My original files (caller and callee in localdomain )were:
Asterisk_only_1
@@@@@@@@@@@@@@@
[general]
context=default
srvlookup=yes
port=5060
binaddr = 0.0.0.0
[caller]
type=friend
;secret=welcome
qualify=no
nat=no
host=dynamic
canreinvite=no
context=internal
username=caller
[callee]
type=friend
;secret=welcome
qualify=no
nat=no
host=dynamic
canreinvite=no
context=internal
username=callee
extensions.conf
[internal]
exten => callee,1,Dial(SIP/callee)
exten => caller,1,Dial(SIP/caller)
I hope I didnt make a mistake… I know this is not very difficult, but I’m complete newbie in asterisk.
As you can see this is the simple case, I would be very appreciated for any help.
Thanks,
Paroxyzm