Hi,<br><br>Currently I'm working on case i.e. OpenSips and Asterisk, where I'm using OpenSIps as a Proxy server using dispatcher module and dispatcher list contains Asterisk machines IP as destination address.<br><br>
The configuration I've done in opensIps.cfg is listed down below;<br><br> if (is_method("INVITE")) {<br> ds_select_dst("1", "4");<br> forward();<br> route(1);<br>
setflag(1); # do accounting<br> }<br><br><br>My UAC IP is xx.xx.xx.xx, OpenSips IP: yy.yy.yy.yy and Asterisk IP: zz.zz.zz.zz.<br><br>When I make a call I'm getting code error 603, Decline. Even though the settings I've set on UAC as outbound proxy using valid credentials as used on my Asterisk machine.<br>
<br>Kindly advise me how can I send Registration request OpenSips -> Asterisk. Please give me some sample to resolve this issue. At the end I'm listing few traces;<br><br>U zz.zz.zz.zz:5060 -> yy.yy.yy.yy:5060<br>
SIP/2.0 401 Unauthorized.<br>Via: SIP/2.0/UDP 77.66.2.137;branch=z9hG4bK-d87543-928337242-1--d87543-;received=yy.yy.yy.yy.<br>Via: SIP/2.0/UDP 192.168.0.168:5060;received=203.215.176.22;branch=z9hG4bK-d87543-928337242-1--d87543-;rport=46183.<br>
From: 3225555025<sip:3225555025@yy.yy.yy.yy.>;tag=9d7c6756.<br>To: 3225555025<sip:3225555025@yy.yy.yy.yy.>;tag=as0f0e0e90.<br>Call-ID: b115ce088a57d010.<br>CSeq: 8160 REGISTER.<br>User-Agent: Asterisk PBX.<br>
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.<br>Supported: replaces.<br>WWW-Authenticate: Digest algorithm=MD5, realm="<a href="http://rtsip.vopium.com">rtsip.vopium.com</a>", nonce="0a26e4a7", stale=true.<br>
Content-Length: 0.<br>.<br><br><br>U yy.yy.yy.yy.:5060 -> xx.xx.xx.xx:46183<br>SIP/2.0 401 Unauthorized.<br>Via: SIP/2.0/UDP 192.168.0.168:5060;received=xx.xx.xx.xx;branch=z9hG4bK-d87543-928337242-1--d87543-;rport=46183.<br>
From: 3225555025<sip:3225555025@yy.yy.yy.yy.>;tag=9d7c6756.<br>To: 3225555025<sip:3225555025@yy.yy.yy.yy.>;tag=as0f0e0e90.<br>Call-ID: b115ce088a57d010.<br>CSeq: 8160 REGISTER.<br>User-Agent: Asterisk PBX.<br>
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.<br>Supported: replaces.<br>WWW-Authenticate: Digest algorithm=MD5, realm="<a href="http://rtsip.vopium.com">rtsip.vopium.com</a>", nonce="0a26e4a7", stale=true.<br>
Content-Length: 0.<br><br><br>U zz.zz.zz.zz:5060 -> yy.yy.yy.yy:5060<br>SIP/2.0 100 Trying.<br>Via: SIP/2.0/UDP 77.66.2.137;branch=z9hG4bK-d87543-928337242-1--d87543-;received=77.66.2.137.<br>Via: SIP/2.0/UDP 77.66.2.137;branch=z9hG4bK-d87543-928337242-1--d87543-.<br>
Via: SIP/2.0/UDP 192.168.0.168:5060;received=203.215.176.22;received=203.215.176.22;branch=z9hG4bK-d87543-928337242-1--d87543-;rport=46183;rport=46183.<br>From: 3225555025<sip:3225555025@yy.yy.yy.yy>;tag=9d7c6756.<br>
To: 3225555025<sip:3225555025@yy.yy.yy.yy>.<br>Call-ID: b115ce088a57d010.<br>CSeq: 8160 REGISTER.<br>User-Agent: Asterisk PBX.<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.<br>Supported: replaces.<br>
Contact: <sip:3225555025@zz.zz.zz.zz>.<br>Content-Length: 0.<br>.<br><br><br>U zz.zz.zz.zz:5060 -> yy.yy.yy.yy:5060<br>SIP/2.0 401 Unauthorized.<br>Via: SIP/2.0/UDP 77.66.2.137;branch=z9hG4bK-d87543-928337242-1--d87543-;received=77.66.2.137.<br>
Via: SIP/2.0/UDP 77.66.2.137;branch=z9hG4bK-d87543-928337242-1--d87543-.<br>Via: SIP/2.0/UDP 192.168.0.168:5060;received=203.215.176.22;received=203.215.176.22;branch=z9hG4bK-d87543-928337242-1--d87543-;rport=46183;rport=46183.<br>
From: 3225555025<sip:3225555025@yy.yy.yy.yy>;tag=9d7c6756.<br>To: 3225555025<sip:3225555025@yy.yy.yy.yy>;tag=as0f0e0e90.<br>Call-ID: b115ce088a57d010.<br>CSeq: 8160 REGISTER.<br>User-Agent: Asterisk PBX.<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.<br>
Supported: replaces.<br>WWW-Authenticate: Digest algorithm=MD5, realm="<a href="http://rtsip.vopium.com">rtsip.vopium.com</a>", nonce="2c6529c9", stale=true.<br>Content-Length: 0.<br>.<br><br><br>U yy.yy.yy.yy:5060 -> xx.xx.xx.xx:46183<br>
SIP/2.0 100 Trying.<br>Via: SIP/2.0/UDP 192.168.0.168:5060;received=203.215.176.22;received=203.215.176.22;branch=z9hG4bK-d87543-928337242-1--d87543-;rport=46183;rport=46183.<br>From: 3225555025<sip:3225555025@yy.yy.yy.yy>;tag=9d7c6756.<br>
To: 3225555025<sip:3225555025@yy.yy.yy.yy>.<br>Call-ID: b115ce088a57d010.<br>CSeq: 8160 REGISTER.<br>User-Agent: Asterisk PBX.<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.<br>Supported: replaces.<br>
Contact: <sip:3225555025@zz.zz.zz.zz.zz>.<br>Content-Length: 0.<br>.<br><br><br clear="all"><br>-- <br>Regards,<br>
<br>Ahmed Munir<br><br><br>