<div dir="ltr">Hello. I use kamailio for calling to porvider. My providr seccefuully registered from UAC module, but when I try to call through it? it back 401 Unauthorised. I send second try with Digest Auth header at INVITE and it receive me 401 too...<br><br>I register this provider from asterisk and call succesfully Ok. So i get dump from asterisk This is successfull INVITE:<br><br><div>INVITE <a href="mailto:sip%3A89126975590@sip.provider.com">sip:89126975590@sip.provider.com</a> SIP/2.0</div><div>Via: SIP/2.0/UDP 17.4.28.7:50600;branch=z9hG4bK5f118681;rport</div><div>Max-Forwards: 70</div><div>From: <<a href="http://sip:gw2@17.4.28.7:50600">sip:gw2@17.4.28.7:50600</a>>;tag=as33192a38</div><div>To: <<a href="mailto:sip%3A89126975590@sip.provider.com">sip:89126975590@sip.provider.com</a>></div><div>Contact: <<a href="http://sip:gw2@17.4.28.7:50600">sip:gw2@17.4.28.7:50600</a>></div><div>Call-ID: <a href="http://021088c360a8dbf023bf35560a9daf1e@17.4.28.7:50600">021088c360a8dbf023bf35560a9daf1e@17.4.28.7:50600</a></div><div>CSeq: 103 INVITE</div><div>User-Agent: Asterisk PBX 12.6.1</div><div>Authorization: Digest username="gw2", realm="<a href="http://provider.com">provider.com</a>", algorithm=MD5, uri="<a href="mailto:sip%3A89126975590@sip.provider.com">sip:89126975590@sip.provider.com</a>", nonce="014d80ca", response="67bad8a0c97afc2b6747b471a56bca9f"</div><div>Date: Wed, 29 Oct 2014 18:50:50 GMT</div><div>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE</div><div>Supported: replaces, timer</div><div>Content-Type: application/sdp</div><div>Content-Length: 253</div><div><br></div><div>v=0</div><div>o=root 1098729670 1098729671 IN IP4 17.4.28.7</div><div>s=Asterisk PBX 12.6.1</div><div>c=IN IP4 17.4.28.7</div><div>t=0 0</div><div>m=audio 10088 RTP/AVP 8 101</div><div>a=rtpmap:8 PCMA/8000</div><div>a=rtpmap:101 telephone-event/8000</div><div>a=fmtp:101 0-16</div><div>a=ptime:20</div><div>a=maxptime:150</div><div>a=sendrecv<br><br><br>Then I get dump from my kamailio (unsuccessfull INVITE)<br><br><div>INVITE <a href="mailto:sip%3A89126975590@sip.provider.com">sip:89126975590@sip.provider.com</a>  SIP/2.0</div><div>Record-Route: <sip:sip.myservice.com:5068;nat=yes;ftag=as4684d4b9;lr=on></div><div>Via: SIP/2.0/UDP sip.myservice.com:5068;branch=z9hG4bK600b.1d5ff0fd59d4f3d2a1a06d722c0daa92.2</div><div>Via: SIP/2.0/UDP my.aterisk:50600;branch=z9hG4bK2b8d9b09;rport=50600</div><div>Max-Forwards: 70</div><div>From: <<a href="http://sip:gw2@sip.myservice.com:5068">sip:gw2@sip.myservice.com:5068</a>>;tag=as4684d4b9</div><div>To: <<a href="mailto:sip%3A89126975590@sip.provider.com">sip:89126975590@sip.provider.com</a> ></div><div>Contact:<<a href="http://sip:Vebinar-gw2@sip.myservice.com:5068">sip:Vebinar-gw2@sip.myservice.com:5068</a>></div><div>Call-ID: <a href="http://445a7b884aeeab125d91886210c9beb7@sip.myservice.com:50600">445a7b884aeeab125d91886210c9beb7@sip.myservice.com:50600</a></div><div>CSeq: 102 INVITE</div><div>User-Agent: SoftSwitch</div><div>Date: Wed, 29 Oct 2014 22:32:32 GMT</div><div>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE</div><div>Supported: replaces, timer</div><div>Content-Type: application/sdp</div><div>Content-Length: 312</div><div>Authorization: Digest username="gw2", realm="<a href="http://provider.com">provider.com</a>", nonce="10129bde", uri="<a href="mailto:sip%3A89126975590@sip.provider.com">sip:89126975590@sip.provider.com</a> ", response="6d3411b24cbb57ad72271790ec01b453", algorithm=MD5</div><div><br></div><div>v=0</div><div>o=root 468654998 468654998 IN IP4 1.2.3.4</div><div>s=SoftSwitch</div><div>c=IN IP4 1.2.3.4</div><div>t=0 0</div><div>m=audio 30104 RTP/AVP 8 3 0 101</div><div>a=rtpmap:8 PCMA/8000</div><div>a=rtpmap:3 GSM/8000</div><div>a=rtpmap:0 PCMU/8000</div><div>a=rtpmap:101 telephone-event/8000</div><div>a=fmtp:101 0-16</div><div>a=ptime:20</div><div>a=maxptime:150</div><div>a=sendrecv</div><div>a=rtcp:30105</div></div><div><br><br>I see difference between packetts only at SDP (not inportant things) and at VIA and request route Headers. All other fields identical. <br><br>So -why Asterisk call successull and Kamailio kall unsuccessfull? What the differense?</div></div>