Thanks  Daniel!
I'm folow:   https://www.kamailio.org/docs/modules/stable/modules/dispatcher.html#dispatcher.ex.install
but my kamailio get errors: 
parameter <dstid_avp> of type <1> not found in module <dispatcher>
parameter <attrs_avp> of type <1> not found in module <dispatcher>
parameter <sock_avp> of type <1> not found in module <dispatcher>
parameter <cnt_avp> of type <1> not found in module <dispatcher>
I have no infor how to fix it
Can you show me more detail about how to do:
     - Fix error
     - Set the socket attribute to your private ip socket to do bridge from external to internal networks. 
                  (just add to "attrs(str,opt)", and in my situation, it is my private IP of Kamailio server1 ? forexample: 
                             1 sip:<PublicIP>:<Port> 0 0 duid=kamilioserver1;socket=<protocol>:<KamailioServer1_PrivateIP>:<Port>;my=xyz) (I don't understand what  my=xyz mean..)
    - Do i have to do something in Kamailio server2 and KamailioServer3 (or just create kamailio database each server and synchronyze kamailio database between them?)
Thanks!

And thanks  Mojtaba! I had read your recomment tutorial with OpenSIP, but do not know how to apply to my system. Have you got an other more clearly tutorial for this?

On Thu, Jul 12, 2018 at 5:00 PM, <sr-users-request@lists.kamailio.org> wrote:
Send sr-users mailing list submissions to
        sr-users@lists.kamailio.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
or, via email, send a message with subject or body 'help' to
        sr-users-request@lists.kamailio.org

You can reach the person managing the list at
        sr-users-owner@lists.kamailio.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of sr-users digest..."


Today's Topics:

   1. UAC register (Ben Hood)
   2. Re: UAC register (Daniel-Constantin Mierla)
   3. Re: UAC register (Daniel-Constantin Mierla)
   4. dispatcher module complete tutorial (SamSung TV)
   5. Re: UAC register (Ben Hood)
   6. Re: UAC register (Ben Hood)
   7. Re: dispatcher module complete tutorial (Mojtaba)
   8. Re: SIP/2.0 500 I'm terribly sorry,       server error occurred
      (1/TM) (Aqs Younas)
   9. Re: dispatcher module complete tutorial (Daniel-Constantin Mierla)
  10. Re: UAC register (Daniel-Constantin Mierla)
  11. Re: UAC register (Daniel-Constantin Mierla)
  12. Re: SIP/2.0 500 I'm terribly sorry, server error occurred
      (1/TM) (Daniel-Constantin Mierla)


----------------------------------------------------------------------

Message: 1
Date: Wed, 11 Jul 2018 12:36:36 +0100
From: Ben Hood <ben@relops.com>
To: sr-users@lists.sip-router.org
Subject: [SR-Users] UAC register
Message-ID: <7B1A15CF-7BCF-4BCC-8DF0-20E2906BA1DA@relops.com>
Content-Type: text/plain; charset="utf-8"

Hi,

I’m wondering if there is a flag somewhere in the UAC module config that prevents remote registration from happening.

It looks like I’ve loaded the uacreg table but I can’t see any REGISTER methods being sent from Kamailio to the remote peer.

The remote registrants are loaded using this config:

listen=udp:172.16.176.150:5060

loadmodule "db_postgres.so"
loadmodule "kex.so"
loadmodule "corex.so"
loadmodule "tm.so"
loadmodule "tmx.so"
loadmodule "sl.so"
loadmodule "rr.so"
loadmodule "pv.so"
loadmodule "maxfwd.so"
loadmodule "textops.so"
loadmodule "siputils.so"
loadmodule "xlog.so"
loadmodule "sanity.so"
loadmodule "ctl.so"
loadmodule "cfg_rpc.so"
loadmodule "counters.so"
loadmodule "uac.so"

modparam("uac", "reg_db_url", DBURL)
modparam("uac", "reg_contact_addr", “172.16.176.150:5060")
modparam("uac", "reg_db_table", "uacreg")
modparam("uac", "reg_timer_interval", 10)
modparam("uac", "reg_retry_interval", 10)

request_route {
  route(RELAY);
}

route[RELAY] {

  t_on_reply("MANAGE_REPLY");

  if (!t_relay()) {
    sl_reply_error();
  }
  exit;
}

And it looks like this has been consumed by Kamailio:

$ kamcmd uac.reg_dump
{
        l_uuid: 2cc6776d-61ed-4ea1-a3ae-055f89bd4d3f
        l_username: 126231943099723776
        l_domain: 172.16.176.150
        r_username: 1000
        r_domain: 172.16.176.129
        realm: 172.16.176.129
        auth_username: 1000
        auth_password: password
        auth_proxy: sip:172.16.176.129:5080
        expires: 0
        flags: 0
        diff_expires: -1531235076
        timer_expires: 0
        reg_init: 1531234841
        reg_delay: 0
}

Doing a refresh successfully reloads the uacreg data

$ kamcmd uac.reg_refresh 2cc6776d-61ed-4ea1-a3ae-055f89bd4d3f

I can get Kamailio to forward an OPTIONS message to the remote peer () to verify network connectivity, e.g. :

$ru = "sip:1000@172.16.176.129:5080";
$fs = "udp:172.16.176.150:5060";

But Kamailio does not appear to generate REGISTER messages either after first boot or as a result of the manual refresh.

This is using an instance of Kamailio 5.0.1. Should I try with a newer version?

Is there a way to get extra debugging of the uac module?

If I increase the debug verbosity, I get quite granular detail for the DB traffic, but the uac module doesn’t appear to emit much diagnostics.

Many thanks,

Ben





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180711/3f3f7069/attachment-0001.html>

------------------------------

Message: 2
Date: Wed, 11 Jul 2018 18:11:41 +0200
From: Daniel-Constantin Mierla <miconda@gmail.com>
To: "Kamailio (SER) - Users Mailing List"
        <sr-users@lists.kamailio.org>, Ben Hood <ben@relops.com>,
        sr-users@lists.sip-router.org
Subject: Re: [SR-Users] UAC register
Message-ID: <72b0b243-998f-c400-0129-6692521d3ff8@gmail.com>
Content-Type: text/plain; charset="utf-8"

Hello,

is the 'expires' value in the db records greater than 0? It is shown 0
in the rpc dump.

Cheers,
Daniel


On 11.07.18 13:36, Ben Hood wrote:
> Hi,
>
> I’m wondering if there is a flag somewhere in the UAC module config
> that prevents remote registration from happening.
>
> It looks like I’ve loaded the uacreg table but I can’t see any
> REGISTER methods being sent from Kamailio to the remote peer.
>
> The remote registrants are loaded using this config:
>
> listen=udp:172.16.176.150:5060
>
> loadmodule "db_postgres.so"
> loadmodule "kex.so"
> loadmodule "corex.so"
> loadmodule "tm.so"
> loadmodule "tmx.so"
> loadmodule "sl.so"
> loadmodule "rr.so"
> loadmodule "pv.so"
> loadmodule "maxfwd.so"
> loadmodule "textops.so"
> loadmodule "siputils.so"
> loadmodule "xlog.so"
> loadmodule "sanity.so"
> loadmodule "ctl.so"
> loadmodule "cfg_rpc.so"
> loadmodule "counters.so"
> loadmodule "uac.so"
>
> modparam("uac", "reg_db_url", DBURL)
> modparam("uac", "reg_contact_addr", “172.16.176.150:5060")
> modparam("uac", "reg_db_table", "uacreg")
> modparam("uac", "reg_timer_interval", 10)
> modparam("uac", "reg_retry_interval", 10)
>
> request_route {
>   route(RELAY);
> }
>
> route[RELAY] {
>
>   t_on_reply("MANAGE_REPLY");
>
>   if (!t_relay()) {
>     sl_reply_error();
>   }
>   exit;
> }
>
> And it looks like this has been consumed by Kamailio:
>
> $ kamcmd uac.reg_dump
> {
> l_uuid: 2cc6776d-61ed-4ea1-a3ae-055f89bd4d3f
> l_username: 126231943099723776
> l_domain: 172.16.176.150
> r_username: 1000
> r_domain: 172.16.176.129
> realm: 172.16.176.129
> auth_username: 1000
> auth_password: password
> auth_proxy: sip:172.16.176.129:5080
> expires: 0
> flags: 0
> diff_expires: -1531235076
> timer_expires: 0
> reg_init: 1531234841
> reg_delay: 0
> }
>
> Doing a refresh successfully reloads the uacreg data
>
> $ kamcmd uac.reg_refresh 2cc6776d-61ed-4ea1-a3ae-055f89bd4d3f
>
> I can get Kamailio to forward an OPTIONS message to the remote peer ()
> to verify network connectivity, e.g. :
>
> $ru = "sip:1000@172.16.176.129:5080";
> $fs = "udp:172.16.176.150:5060";
>
> But Kamailio does not appear to generate REGISTER messages either
> after first boot or as a result of the manual refresh.
>
> This is using an instance of Kamailio 5.0.1. Should I try with a newer
> version?
>
> Is there a way to get extra debugging of the uac module?
>
> If I increase the debug verbosity, I get quite granular detail for the
> DB traffic, but the uac module doesn’t appear to emit much diagnostics.
>
> Many thanks,
>
> Ben
>
>
>
>
>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180711/ab4c3410/attachment-0002.html>

------------------------------

Message: 3
Date: Wed, 11 Jul 2018 18:11:41 +0200
From: Daniel-Constantin Mierla <miconda@gmail.com>
To: "Kamailio (SER) - Users Mailing List"
        <sr-users@lists.kamailio.org>, Ben Hood <ben@relops.com>,
        sr-users@lists.sip-router.org
Subject: Re: [SR-Users] UAC register
Message-ID: <72b0b243-998f-c400-0129-6692521d3ff8@gmail.com>
Content-Type: text/plain; charset="utf-8"

Hello,

is the 'expires' value in the db records greater than 0? It is shown 0
in the rpc dump.

Cheers,
Daniel


On 11.07.18 13:36, Ben Hood wrote:
> Hi,
>
> I’m wondering if there is a flag somewhere in the UAC module config
> that prevents remote registration from happening.
>
> It looks like I’ve loaded the uacreg table but I can’t see any
> REGISTER methods being sent from Kamailio to the remote peer.
>
> The remote registrants are loaded using this config:
>
> listen=udp:172.16.176.150:5060
>
> loadmodule "db_postgres.so"
> loadmodule "kex.so"
> loadmodule "corex.so"
> loadmodule "tm.so"
> loadmodule "tmx.so"
> loadmodule "sl.so"
> loadmodule "rr.so"
> loadmodule "pv.so"
> loadmodule "maxfwd.so"
> loadmodule "textops.so"
> loadmodule "siputils.so"
> loadmodule "xlog.so"
> loadmodule "sanity.so"
> loadmodule "ctl.so"
> loadmodule "cfg_rpc.so"
> loadmodule "counters.so"
> loadmodule "uac.so"
>
> modparam("uac", "reg_db_url", DBURL)
> modparam("uac", "reg_contact_addr", “172.16.176.150:5060")
> modparam("uac", "reg_db_table", "uacreg")
> modparam("uac", "reg_timer_interval", 10)
> modparam("uac", "reg_retry_interval", 10)
>
> request_route {
>   route(RELAY);
> }
>
> route[RELAY] {
>
>   t_on_reply("MANAGE_REPLY");
>
>   if (!t_relay()) {
>     sl_reply_error();
>   }
>   exit;
> }
>
> And it looks like this has been consumed by Kamailio:
>
> $ kamcmd uac.reg_dump
> {
> l_uuid: 2cc6776d-61ed-4ea1-a3ae-055f89bd4d3f
> l_username: 126231943099723776
> l_domain: 172.16.176.150
> r_username: 1000
> r_domain: 172.16.176.129
> realm: 172.16.176.129
> auth_username: 1000
> auth_password: password
> auth_proxy: sip:172.16.176.129:5080
> expires: 0
> flags: 0
> diff_expires: -1531235076
> timer_expires: 0
> reg_init: 1531234841
> reg_delay: 0
> }
>
> Doing a refresh successfully reloads the uacreg data
>
> $ kamcmd uac.reg_refresh 2cc6776d-61ed-4ea1-a3ae-055f89bd4d3f
>
> I can get Kamailio to forward an OPTIONS message to the remote peer ()
> to verify network connectivity, e.g. :
>
> $ru = "sip:1000@172.16.176.129:5080";
> $fs = "udp:172.16.176.150:5060";
>
> But Kamailio does not appear to generate REGISTER messages either
> after first boot or as a result of the manual refresh.
>
> This is using an instance of Kamailio 5.0.1. Should I try with a newer
> version?
>
> Is there a way to get extra debugging of the uac module?
>
> If I increase the debug verbosity, I get quite granular detail for the
> DB traffic, but the uac module doesn’t appear to emit much diagnostics.
>
> Many thanks,
>
> Ben
>
>
>
>
>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180711/ab4c3410/attachment-0003.html>

------------------------------

Message: 4
Date: Wed, 11 Jul 2018 21:04:57 +0700
From: SamSung TV <samsungtv32inc@gmail.com>
To: sr-users@lists.kamailio.org
Subject: [SR-Users] dispatcher module complete tutorial
Message-ID:
        <CABjDKsEzuN9Hog=bYo+K5gfoHjTwZ=dHOqMyYbEEgxYdxZsS+g@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I want to use kamailio as load balancing server



my topo:

         (Private IP) Kamailio  server2

          /

         /
(public iP)Kamailio server1(load balance)(Private IP)

        \
                                                                        \


          (Private IP) Kamailio server1

Any body can recomment me some tutorial to do this?
Thanks any advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180711/b222d309/attachment-0001.html>

------------------------------

Message: 5
Date: Wed, 11 Jul 2018 23:11:23 +0100
From: Ben Hood <ben@relops.com>
To: Daniel-Constantin Mierla <miconda@gmail.com>
Cc: sr-users@lists.sip-router.org, "Kamailio \(SER\) - Users Mailing
        List" <sr-users@lists.kamailio.org>
Subject: Re: [SR-Users] UAC register
Message-ID: <74D561E0-8F8E-4F74-B2A7-F54A8CF6706C@relops.com>
Content-Type: text/plain; charset="utf-8"



> On 11 Jul 2018, at 17:11, Daniel-Constantin Mierla <miconda@gmail.com> wrote:
> is the 'expires' value in the db records greater than 0? It is shown 0 in the rpc dump.
>

Yes, that was it.

After setting the expires field to 360 and the reg_delay to 3, kamailio sent the REGISTER messages to the auth proxy:

 7(9339) DEBUG: tm [uac.c:427]: t_uac_prepare(): next_hop=<sip:172.16.176.129:5080>

So now the uac module has successfully registered with the remote proxy.

Many thanks for you help, very much appreciated :-)

Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180711/64396061/attachment-0002.html>

------------------------------

Message: 6
Date: Wed, 11 Jul 2018 23:11:23 +0100
From: Ben Hood <ben@relops.com>
To: Daniel-Constantin Mierla <miconda@gmail.com>
Cc: sr-users@lists.sip-router.org, "Kamailio \(SER\) - Users Mailing
        List" <sr-users@lists.kamailio.org>
Subject: Re: [SR-Users] UAC register
Message-ID: <74D561E0-8F8E-4F74-B2A7-F54A8CF6706C@relops.com>
Content-Type: text/plain; charset="utf-8"



> On 11 Jul 2018, at 17:11, Daniel-Constantin Mierla <miconda@gmail.com> wrote:
> is the 'expires' value in the db records greater than 0? It is shown 0 in the rpc dump.
>

Yes, that was it.

After setting the expires field to 360 and the reg_delay to 3, kamailio sent the REGISTER messages to the auth proxy:

 7(9339) DEBUG: tm [uac.c:427]: t_uac_prepare(): next_hop=<sip:172.16.176.129:5080>

So now the uac module has successfully registered with the remote proxy.

Many thanks for you help, very much appreciated :-)

Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180711/64396061/attachment-0003.html>

------------------------------

Message: 7
Date: Thu, 12 Jul 2018 11:16:04 +0430
From: Mojtaba <mespio@gmail.com>
To: "Kamailio (SER) - Users Mailing List"
        <sr-users@lists.kamailio.org>
Subject: Re: [SR-Users] dispatcher module complete tutorial
Message-ID:
        <CABVi_EzdMTbrQDwxZbg6_CBHB-DEqzKtk=pdS1tEKhBUmT+CcQ@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

Hi,
You could use this tutorial - Load Balancing in OpenSIPS. It is
similar to Kamailio.
http://www.opensips.org/Documentation/Tutorials-LoadBalancing-1-9
With Regards
Mojtaba

On Wed, Jul 11, 2018 at 6:34 PM, SamSung TV <samsungtv32inc@gmail.com> wrote:
> I want to use kamailio as load balancing server
>
>
>
> my topo:
>
> (Private IP) Kamailio  server2
>
> /
>
> /
> (public iP)Kamailio server1(load balance)(Private IP)
>
> \
> \
>
> (Private IP) Kamailio server1
>
> Any body can recomment me some tutorial to do this?
> Thanks any advance!
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>



--
--Mojtaba Esfandiari.S



------------------------------

Message: 8
Date: Wed, 11 Jul 2018 22:15:49 +0500
From: Aqs Younas <aqsyounas@gmail.com>
Cc: "Kamailio (SER) - Users Mailing List"
        <sr-users@lists.kamailio.org>
Subject: Re: [SR-Users] SIP/2.0 500 I'm terribly sorry, server error
        occurred (1/TM)
Message-ID:
        <CAGVOjVWEmYFheRg7Zy7PxdGXGqq9TujGibXvFjc7ywdxmbvBEw@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Sorry, if i could not explain it well before.  I hope below picture will
make it clear.

[image: image.png]

is it some configuration issue?

BTW what is the best way to call multiple async functions in kamailio.

Any suggestion is much appreciated.

Best Regards,

Aqs Younas

On Wed, 11 Jul 2018 at 12:39, Daniel-Constantin Mierla <miconda@gmail.com>
wrote:

> Hello,
>
> On 10.07.18 22:08, Aqs Younas wrote:
>
> Greeting list,
>
> I am using two async functions(http_async_query) in configuration one for
> authentication and other one for push notifications. I am also using tsilio
> module to suspend the transaction and resumed it.
>
> I am resetting this flag 'T_ASYNC_SUSPENDED' before suspending the
> transaction. Everything is working fine except. When caller send CANCEL on
> the call, kamailio successfully completes sip flow at callee(B party) side
> but send back below packet towards caller.
>
>
> what the above statement means? Kamailio forwarded the invite to callee,
> got 200ok, but sends back the 200 response?
>
> Cheers,
> Daniel
>
>
> 2018/07/10 19:47:41.125893 172.31.21.87:5060 -> 39.38.156.111:59969
> SIP/2.0 500 I'm terribly sorry, server error occurred (1/TM )
> Via: SIP/2.0/UDP 39.38.156.111:59969
> ;branch=z9hG4bK-524287-1---91c6114330fe6293;rport=59969
> To: <sip:923335550609@sip.talkhomeappcall.com
> ;transport=UDP>;tag=9fe2d4c84d97a4af81aa65ca8fc51b3d-62cb
> From: <sip:923135082344@sip.talkhomeappcall.com
> ;transport=UDP>;tag=d72eaf4c
> Call-ID: VkAwxpSgkKSGn5dXaXgn5A..
> CSeq: 2 INVITE
> Content-Length: 0
>
>
> root@sip:~# kamailio -V
> version: kamailio 5.1.3 (x86_64/linux)
> flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE,
> USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC,
> TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
> USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
> HAVE_RESOLV_RES
> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
> MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
> id: unknown
> compiled on 08:06:26 May  2 2018 with gcc 4.9.2
>
>
> Could someone please help me out how to fix this. Cancels are handles
> automatically so, i cannot hardcore anything to resolve it.
>
> Best Regards,
>
> Aqs Younas
>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing Listsr-users@lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
> Kamailio World Conference -- www.kamailioworld.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180711/df28b5f3/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 170854 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180711/df28b5f3/attachment-0001.png>

------------------------------

Message: 9
Date: Thu, 12 Jul 2018 09:53:58 +0200
From: Daniel-Constantin Mierla <miconda@gmail.com>
To: "Kamailio (SER) - Users Mailing List"
        <sr-users@lists.kamailio.org>, SamSung TV <samsungtv32inc@gmail.com>
Subject: Re: [SR-Users] dispatcher module complete tutorial
Message-ID: <6b75c763-8c7a-ef0b-463b-7a1c50c43ce5@gmail.com>
Content-Type: text/plain; charset="utf-8"

Dispatcher module has a full sample config as well as guidelines about
building your dispatcher list file:

  -
https://www.kamailio.org/docs/modules/stable/modules/dispatcher.html#dispatcher.ex.install

As an extra hint, you have to set the socket attribute to your private
ip socket to do bridge from external to internal networks.

Cheers,
Daniel


On 11.07.18 16:04, SamSung TV wrote:
> I want to use kamailio as load balancing server
>
>
>
> my topo:   
>                                                                      
>                (Private IP) Kamailio  server2 
>                                                                      
>                 /
>                                                                      
>                /
> (public iP)Kamailio server1(load balance)(Private IP)
>                                                                      
>               \                                                       
>                                                                      
>             \                               
>                                                                      
>                 (Private IP) Kamailio server1
>
> Any body can recomment me some tutorial to do this?
> Thanks any advance!
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180712/cd9b28cd/attachment-0001.html>

------------------------------

Message: 10
Date: Thu, 12 Jul 2018 09:55:24 +0200
From: Daniel-Constantin Mierla <miconda@gmail.com>
To: Ben Hood <ben@relops.com>
Cc: sr-users@lists.sip-router.org, "Kamailio \(SER\) - Users Mailing
        List" <sr-users@lists.kamailio.org>
Subject: Re: [SR-Users] UAC register
Message-ID: <07ed6aea-101f-d538-ff7a-87a7a51bff07@gmail.com>
Content-Type: text/plain; charset="windows-1252"

It should also work without setting reg_delay, however, reg_delay
purpose it to spread the registrations not to be done all at the same
time, so if you set it, try to use several values if you have many users.

Cheers,
Daniel


On 12.07.18 00:11, Ben Hood wrote:
>
>
>> On 11 Jul 2018, at 17:11, Daniel-Constantin Mierla <miconda@gmail.com
>> <mailto:miconda@gmail.com>> wrote:
>>
>> is the 'expires' value in the db records greater than 0? It is shown
>> 0 in the rpc dump.
>>
>
> Yes, that was it.
>
> After setting the expires field to 360 and the reg_delay to 3,
> kamailio sent the REGISTER messages to the auth proxy:
>
>  7(9339) DEBUG: tm [uac.c:427]: t_uac_prepare():
> next_hop=<sip:172.16.176.129:5080>
>
> So now the uac module has successfully registered with the remote proxy.
>
> Many thanks for you help, very much appreciated :-)
>
> Ben

--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180712/465b0bf6/attachment-0002.html>

------------------------------

Message: 11
Date: Thu, 12 Jul 2018 09:55:24 +0200
From: Daniel-Constantin Mierla <miconda@gmail.com>
To: Ben Hood <ben@relops.com>
Cc: sr-users@lists.sip-router.org, "Kamailio \(SER\) - Users Mailing
        List" <sr-users@lists.kamailio.org>
Subject: Re: [SR-Users] UAC register
Message-ID: <07ed6aea-101f-d538-ff7a-87a7a51bff07@gmail.com>
Content-Type: text/plain; charset="windows-1252"

It should also work without setting reg_delay, however, reg_delay
purpose it to spread the registrations not to be done all at the same
time, so if you set it, try to use several values if you have many users.

Cheers,
Daniel


On 12.07.18 00:11, Ben Hood wrote:
>
>
>> On 11 Jul 2018, at 17:11, Daniel-Constantin Mierla <miconda@gmail.com
>> <mailto:miconda@gmail.com>> wrote:
>>
>> is the 'expires' value in the db records greater than 0? It is shown
>> 0 in the rpc dump.
>>
>
> Yes, that was it.
>
> After setting the expires field to 360 and the reg_delay to 3,
> kamailio sent the REGISTER messages to the auth proxy:
>
>  7(9339) DEBUG: tm [uac.c:427]: t_uac_prepare():
> next_hop=<sip:172.16.176.129:5080>
>
> So now the uac module has successfully registered with the remote proxy.
>
> Many thanks for you help, very much appreciated :-)
>
> Ben

--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180712/465b0bf6/attachment-0003.html>

------------------------------

Message: 12
Date: Thu, 12 Jul 2018 09:56:22 +0200
From: Daniel-Constantin Mierla <miconda@gmail.com>
To: "Kamailio (SER) - Users Mailing List"
        <sr-users@lists.kamailio.org>, Aqs Younas <aqsyounas@gmail.com>
Subject: Re: [SR-Users] SIP/2.0 500 I'm terribly sorry, server error
        occurred (1/TM)
Message-ID: <306d7a97-cdfb-08dc-575b-552b20f38ed9@gmail.com>
Content-Type: text/plain; charset="utf-8"

Have you looked at log messages, any errors?

If not, then run with debug=3 in kamailio config and send full log
messages for such call.

Cheers,
Daniel


On 11.07.18 19:15, Aqs Younas wrote:
> Sorry, if i could not explain it well before.  I hope below picture
> will make it clear. 
>
> ...
>
> is it some configuration issue? 
>
> BTW what is the best way to call multiple async functions in kamailio. 
>
> Any suggestion is much appreciated. 
>
> Best Regards, 
>
> Aqs Younas
>
> On Wed, 11 Jul 2018 at 12:39, Daniel-Constantin Mierla
> <miconda@gmail.com <mailto:miconda@gmail.com>> wrote:
>
>     Hello,
>
>
>     On 10.07.18 22:08, Aqs Younas wrote:
>>     Greeting list, 
>>
>>     I am using two async functions(http_async_query) in configuration
>>     one for authentication and other one for push notifications. I am
>>     also using tsilio module to suspend the transaction and resumed it.  
>>
>>     I am resetting this flag 'T_ASYNC_SUSPENDED' before suspending
>>     the transaction. Everything is working fine except. When caller
>>     send CANCEL on the call, kamailio successfully completes sip flow
>>     at callee(B party) side but send back below packet towards caller.
>
>     what the above statement means? Kamailio forwarded the invite to
>     callee, got 200ok, but sends back the 200 response?
>
>     Cheers,
>     Daniel
>
>>      
>>     2018/07/10 19:47:41.125893 172.31.21.87:5060
>>     <http://172.31.21.87:5060> -> 39.38.156.111:59969
>>     <http://39.38.156.111:59969>
>>     SIP/2.0 500 I'm terribly sorry, server error occurred (1/TM )
>>     Via: SIP/2.0/UDP
>>     39.38.156.111:59969;branch=z9hG4bK-524287-1---91c6114330fe6293;rport=59969
>>     To: <sip:923335550609@sip.talkhomeappcall.com
>>     <mailto:sip%3A923335550609@sip.talkhomeappcall.com>;transport=UDP>;tag=9fe2d4c84d97a4af81aa65ca8fc51b3d-62cb
>>     From: <sip:923135082344@sip.talkhomeappcall.com
>>     <mailto:sip%3A923135082344@sip.talkhomeappcall.com>;transport=UDP>;tag=d72eaf4c
>>     Call-ID: VkAwxpSgkKSGn5dXaXgn5A..
>>     CSeq: 2 INVITE
>>     Content-Length: 0
>>
>>
>>     root@sip:~# kamailio -V
>>     version: kamailio 5.1.3 (x86_64/linux)
>>     flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS,
>>     DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP,
>>     PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY,
>>     USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,
>>     USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
>>     ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN
>>     16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
>>     poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
>>     id: unknown
>>     compiled on 08:06:26 May  2 2018 with gcc 4.9.2
>>
>>
>>     Could someone please help me out how to fix this. Cancels are
>>     handles automatically so, i cannot hardcore anything to resolve it. 
>>
>>     Best Regards, 
>>
>>     Aqs Younas
>>
>>
>>
>>     _______________________________________________
>>     Kamailio (SER) - Users Mailing List
>>     sr-users@lists.kamailio.org <mailto:sr-users@lists.kamailio.org>
>>     https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>     --
>     Daniel-Constantin Mierla -- www.asipto.com <http://www.asipto.com>
>     www.twitter.com/miconda <http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda>
>     Kamailio World Conference -- www.kamailioworld.com <http://www.kamailioworld.com>
>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180712/e2363e95/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
sr-users mailing list
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


------------------------------

End of sr-users Digest, Vol 158, Issue 12
*****************************************