<div>Hi, </div><div>in asterisk sip.conf file ... </div><div><br></div><div>[openser]</div><div>type = friend</div><div>host=ip_address_of_open</div><div>insecure = very</div><div>username=dummy_name</div><div>proxy= host</div>
<div>outbound_proxy=host</div><div>nat = yes;</div><div>canreinvnit =no;</div><div><br></div><div>And In Asterisk CTL > show sip peers </div><div>You will see the openser peer is registered.... </div><div><br></div><div>
<br></div><div>And See openSER debug whether Option Header and Signaling Happing properly or not.</div><div>In openSER.cfg check asterisk ip is restricting or not ? </div><div><br></div><br clear="all">Thanks &Regards<br>
Ravi Prakash Sunkara<br>VoIP Architect & JAVA-SIP Developer<br>+91-9999882776<br>
<br><br><div class="gmail_quote">2008/12/18 BERGANZ François <span dir="ltr"><<a href="mailto:francois@acropolistelecom.net">francois@acropolistelecom.net</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I want to authenticate in openser some users which are in asterisk conf (to do load balancing with another asterisk).<br>
If I delete the user from the asterisk config and insecure=invite for the openser, asterisk accept the call, but, I want that asterisk see that it is that user which is doing the call.<br>
<br>
<br>
Cordialement,<br>
BERGANZ François<br>
<br>
<br>
<a href="http://www.acropolistelecom.net" target="_blank">http://www.acropolistelecom.net</a><br>
Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.<br>
<br>
<br>
-----Message d'origine-----<br>
De : Andrew V.Statsenko [mailto:<a href="mailto:alter@siptalk.ru">alter@siptalk.ru</a>]<br>
Envoyé : jeudi 18 décembre 2008 11:00<br>
À : BERGANZ François<br>
Objet : ***SPAM*** Re: [Kamailio-Users] openser and asterisk auth problem.<br>
<br>
В Чтв, 18/12/2008 в 10:31 +0100, BERGANZ François пишет:<br>
> -----I have that error:<br>
<br>
> <--- SIP read from UDP://<a href="http://192.168.1.156:5060" target="_blank">192.168.1.156:5060</a> ---><br>
> INVITE <a href="mailto:sip%3A33662971130@192.168.1.156">sip:33662971130@192.168.1.156</a> SIP/2.0<br>
> Record-Route: <sip:192.168.1.156;lr=on;ftag=0c46027a><br>
> Via: SIP/2.0/UDP 192.168.1.156;branch=z9hG4bK20d2.de427962.0<br>
> Via: SIP/2.0/UDP 192.168.1.60:43490;branch=z9hG4bK-d8754z-c15d2350d0742a11-1---d8754z-;rport=43490<br>
> Max-Forwards: 70<br>
> Contact: <<a href="http://sip:6833211245@192.168.1.60:43490" target="_blank">sip:6833211245@192.168.1.60:43490</a>><br>
> To: "33662971130"<<a href="mailto:sip%3A33662971130@192.168.1.156">sip:33662971130@192.168.1.156</a>><br>
> From: "6833211245"<<a href="mailto:sip%3A6833211245@192.168.1.156">sip:6833211245@192.168.1.156</a>>;tag=0c46027a<br>
> Call-ID: YTkxOWU5MGJjZjJhMWFmODZhMzZkMTU1YzUzYjUyMTc.<br>
> CSeq: 2 INVITE<br>
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO<br>
> Content-Type: application/sdp<br>
> User-Agent: X-Lite release 1100l stamp 47546<br>
> Content-Length: 231<br>
[..]<br>
<br>
<br>
<br>
> <-------------><br>
> --- (14 headers 10 lines) ---<br>
> Sending to 192.168.1.156 : 5060 (no NAT)<br>
> Using INVITE request as basis request - YTkxOWU5MGJjZjJhMWFmODZhMzZkMTU1YzUzYjUyMTc.<br>
> Found user '6833211245' for '6833211245'<br>
<br>
This is the key trouble in your configuration: Asterisk trying to<br>
authenticate this call as call from _user_ (INVITE->401->INVITE+auth),<br>
but not as _peer_.<br>
<br>
<br>
Will you describe us where you want to authenticate you users :<br>
<br>
- at the OpenSER frontend (BTW, I don't see auth headers in first<br>
INVITE)<br>
- or in the Asterisk backend ?<br>
<br>
<br>
Which service logic you are building ?<br>
<br>
--<br>
WBR,<br>
Alter<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a><br>
<a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br>