Dear All,
Thanks for helping me out here. Sorry for the late reply as it seems like the forum is down for a few days until now.
I have tried the following method instead:
sip/ client device1 —> asterisk 1.6 ----> softswitch2 ----> sip/client device2
sip device1 registered to asterisk and sip device2 registered to softswitch2.
The call flow mentioned above is already working fine.
Then I tried the reversal:
sip/client device2 --> softswitch2 --> asterisk 1.6 —> sip/ client device1
and guess what… the same error messages still appears in the CLI:
[Jun 2 20:04:55] NOTICE[3612]: chan_sip.c:19990 handle_request_invite: Failed to authenticate device 1234 sip:172.28.0.133;tag=21aa2c94b18442a099e7059715ca9d87
I tried tracing the call using wireshark, and basicall I can see that the softswitch2 is sending an INVITE to the asterisk 1.6, and immediately after that the asterisk 1.6 replied with a “403 Forbidden” , do let me know if you guys would like to trace file to look at.
And below are the sip.conf entries for general and the softswitch1 (cpgw1.cpm.com.my)
/etc/asterisk/sip.conf
[general]
context=from_outside
realm=CPMDOMAIN
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
disallow=all
allow=ulaw
allow=gsm
language=en
register => 60998888:1234@172.28.0.133
[xlite1]
type = friend
host = dynamic
secret = xlite1
context = users
[xlite2]
type = friend
host = dynamic
secret = xlite2
context = users
[xlite3]
type = friend
host = dynamic
secret = xlite3
context = users
[cpgw1.cpm.com.my]
type = peer
username = 60998888
fromuser = 60998888
fromdomain = CPMDOMAIN
secret = 1234
canreinvite = no
insecure = invite,port
host = 172.28.0.133
deny = 0.0.0.0/0
permit = 172.28.0.0/255.255.255.255
disallow = all
allow = gsm
allow = ulaw
allow = alaw
qualify = yes
nat = no
and
/etc/asterisk/extensions.conf
[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no
[global]
[users]
[from_outside]
include => inside
[inside]
exten => 6001,1,Dial(SIP/xlite1,10)
exten => 6002,1,Dial(SIP/xlite2,10)
exten => 6003,1,Dial(SIP/xlite3,10)
Thanks again. Appreciate for all your help.