hi,
i have a sip trunk from bsnl wings provider.i have registered successfully using registration string, its configuration is below
[bsnl]
username=+919188993969
secret=xxxxxxx
qualify=yes
;nat=yes
insecure=very
host=kl.voip.ims.bsnl.in
outboundproxy=blr.sbc.ims.bsnl.in
outboundproxyport=80
fromuser=+919188993969
fromdomain=kl.voip.ims.bsnl.in
dtmfmode=inband
dtmf=inband
context=inbound
canreinvite=no
authname=+919188993969
auth=+91918899396
type=peer
port=5060
allow=all
SIP Debug Output for Incoming Call is
<--- SIP read from UDP:218.248.233.142:5060 --->
INVITE tel:+919188993969 SIP/2.0
Via: SIP/2.0/UDP 218.248.233.142:5060;branch=z9hG4bK2406al74v79koafvv609406ttT39436
Call-ID: asbc8nl21lfj6ik2i2nq8m2rlhjiqlq2hmfl@10.191.54.18
From: <sip:9895909009@218.248.233.141>;tag=sbc0505gl2mmq1r
To: <tel:+919188993969>
CSeq: 1 INVITE
Alert-Info: <file:///PacketCableRST/>;info=pattern2
Allow: UPDATE,INFO,PRACK,NOTIFY,REFER,SUBSCRIBE,OPTIONS,INVITE,ACK,BYE,CANCEL
Contact: <sip:218.248.233.142:5060;TRC=ffffffff-ffffffff;Dpt=ecaa-200>
Max-Forwards: 66
Supported: timer,100rel,histinfo,early-session
Session-Expires: 1800
Min-SE: 600
P-Asserted-Identity: <tel:+919895909009>
Privacy: none
P-Called-Party-ID: <tel:+919188993969>
P-Notification: caller-control
Content-Length: 301
Content-Type: application/sdp
Content-Disposition: session
v=0
o=- 128556025 128556025 IN IP4 218.248.233.130
s=SBC call
c=IN IP4 218.248.233.130
t=0 0
m=audio 20962 RTP/AVP 8 96 0 18
c=IN IP4 218.248.233.130
a=rtpmap:8 PCMA/8000/1
a=rtpmap:96 telephone-event/8000/1
a=fmtp:96 0-15
a=sendrecv
a=3gOoBTC
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
<------------->
--- (20 headers 14 lines) ---
Sending to 218.248.233.142:5060 (no NAT)
Sending to 218.248.233.142:5060 (no NAT)
Using INVITE request as basis request - asbc8nl21lfj6ik2i2nq8m2rlhjiqlq2hmfl@10.191.54.18
Found peer 'bsnl' for '9895909009' from 218.248.233.142:5060
<--- Reliably Transmitting (no NAT) to 218.248.233.142:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 218.248.233.142:5060;branch=z9hG4bK2406al74v79koafvv609406ttT39436;received=218.248.233.142
From: <sip:9895909009@218.248.233.141>;tag=sbc0505gl2mmq1r
To: <tel:+919188993969>;tag=as20635fc7
Call-ID: asbc8nl21lfj6ik2i2nq8m2rlhjiqlq2hmfl@10.191.54.18
CSeq: 1 INVITE
Server: Asterisk PBX certified/16.8-cert12
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="4e5dca22"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog 'asbc8nl21lfj6ik2i2nq8m2rlhjiqlq2hmfl@10.191.54.18' in 11008 ms (Method: INVITE)
Retransmitting #1 (no NAT) to 218.248.233.142:5060:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 218.248.233.142:5060;branch=z9hG4bK2406al74v79koafvv609406ttT39436;received=218.248.233.142
From: <sip:9895909009@218.248.233.141>;tag=sbc0505gl2mmq1r
To: <tel:+919188993969>;tag=as20635fc7
Call-ID: asbc8nl21lfj6ik2i2nq8m2rlhjiqlq2hmfl@10.191.54.18
CSeq: 1 INVITE
Server: Asterisk PBX certified/16.8-cert12
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="4e5dca22"
Content-Length: 0
---
<--- SIP read from UDP:218.248.233.142:5060 --->
ACK tel:+919188993969 SIP/2.0
Via: SIP/2.0/UDP 218.248.233.142:5060;branch=z9hG4bK2406al74v79koafvv609406ttT39436;received=218.248.233.142
Call-ID: asbc8nl21lfj6ik2i2nq8m2rlhjiqlq2hmfl@10.191.54.18
From: <sip:9895909009@218.248.233.141>;tag=sbc0505gl2mmq1r
To: <tel:+919188993969>;tag=as20635fc7
CSeq: 1 ACK
Max-Forwards: 70
Content-Length: 0
<------------->
--- (8 headers 0 lines) ---
<--- SIP read from UDP:218.248.233.142:5060 --->
ACK tel:+919188993969 SIP/2.0
Via: SIP/2.0/UDP 218.248.233.142:5060;branch=z9hG4bK2406al74v79koafvv609406ttT39436;received=218.248.233.142
Call-ID: asbc8nl21lfj6ik2i2nq8m2rlhjiqlq2hmfl@10.191.54.18
From: <sip:9895909009@218.248.233.141>;tag=sbc0505gl2mmq1r
To: <tel:+919188993969>;tag=as20635fc7
CSeq: 1 ACK
Max-Forwards: 70
Content-Length: 0