[prev in list] [next in list] [prev in thread] [next in thread]
List: openser-users
Subject: Re: [SR-Users] Placing ds_select_dst in kamailio.cfg, where?
From: Henrik_Aagaard_Sørensen
Date: 2011-09-29 14:37:31
Message-ID: CAGH8Sebz-ZygxeaR6EutgHL5mKf=O7+U44b=ofmze5-t-M_zHQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Wow, thanks, I'll have a look at it.
On Thu, Sep 29, 2011 at 4:23 PM, Carsten Bock <carsten@ng-voice.com> wrote:
> Hi Henrik,
>
> i just added my config for a simple loadbalancer, which handles
> in-dialog requests and failover (i stripped a lot, which you might not
> need).
> Maybe that helps you!
>
> Carsten
>
>
> 2011/9/29 Henrik Aagaard S=F8rensen <henrikaagaardsorensen@gmail.com>:
> > Hi Daniel.
> >
> > I appreciate all the help I can get, very much.
> >
> > This is my configuration so far: http://pastebin.com/AYprC7Rm
> >
> > Where would you put it?
> >
> > Best regards,
> > Henrik
> >
> > On Thu, Sep 29, 2011 at 10:47 AM, Daniel-Constantin Mierla
> > <miconda@gmail.com> wrote:
> >>
> >> Hello,
> >>
> >> please keep the mainling list cc-ed.
> >>
> >> Calling ds_select_dst() first in the main route block is not really a
> good
> >> place. First you have to handle sanity checks, within dialog requests
> a.s.o.
> >> Of course it is a matter of your purpose, but as general hint, selecti=
ng
> the
> >> destination should be done just (or as close as possible) before
> relaying.
> >>
> >> If you take default config and you have only load balancing, then you
> can
> >> replace location lookup part with load balancing. Other parts may be
> >> stripped as well, just giving some direction here.
> >>
> >> Cheers,
> >> Daniel
> >>
> >> On 9/28/11 11:11 PM, Henrik Aagaard S=F8rensen wrote:
> >>
> >> That did the job.
> >>
> >> I just placed the ds_select_dst-code at the very first thing after
> route{
> >>
> >> Thank you for your help!
> >>
> >> 2011/9/28 Daniel-Constantin Mierla <miconda@gmail.com>
> >>>
> >>> Hello,
> >>>
> >>> the devel version of dispatcher module README has a different config
> >>> example, maybe it helps you more:
> >>>
> >>>
> >>>
> http://kamailio.org/docs/modules/devel/modules_k/dispatcher.html#id252284=
7
> >>>
> >>> I am considering to update it again soon to be a bit more complete an=
d
> >>> follow the structure of the default config file shipped with kamailio=
.
> >>>
> >>> Cheers,
> >>> Daniel
> >>>
> >>> On 9/28/11 6:30 PM, Henrik Aagaard S=F8rensen wrote:
> >>>
> >>> Hi Carsten.
> >>>
> >>> The configuration works. It's actually where (which line) in the
> >>> configuration I should put:
> >>> ds_select_dst("1", "0");
> >>>
> >>> :) I'm not strong in Kamailio and just want it to load balance betwee=
n
> >>> Freswitch servers. So I have a basic installation of Kamailio, withou=
t
> >>> MySQL, NAT, Auth etc.
> >>>
> >>> On Wed, Sep 28, 2011 at 5:09 PM, Carsten Bock <carsten@ng-voice.com>
> >>> wrote:
> >>>>
> >>>> Hi,
> >>>>
> >>>> When you've got problems with placing "ds_select_dst()" in your
> >>>> config, you should do the following:
> >>>> - Open an Editor of your choice
> >>>> - go to the line, where you want to place it
> >>>> - type: ds_select_dst("1", "0");
> >>>> - save & exit
> >>>>
> >>>> Just kidding! You should do the following with your config:
> >>>> kamailio -f <path-to-your-config> -c
> >>>>
> >>>> What error is displayed? If none, then check your syslog for errors.
> >>>> Could you post your config? It is better to put a full path in the
> >>>> config to the dispatcher-file... otherwise it might be dependent of,
> >>>> where you are running the init.d-skript/kamailio....
> >>>>
> >>>> I am using dispatcher in Kamailio 1.5, 3.1 and 3.2, everythings work=
s
> >>>> fine with me.
> >>>>
> >>>> Kind regards,
> >>>> Carsten
> >>>>
> >>>> 2011/9/28 Henrik Aagaard S=F8rensen <henrikaagaardsorensen@gmail.com=
>:
> >>>> > I've installed 2 Freeswitch on different servers and would like to
> >>>> > have
> >>>> > Kamailio load balance between them.
> >>>> >
> >>>> > I've installed Kamailio following:
> >>>> >
> >>>> >
> http://www.kamailio.org/dokuwiki/doku.php/install:kamailio-3.1.x-from-git
> >>>> >
> >>>> > I've created dispatcher.list and added:
> >>>> >
> >>>> > loadmodule "dispatcher.so"
> >>>> >
> >>>> > modparam("dispatcher", "list_file", "../etc/dispatcher.list")
> >>>> >
> >>>> > in the kamailio.cfg.
> >>>> >
> >>>> > But looking at:
> >>>> > http://kamailio.org/docs/modules/3.1.x/modules_k/dispatcher.html
> >>>> > I'm having difficulties to placing:
> >>>> >
> >>>> > ds_select_dst("1", "0");
> >>>> >
> >>>> > in the kamailio.cfg that was created originally.
> >>>> >
> >>>> > Can anyone help me?
> >>>> >
> >>>> > _______________________________________________
> >>>> > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
> >>>> > list
> >>>> > sr-users@lists.sip-router.org
> >>>> > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> >>>> >
> >>>> >
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> Carsten Bock
> >>>> CEO (Gesch=E4ftsf=FChrer)
> >>>>
> >>>> ng-voice GmbH i. Gr.
> >>>> Schomburgstr. 80
> >>>> D-22767 Hamburg / Germany
> >>>>
> >>>> http://www.ng-voice.com
> >>>> mailto:carsten@ng-voice.com
> >>>>
> >>>> Mobile +49 179 2021244
> >>>> Office +49 40 34927219
> >>>> Fax +49 40 34927220
> >>>>
> >>>> _______________________________________________
> >>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
> list
> >>>> sr-users@lists.sip-router.org
> >>>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing li=
st
> >>> sr-users@lists.sip-router.org
> >>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> >>>
> >>> --
> >>> Daniel-Constantin Mierla -- http://www.asipto.com
> >>> Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/ka=
t
> >>> http://linkedin.com/in/miconda -- http://twitter.com/miconda
> >>
> >> --
> >> Daniel-Constantin Mierla -- http://www.asipto.com
> >> Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/kat
> >> http://linkedin.com/in/miconda -- http://twitter.com/miconda
> >
> > _______________________________________________
> > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> > sr-users@lists.sip-router.org
> > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> >
> >
>
>
>
> --
> Carsten Bock
> CEO (Gesch=E4ftsf=FChrer)
>
> ng-voice GmbH i. Gr.
> Schomburgstr. 80
> D-22767 Hamburg / Germany
>
> http://www.ng-voice.com
> mailto:carsten@ng-voice.com
>
> Mobile +49 179 2021244
> Office +49 40 34927219
> Fax +49 40 34927220
>
> Hier finden Sie unsere handelsrechtlichen Pflichtangaben:
> http://www.ng-voice.com/imprint/
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
[Attachment #5 (text/html)]
Wow, thanks, I'll have a look at it.<br><br><div class="gmail_quote">On Thu, Sep \
29, 2011 at 4:23 PM, Carsten Bock <span dir="ltr"><<a \
href="mailto:carsten@ng-voice.com">carsten@ng-voice.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex;">Hi Henrik,<br> <br>
i just added my config for a simple loadbalancer, which handles<br>
in-dialog requests and failover (i stripped a lot, which you might not<br>
need).<br>
Maybe that helps you!<br>
<br>
Carsten<br>
<br>
<br>
2011/9/29 Henrik Aagaard Sørensen <<a \
href="mailto:henrikaagaardsorensen@gmail.com">henrikaagaardsorensen@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Hi Daniel.<br>
><br>
> I appreciate all the help I can get, very much.<br>
><br>
> This is my configuration so far: <a href="http://pastebin.com/AYprC7Rm" \
target="_blank">http://pastebin.com/AYprC7Rm</a><br> ><br>
> Where would you put it?<br>
><br>
> Best regards,<br>
> Henrik<br>
><br>
> On Thu, Sep 29, 2011 at 10:47 AM, Daniel-Constantin Mierla<br>
> <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>> wrote:<br>
>><br>
>> Hello,<br>
>><br>
>> please keep the mainling list cc-ed.<br>
>><br>
>> Calling ds_select_dst() first in the main route block is not really a \
good<br> >> place. First you have to handle sanity checks, within dialog \
requests a.s.o.<br> >> Of course it is a matter of your purpose, but as general \
hint, selecting the<br> >> destination should be done just (or as close as \
possible) before relaying.<br> >><br>
>> If you take default config and you have only load balancing, then you \
can<br> >> replace location lookup part with load balancing. Other parts may \
be<br> >> stripped as well, just giving some direction here.<br>
>><br>
>> Cheers,<br>
>> Daniel<br>
>><br>
>> On 9/28/11 11:11 PM, Henrik Aagaard Sørensen wrote:<br>
>><br>
>> That did the job.<br>
>><br>
>> I just placed the ds_select_dst-code at the very first thing after \
route{<br> >><br>
>> Thank you for your help!<br>
>><br>
>> 2011/9/28 Daniel-Constantin Mierla <<a \
href="mailto:miconda@gmail.com">miconda@gmail.com</a>><br> >>><br>
>>> Hello,<br>
>>><br>
>>> the devel version of dispatcher module README has a different config<br>
>>> example, maybe it helps you more:<br>
>>><br>
>>><br>
>>> <a href="http://kamailio.org/docs/modules/devel/modules_k/dispatcher.html#id2522847" \
target="_blank">http://kamailio.org/docs/modules/devel/modules_k/dispatcher.html#id2522847</a><br>
>>><br>
>>> I am considering to update it again soon to be a bit more complete \
and<br> >>> follow the structure of the default config file shipped with \
kamailio.<br> >>><br>
>>> Cheers,<br>
>>> Daniel<br>
>>><br>
>>> On 9/28/11 6:30 PM, Henrik Aagaard Sørensen wrote:<br>
>>><br>
>>> Hi Carsten.<br>
>>><br>
>>> The configuration works. It's actually where (which line) in the<br>
>>> configuration I should put:<br>
>>> ds_select_dst("1", "0");<br>
>>><br>
>>> :) I'm not strong in Kamailio and just want it to load balance \
between<br> >>> Freswitch servers. So I have a basic installation of \
Kamailio, without<br> >>> MySQL, NAT, Auth etc.<br>
>>><br>
>>> On Wed, Sep 28, 2011 at 5:09 PM, Carsten Bock <<a \
href="mailto:carsten@ng-voice.com">carsten@ng-voice.com</a>><br> >>> \
wrote:<br> >>>><br>
>>>> Hi,<br>
>>>><br>
>>>> When you've got problems with placing \
"ds_select_dst()" in your<br> >>>> config, you should do the \
following:<br> >>>> - Open an Editor of your choice<br>
>>>> - go to the line, where you want to place it<br>
>>>> - type: ds_select_dst("1", "0");<br>
>>>> - save & exit<br>
>>>><br>
>>>> Just kidding! You should do the following with your config:<br>
>>>> kamailio -f <path-to-your-config> -c<br>
>>>><br>
>>>> What error is displayed? If none, then check your syslog for \
errors.<br> >>>> Could you post your config? It is better to put a full \
path in the<br> >>>> config to the dispatcher-file... otherwise it might \
be dependent of,<br> >>>> where you are running the \
init.d-skript/kamailio....<br> >>>><br>
>>>> I am using dispatcher in Kamailio 1.5, 3.1 and 3.2, everythings \
works<br> >>>> fine with me.<br>
>>>><br>
>>>> Kind regards,<br>
>>>> Carsten<br>
>>>><br>
>>>> 2011/9/28 Henrik Aagaard Sørensen <<a \
href="mailto:henrikaagaardsorensen@gmail.com">henrikaagaardsorensen@gmail.com</a>>:<br>
>>>> > I've installed 2 Freeswitch on different servers and would \
like to<br> >>>> > have<br>
>>>> > Kamailio load balance between them.<br>
>>>> ><br>
>>>> > I've installed Kamailio following:<br>
>>>> ><br>
>>>> > <a \
href="http://www.kamailio.org/dokuwiki/doku.php/install:kamailio-3.1.x-from-git" \
target="_blank">http://www.kamailio.org/dokuwiki/doku.php/install:kamailio-3.1.x-from-git</a><br>
>>>> ><br>
>>>> > I've created dispatcher.list and added:<br>
>>>> ><br>
>>>> > loadmodule "dispatcher.so"<br>
>>>> ><br>
>>>> > modparam("dispatcher", "list_file", \
"../etc/dispatcher.list")<br> >>>> ><br>
>>>> > in the kamailio.cfg.<br>
>>>> ><br>
>>>> > But looking at:<br>
>>>> > <a \
href="http://kamailio.org/docs/modules/3.1.x/modules_k/dispatcher.html" \
target="_blank">http://kamailio.org/docs/modules/3.1.x/modules_k/dispatcher.html</a><br>
>>>> > I'm having difficulties to placing:<br>
>>>> ><br>
>>>> > ds_select_dst("1", "0");<br>
>>>> ><br>
>>>> > in the kamailio.cfg that was created originally.<br>
>>>> ><br>
>>>> > Can anyone help me?<br>
>>>> ><br>
>>>> > _______________________________________________<br>
>>>> > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users \
mailing<br> >>>> > list<br>
>>>> > <a \
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br> \
>>>> > <a \
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" \
target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br> \
>>>> ><br> >>>> ><br>
>>>><br>
>>>><br>
>>>><br>
>>>> --<br>
>>>> Carsten Bock<br>
>>>> CEO (Geschäftsführer)<br>
>>>><br>
>>>> ng-voice GmbH i. Gr.<br>
>>>> Schomburgstr. 80<br>
>>>> D-22767 Hamburg / Germany<br>
>>>><br>
>>>> <a href="http://www.ng-voice.com" \
target="_blank">http://www.ng-voice.com</a><br> >>>> mailto:<a \
href="mailto:carsten@ng-voice.com">carsten@ng-voice.com</a><br> >>>><br>
>>>> Mobile <a href="tel:%2B49%20179%202021244" value="+491792021244">+49 \
179 2021244</a><br> >>>> Office <a href="tel:%2B49%2040%2034927219" \
value="+494034927219">+49 40 34927219</a><br> >>>> Fax <a \
href="tel:%2B49%2040%2034927220" value="+494034927220">+49 40 34927220</a><br> \
>>>><br> >>>> \
_______________________________________________<br> >>>> SIP Express \
Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br> >>>> <a \
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br> \
>>>> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" \
target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br> \
>>><br> >>><br>
>>><br>
>>> _______________________________________________<br>
>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing \
list<br> >>> <a \
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br> \
>>> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" \
target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br> \
>>><br> >>> --<br>
>>> Daniel-Constantin Mierla -- <a href="http://www.asipto.com" \
target="_blank">http://www.asipto.com</a><br> >>> Kamailio Advanced \
Training, Oct 10-13, Berlin: <a href="http://asipto.com/u/kat" \
target="_blank">http://asipto.com/u/kat</a><br> >>> <a \
href="http://linkedin.com/in/miconda" \
target="_blank">http://linkedin.com/in/miconda</a> -- <a \
href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a><br> \
>><br> >> --<br>
>> Daniel-Constantin Mierla -- <a href="http://www.asipto.com" \
target="_blank">http://www.asipto.com</a><br> >> Kamailio Advanced Training, \
Oct 10-13, Berlin: <a href="http://asipto.com/u/kat" \
target="_blank">http://asipto.com/u/kat</a><br> >> <a \
href="http://linkedin.com/in/miconda" \
target="_blank">http://linkedin.com/in/miconda</a> -- <a \
href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a><br> \
><br> > _______________________________________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" \
target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br> \
><br> ><br>
<br>
<br>
<br>
--<br>
Carsten Bock<br>
CEO (Geschäftsführer)<br>
<br>
ng-voice GmbH i. Gr.<br>
Schomburgstr. 80<br>
D-22767 Hamburg / Germany<br>
<br>
<a href="http://www.ng-voice.com" target="_blank">http://www.ng-voice.com</a><br>
mailto:<a href="mailto:carsten@ng-voice.com">carsten@ng-voice.com</a><br>
<br>
Mobile <a href="tel:%2B49%20179%202021244" value="+491792021244">+49 179 \
2021244</a><br> Office <a href="tel:%2B49%2040%2034927219" value="+494034927219">+49 \
40 34927219</a><br> Fax <a href="tel:%2B49%2040%2034927220" value="+494034927220">+49 \
40 34927220</a><br> <br>
</div></div>Hier finden Sie unsere handelsrechtlichen Pflichtangaben:<br>
<a href="http://www.ng-voice.com/imprint/" \
target="_blank">http://www.ng-voice.com/imprint/</a><br> \
<br>_______________________________________________<br> SIP Express Router (SER) and \
Kamailio (OpenSER) - sr-users mailing list<br> <a \
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br> <a \
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" \
target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br> \
<br></blockquote></div><br>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic