Hi …
Am using Asterisk 16 and I have SIP Trunk from the Operator , Below is my configuration
[MY-sip-trunk]
host=10.10.10.10
username=123123
defaultuser=123123
secret=1234
type=peer
qualify=no
insecure=port,invite
disallow=all
allow=alaw
dtmfmode=rfc2833
fromdomain=10.10.10.10
outboundproxy=10.10.10.10
context=trunkinbound
sendrpid=yes
trustrpid=no
Presently using this configuration my asterisk server is sending the OPTIONS message every one min as below.
OPTIONS sip:10.10.10.10 SIP/2.0
Via: SIP/2.0/UDP 10.10.10.11:5060;branch=z9hG4bK5e4c9ddd;rport
Max-Forwards: 70
**From: “asterisk” sip:asterisk**@10.10.10.11;tag=as24df186b
To: sip:10.10.10.10
Contact: sip:asterisk@10.10.10.11:5060
Call-ID: 2a9f466406ae199a09709cbb16c86d8f@10.10.10.11:5060
CSeq: 102 OPTIONS
User-Agent: MY Telephony
Date: Fri, 22 Mar 2019 05:36:36 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 10.10.10.11:5060;branch=z9hG4bK5e4c9ddd;rport=5060
Call-ID: 2a9f466406ae199a09709cbb16c86d8f@10.10.10.11:5060
From: "asterisk"sip:asterisk@10.10.10.11;tag=as24df186b
To: sip:10.10.10.10;tag=g4796vsa
CSeq: 102 OPTIONS
Warning: 399 03079.01234.A.005.402.228.0.6.08453.00000000.1075445762 “Invalid User”
Content-Length: 0
Am getting this SIP - 403 response from my SIP operator because of from header and contact header is going wrong. If am adding the fromuser in my sip.conf am able to send the proper header in OPTIONS message.
Is there any another parameter which i can use to send the From Header and Contact Header .? or any other suggestions ?