Hi, 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.
The configuration I've done in opensIps.cfg is listed down below; if (is_method("INVITE")) { ds_select_dst("1", "4"); forward(); route(1); setflag(1); # do accounting } My UAC IP is xx.xx.xx.xx, OpenSips IP: yy.yy.yy.yy and Asterisk IP: zz.zz.zz.zz. 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. 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; U zz.zz.zz.zz:5060 -> yy.yy.yy.yy:5060 SIP/2.0 401 Unauthorized. Via: SIP/2.0/UDP 77.66.2.137;branch=z9hG4bK-d87543-928337242-1--d87543-;received=yy.yy.yy.yy. Via: SIP/2.0/UDP 192.168.0.168:5060 ;received=203.215.176.22;branch=z9hG4bK-d87543-928337242-1--d87543-;rport=46183. From: 3225555025<sip:3225555...@yy.yy.yy.yy.>;tag=9d7c6756. To: 3225555025<sip:3225555...@yy.yy.yy.yy.>;tag=as0f0e0e90. Call-ID: b115ce088a57d010. CSeq: 8160 REGISTER. User-Agent: Asterisk PBX. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY. Supported: replaces. WWW-Authenticate: Digest algorithm=MD5, realm="rtsip.vopium.com", nonce="0a26e4a7", stale=true. Content-Length: 0. . U yy.yy.yy.yy.:5060 -> xx.xx.xx.xx:46183 SIP/2.0 401 Unauthorized. Via: SIP/2.0/UDP 192.168.0.168:5060 ;received=xx.xx.xx.xx;branch=z9hG4bK-d87543-928337242-1--d87543-;rport=46183. From: 3225555025<sip:3225555...@yy.yy.yy.yy.>;tag=9d7c6756. To: 3225555025<sip:3225555...@yy.yy.yy.yy.>;tag=as0f0e0e90. Call-ID: b115ce088a57d010. CSeq: 8160 REGISTER. User-Agent: Asterisk PBX. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY. Supported: replaces. WWW-Authenticate: Digest algorithm=MD5, realm="rtsip.vopium.com", nonce="0a26e4a7", stale=true. Content-Length: 0. U zz.zz.zz.zz:5060 -> yy.yy.yy.yy:5060 SIP/2.0 100 Trying. Via: SIP/2.0/UDP 77.66.2.137;branch=z9hG4bK-d87543-928337242-1--d87543-;received=77.66.2.137. Via: SIP/2.0/UDP 77.66.2.137;branch=z9hG4bK-d87543-928337242-1--d87543-. 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. From: 3225555025<sip:3225555...@yy.yy.yy.yy>;tag=9d7c6756. To: 3225555025<sip:3225555...@yy.yy.yy.yy>. Call-ID: b115ce088a57d010. CSeq: 8160 REGISTER. User-Agent: Asterisk PBX. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY. Supported: replaces. Contact: <sip:3225555...@zz.zz.zz.zz>. Content-Length: 0. . U zz.zz.zz.zz:5060 -> yy.yy.yy.yy:5060 SIP/2.0 401 Unauthorized. Via: SIP/2.0/UDP 77.66.2.137;branch=z9hG4bK-d87543-928337242-1--d87543-;received=77.66.2.137. Via: SIP/2.0/UDP 77.66.2.137;branch=z9hG4bK-d87543-928337242-1--d87543-. 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. From: 3225555025<sip:3225555...@yy.yy.yy.yy>;tag=9d7c6756. To: 3225555025<sip:3225555...@yy.yy.yy.yy>;tag=as0f0e0e90. Call-ID: b115ce088a57d010. CSeq: 8160 REGISTER. User-Agent: Asterisk PBX. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY. Supported: replaces. WWW-Authenticate: Digest algorithm=MD5, realm="rtsip.vopium.com", nonce="2c6529c9", stale=true. Content-Length: 0. . U yy.yy.yy.yy:5060 -> xx.xx.xx.xx:46183 SIP/2.0 100 Trying. 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. From: 3225555025<sip:3225555...@yy.yy.yy.yy>;tag=9d7c6756. To: 3225555025<sip:3225555...@yy.yy.yy.yy>. Call-ID: b115ce088a57d010. CSeq: 8160 REGISTER. User-Agent: Asterisk PBX. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY. Supported: replaces. Contact: <sip:3225555...@zz.zz.zz.zz.zz>. Content-Length: 0. . -- Regards, Ahmed Munir
_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users