[SR-Users] Kamailio with dispatcher and asterisks real time

ospos web osposweb at gmail.com
Tue May 5 01:16:12 CEST 2020


On Sun, May 3, 2020 at 3:17 PM PICCORO McKAY Lenz
<mckaygerhard at gmail.com> wrote:
> are the string ip comparitions. The guide points out two important routines,
> which are FROMASTERISK and TOASTERISK, in these it is verified if the
> request acts from asterisk, or goes to asterisk.
> But are another routine that are also important, es la REGFWD

many many thans! now it worked at leas some call are making in some asterisk..
but as you pointed here seems nobody wants to help us with the
route[REGFWD} also i am a novice in this SIP world.. can anybody help
me? PLEASE!

> HERE THE LAST PROBLEM:
>
> taken from the asterisk realtime guide, just almost at the lasted
> lines of the kamailio.cfg this is the code part that i cannot or i
> does not have enoought knowledge to translate that rules
> to the dispatcher ruling.. there are the code:
>
> route[REGFWD] {
>         if(!is_method("REGISTER"))
>         {
>                 return;
>         }
>         $var(rip) = $sel(cfg_get.asterisk.bindip);
>         $uac_req(method)="REGISTER";
>         $uac_req(ruri)="sip:" + $var(rip) + ":" + $sel(cfg_get.asterisk.bindport);
>         $uac_req(furi)="sip:" + $au + "@" + $var(rip);
>         $uac_req(turi)="sip:" + $au + "@" + $var(rip);
>         $uac_req(hdrs)="Contact: <sip:" + $au + "@"
>                                 + $sel(cfg_get.kamailio.bindip)
>                                 + ":" + $sel(cfg_get.kamailio.bindport) + ">\r\n";
>         if($sel(contact.expires) != $null)
>                 $uac_req(hdrs)= $uac_req(hdrs) + "Expires: " + $sel(contact.expires) + "\r\n";
>         else
>                 $uac_req(hdrs)= $uac_req(hdrs) + "Expires: " + $hdr(Expires) + "\r\n";
>         uac_req_send();
> }
>
>
> 2020-04-22 19:59 GMT-04:00, ospos web <osposweb at gmail.com>:
> > Hi all folks, Hello people, I'm new and I've been reading, so I have
> > some but not much knowledge.
> >
> > I must integrate as work, two asterisk to the kamailio, a month ago I
> > started with the real time guide [1] with only one kamailio, register,
> > start the call, etc.. I am with the basics and it works.
> >
> > Now I must put two asterisk and using dispatcher, but although I read
> > the documentation of the module.. use it and so then configure a list
> > of file (with the asterisk where to dispatch) and not in the
> > database..
> >
> > MY HELP REQUEST QUESTION: How do I use dispatcher in load balancing
> > mode, but taking in consideration my already working realtime-asterisk
> > worling setup?
> >
> > THE PROBLEM: since with what I did it simply sends the call to both
> > asterisk. i setup only 4 easy steps.. load module, then setup params
> > (where i set the asterisk lists by file, and not db) and then added a
> > "ds_select_dst(1, 4);" before the "route(RELAY);" line. please help!
> >
> > as i know.. the ds_select_dst(1, 4); prepare wicht asterisk will be
> > choose to use and then when the routing RELAY happends no cares if in
> > the realtime previously guide are a main asterisk? right?
> >
> > NOTE: I know it's a big world... but I can't keep reading the kamailio
> > theory, i must goon forward due i have to lear later once are property
> > working..
> >
> > [1]
> > https://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb
> >
> > _______________________________________________
> > Kamailio (SER) - Users Mailing List
> > sr-users at lists.kamailio.org
> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> >
>
>
> --
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users



-- 
www.osposweb.com



More information about the sr-users mailing list