<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
The lookup() function adds all the needed branches, it's up to you
as the script writer on how you use those branches, by doing serial
or parallel forking.<br>
To do serial forking, after doing lookup(), call the
serialize_branches core function, to order the branches based on the
q value. <br>
After that, before relaying the INVITE, arm a failure_route in case
the first destination fails.<br>
Inside the failure_route, call next_branches() to have OpenSIPS try
the next branch and arm again the failure_route to repeat the same
process in case the subsequent branches fail as well.<br>
<br>
[1] <a class="moz-txt-link-freetext" href="http://www.opensips.org/Resources/DocsCoreFcn#toc138">http://www.opensips.org/Resources/DocsCoreFcn#toc138</a><br>
[2] <a class="moz-txt-link-freetext" href="http://www.opensips.org/Resources/DocsCoreFcn#toc120">http://www.opensips.org/Resources/DocsCoreFcn#toc120</a><br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a> </pre>
<br>
On 02/09/2012 06:59 PM, David wrote:
<blockquote cite="mid:4F33FB5C.3000504@styleflare.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
If the default behavior is to do parallel forking how would you
implement serial forking?<br>
<br>
Is it a module parameter of the register module?<br>
<br>
Thanks.<br>
<br>
<br>
<br>
On 2/9/12 8:12 AM, Vlad Paiu wrote:
<blockquote cite="mid:4F33C65B.40901@opensips.org" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
Hi,<br>
<br>
OpenSIPS does parallel forking by default. When calling the
lookup [1] function from the registrar module, all the existing
contacts for an AOR will be loaded as branches, and the INVITE
will be forwarded to all contacts in parallel.<br>
<br>
[1] <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://www.opensips.org/html/docs/modules/devel/registrar.html#id292937">http://www.opensips.org/html/docs/modules/devel/registrar.html#id292937</a><br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a> </pre>
<br>
On 02/09/2012 02:50 PM, Jorge Ortea wrote:
<blockquote
cite="mid:DUB111-W131CA09DF38829C2AFB0FF3DC7B0@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
<div dir="ltr"> <br>
Hi,<br>
<br>
thanks for response Vlad.<br>
<br>
One question, how can i do parallel forking?<br>
<br>
This is my idea,<br>
I suppose that i would have 2 records in location table with
the same username, when arrive a INVITE i check if i have
more that one record, then i build the $du with contact
information y the append_branch corresponding ?? is this
correct?<br>
<br>
Thanks.<br>
Regards.<br>
<br>
<br>
<div>
<hr id="stopSpelling">Date: Wed, 8 Feb 2012 13:08:25 +0200<br>
From: <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:vladpaiu@opensips.org">vladpaiu@opensips.org</a><br>
To: <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
Subject: Re: [OpenSIPS-Users] several SIP phones with same
SIP account<br>
<br>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft SafeHTML">
<title></title>
Hello,<br>
<br>
Of course you can have several sip phones configured with
the same SIP account.<br>
Just configure the same account on the phones you want,
and then when a call comes in for that specific account,
you can configure OpenSIPS to either do parallel forking (
ring all the phones at the same time, which-ever answers
first will get the call ) , or do serial forking ( try
each phone one at a time until you either get a success or
a failure on all phones ).<br>
<br>
Regards,<br>
<pre class="ecxmoz-signature">Vlad Paiu
OpenSIPS Developer
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a> </pre>
<br>
On 02/08/2012 10:32 AM, Jorge Ortea wrote:
<blockquote
cite="mid:DUB111-W121E6D3478D8E5F393094F5DC7A0@phx.gbl">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
<div dir="ltr"> Hi,<br>
<br>
is possible to have several sip phones configurated
with the same SIP account ?<br>
<br>
If i want to have a SIP account configurated in two
phones, for ex. my SIP phone in the office and my
smartphone, I need two accounts SIP perforce and
configure my PBX to manage multiDial to both accounts
or exist way to configure the same SIP account in both
???<br>
<br>
Thanks.<br>
Regards.<br>
</div>
<pre><fieldset class="ecxmimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="ecxmoz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
_______________________________________________ Users
mailing list <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" 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></div>
</div>
<pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" 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>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" 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>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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>
</body>
</html>