<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Aatif,<br>
<br>
Take a look at the uac_auth module - this module implements the
UAC authentication logic in OpenSIPS. If you want to do the auth
from script, use it with uac module (see the uac_auth() function
from the module). With B2B, it should work automatically, just be
sure you populate in uac_auth module the right credentials. <br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
OpenSIPS Summit 2019
<a class="moz-txt-link-freetext" href="https://www.opensips.org/events/Summit-2019Amsterdam/">https://www.opensips.org/events/Summit-2019Amsterdam/</a>
</pre>
<div class="moz-cite-prefix">On 12/13/2018 02:03 PM, Aatif Shaikh
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAM12s75ET255L63go4OTVCVABpoe2tijE2WJattz7ZbFXU+TOA@mail.gmail.com">
<div dir="ltr">
<div class="gmail-gE gmail-iv gmail-gt" style="padding:20px 0px
0px;font-size:12.8px"><br
class="gmail-Apple-interchange-newline">
<table class="gmail-cf gmail-gJ"
style="border-collapse:collapse;margin-top:0px;width:auto;font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:0.875rem;letter-spacing:0.2px;display:block"
cellpadding="0">
<tbody style="display:block">
<tr class="gmail-acZ" style="height:auto;display:flex">
<td class="gmail-gF gmail-gK"
style="white-space:nowrap;padding:0px;vertical-align:top;width:554.304px;line-height:20px;display:block;max-height:20px">
<table class="gmail-cf gmail-ix"
style="border-collapse:collapse;table-layout:fixed;width:553.636px"
cellpadding="0">
<tbody>
<tr>
<td class="gmail-c2" style="display:flex">
<h3 class="gmail-iw"
style="overflow:hidden;max-width:92%;font-size:0.75rem;font-weight:inherit;margin:inherit;letter-spacing:0.3px;color:rgb(95,99,104);line-height:20px"><span
class="gmail-qu" tabindex="-1"><span
name="Aatif Shaikh" class="gmail-gD"
style="color:rgb(32,33,36);font-size:0.875rem;font-weight:bold;display:inline;vertical-align:top;letter-spacing:0.2px;line-height:20px">Aatif
Shaikh</span> <span class="gmail-go"
style="vertical-align:top;color:rgb(85,85,85)"><<a
href="mailto:aatif.shaikh@ecosmob.com"
moz-do-not-send="true">aatif.shaikh@ecosmob.com</a>></span></span></h3>
</td>
</tr>
</tbody>
</table>
</td>
<td class="gmail-gH gmail-bAk"
style="text-align:right;white-space:nowrap;vertical-align:top;display:block;max-height:20px">
<div class="gmail-gK" style="padding:0px;display:flex"><img
class="gmail-f gmail-gW"
src="https://mail.google.com/mail/u/0/images/cleardot.gif"
title="IMG_20181210_171253.jpg,
IMG_20181210_170808.jpg" alt="Attachments"
style="vertical-align: top; background:
url("https://ssl.gstatic.com/mail/sprites/general-76906fbc82f79822625038e272fa3893.png")
0px 0px no-repeat; height: 21px; width: 21px;"
moz-do-not-send="true"><span id="gmail-:js"
class="gmail-g3" title="Dec 13, 2018, 5:27 PM"
alt="Dec 13, 2018, 5:27 PM" tabindex="-1"
style="vertical-align:top;margin:0px;font-size:0.75rem;letter-spacing:0.3px;color:rgb(95,99,104);display:block;line-height:20px">5:27
PM (5 minutes ago)</span>
<div class="gmail-zd gmail-bi4" title="Not starred"
tabindex="0"
style="display:inline-block;height:20px;margin-left:20px;outline:0px"><span
class="gmail-T-KT"
style="display:inline-flex;height:20px;text-align:center;width:20px;padding:0px;margin:0px;border:none;outline:none"></span></div>
</div>
</td>
<td class="gmail-gH"
style="text-align:right;white-space:nowrap;vertical-align:top;display:flex"><br>
</td>
<td class="gmail-gH gmail-acX gmail-bAm" rowspan="2"
style="text-align:right;white-space:nowrap;vertical-align:top;display:block;max-height:20px">
<div class="gmail-T-I gmail-J-J5-Ji gmail-T-I-Js-IF
gmail-aaq gmail-T-I-ax7 gmail-L3" tabindex="0"
style="display:inline-flex;border-radius:2px 0px 0px
2px;font-size:0.875rem;text-align:center;margin:0px
0px 0px
20px;height:20px;line-height:18px;min-width:0px;outline:none;padding:0px;background:transparent;color:rgb(68,68,68);border:none"><img
class="gmail-hB gmail-T-I-J3"
src="https://mail.google.com/mail/u/0/images/cleardot.gif"
alt="" style="background:
url("https://www.gstatic.com/images/icons/material/system/1x/reply_black_20dp.png")
50% 50% / 20px no-repeat; height: 20px; margin:
0px; vertical-align: middle; width: 20px; opacity:
0.7; display: inline-block; padding: 0px;
transition: opacity 0.15s cubic-bezier(0.4, 0,
0.2, 1) 0s;" moz-do-not-send="true"></div>
<div id="gmail-:15c" class="gmail-T-I gmail-J-J5-Ji
gmail-T-I-Js-Gs gmail-aap gmail-T-I-awG
gmail-T-I-ax7 gmail-L3" tabindex="0"
style="display:inline-flex;border-radius:0px 2px 2px
0px;font-size:0.875rem;text-align:center;margin:0px
0px 0px
20px;height:20px;line-height:18px;min-width:0px;outline:none;padding:0px;background:transparent;color:rgb(68,68,68);border:none"><img
class="gmail-hA gmail-T-I-J3"
src="https://mail.google.com/mail/u/0/images/cleardot.gif"
alt="" style="background:
url("https://www.gstatic.com/images/icons/material/system/1x/more_vert_black_20dp.png")
50% 50% / 20px no-repeat; height: 20px; width:
20px; margin: 0px; vertical-align: middle;
opacity: 0.7; display: inline-block; padding: 0px;
transition: opacity 0.15s cubic-bezier(0.4, 0,
0.2, 1) 0s;" moz-do-not-send="true"></div>
</td>
</tr>
<tr class="gmail-acZ gmail-xD"
style="height:auto;display:flex">
<td colspan="3">
<table class="gmail-cf gmail-adz"
style="border-collapse:collapse;table-layout:fixed;white-space:nowrap;width:833.636px"
cellpadding="0">
<tbody>
<tr>
<td class="gmail-ady"
style="overflow:visible;text-overflow:ellipsis;display:flex;line-height:20px">
<div class="gmail-iw gmail-ajw"
style="overflow:hidden;max-width:92%;display:inline-block"><span
class="gmail-hb"
style="vertical-align:top;color:rgb(95,99,104);font-size:0.75rem;letter-spacing:0.3px;line-height:20px">to <span
dir="ltr" name="users" class="gmail-g2"
style="vertical-align:top">users</span></span></div>
<div class="gmail-ajy" tabindex="0"
style="display:inline-flex;margin-left:4px;vertical-align:top;border:none;outline:none"><img
class="gmail-ajz" id="gmail-:10g"
src="https://mail.google.com/mail/u/0/images/cleardot.gif"
alt="" style="background:
url("https://www.gstatic.com/images/icons/material/system/1x/arrow_drop_down_black_20dp.png")
50% 50% / 20px no-repeat; cursor: pointer;
padding: 0px; vertical-align: baseline;
height: 20px; width: 20px; border: none;
margin: 0px 0px 0px auto; right: 0px; top:
0px; display: flex; opacity: 0.54;"
moz-do-not-send="true"></div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<div class="gmail-">
<div id="gmail-:11j" class="gmail-ii gmail-gt"
style="font-size:12.8px;direction:ltr;margin:8px 0px
0px;padding:0px">
<div id="gmail-:119" class="gmail-a3s gmail-aXjCH"
style="overflow:hidden;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:small;line-height:1.5">
<div dir="ltr"><span
style="font-size:13px;color:rgb(38,50,56);font-family:Roboto,Arial,sans-serif">Dear
Team,</span><br
style="font-size:13px;outline:none;color:rgb(38,50,56);font-family:Roboto,Arial,sans-serif">
<br
style="font-size:13px;outline:none;color:rgb(38,50,56);font-family:Roboto,Arial,sans-serif">
<span
style="font-size:13px;color:rgb(38,50,56);font-family:Roboto,Arial,sans-serif">we
need to used Opensips as B2BUA. With the help of </span><b
style="font-size:13px;outline:none;color:rgb(38,50,56);font-family:Roboto,Arial,sans-serif">registrant</b><span
style="font-size:13px;color:rgb(38,50,56);font-family:Roboto,Arial,sans-serif"> we
are able to register with Gateway and now we want the
below call scenario to achieve with B2BUA.</span><br
style="font-size:13px;outline:none;color:rgb(38,50,56);font-family:Roboto,Arial,sans-serif">
<span
style="font-size:13px;color:rgb(38,50,56);font-family:Roboto,Arial,sans-serif">1)
Any user(Not register with Opensip) from another IPPBX
(Asterisk) make a call to Opensips.</span><br
style="font-size:13px;outline:none;color:rgb(38,50,56);font-family:Roboto,Arial,sans-serif">
<span
style="font-size:13px;color:rgb(38,50,56);font-family:Roboto,Arial,sans-serif">2)
We authenticate this user as per IPPBX IP address.</span><br
style="font-size:13px;outline:none;color:rgb(38,50,56);font-family:Roboto,Arial,sans-serif">
<span
style="font-size:13px;color:rgb(38,50,56);font-family:Roboto,Arial,sans-serif">3)
Then we make a call to Gateway from Opensips after
modifying From User $fU, which is already register
with Gateway via registrant.</span><br
style="font-size:13px;outline:none;color:rgb(38,50,56);font-family:Roboto,Arial,sans-serif">
<span
style="font-size:13px;color:rgb(38,50,56);font-family:Roboto,Arial,sans-serif">4)
Gateway reply back 407.</span><br
style="font-size:13px;outline:none;color:rgb(38,50,56);font-family:Roboto,Arial,sans-serif">
<br
style="font-size:13px;outline:none;color:rgb(38,50,56);font-family:Roboto,Arial,sans-serif">
<span
style="font-size:13px;color:rgb(38,50,56);font-family:Roboto,Arial,sans-serif">We
need to resolve this 407 with authentication but we
don't have any more details how to do it with
Opensips.</span>Please provide suggestions for this.<br
class="gmail-Apple-interchange-newline">
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>