I some how managed to establish a call.<br><br>Callee--------->Opensips----------->Asterisk-------------->Opensips------------->called.<br><br>The problem here is call is landing to opensips from Asterisk, but it is still in loop for remaning call.<br>
<br>Actually, after IVR asterisk has to forward the call to opensips and opensips has to be connect the called (callee--------->opensips------------>called).<br><br>Will this logic work ? How to handle it with opensips ?<br>
<br>I foresee following points:<br>1. After call is form aSterisk, oepsnips has to send BYE to asterisk and terminate the dialog.<br>2. From the INVITE info from Asterisk; opensips has to re-write the from-uri; so that instead of callee@asterisk IP and port; contact uri should have the one stored in location when it got registered. By this way will the above logic work ? I dono :(<br>
<br>I appreciate the valuable input.<br><br><br><div class="gmail_quote">On Mon, Jul 19, 2010 at 12:21 PM, Premalatha Kuppan <span dir="ltr"><<a href="mailto:premalatha@ngintech.com">premalatha@ngintech.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>I have integrated set up of opensips with TLS(1.6.2) and Asterisk (1.4.3.1) running.<br>
<br>Now, my user is sending registration request via TLS, registration is succesful; the call fails.<br><br>Here is the setup iam trying,<br>
<br>User (UDP) and USER with TLS gets registered with Opensips.<br>Asterisk performs IVR for all incoming calls to opensips.<br><br>callee---------->Opensips--------->Asterisk-------------->opensips----------->called <br>
<br>Since Asterisk 1.4.3 doesn't support TLS; after IVR, iam tying to forward the call to opensips.<br>extension.conf: <br><br>exten => s2,n,Dial(SIP/${aaa}_${bbb}_${ccc}@OPENSIPS:5061,20,r)<br><br>At Opensips.cfg, (Note: both opensips and Asterisk running on same box. Opensips listening on port 5060 and 5061 and asterisk on 5070. Calls from asterisk will always have the user uri format has aaa_bbb_ccc<br>
<br>if (is_method("INVITE"))<br> {<br> $var(z)=$(tu{uri.user});<br> if($var(x)=~"[0-9]+_[0-9]+_[0-9]+") {<br> xlog("Call from Asterisk \n");<br>
route(1); }<br> }<br><br>Please help me, after IVR, i have to forward the call to opensips and opensips should connect the callee and called.<br><br>How should i change in opensips.cfg to handle this.<br>
<br>I appreciate the valuable input.<br><br>Thanks,<br>Prem<br><br><br>
</blockquote></div><br>