[SR-Users] sr-users Digest, Vol 74, Issue 38

Henrik Aagaard Sørensen henrikaagaardsorensen at gmail.com
Thu Jul 14 09:54:14 CEST 2011


On Thu, Jul 14, 2011 at 9:51 AM, <sr-users-request at lists.sip-router.org>wrote:

> Send sr-users mailing list submissions to
>        sr-users at lists.sip-router.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> or, via email, send a message with subject or body 'help' to
>        sr-users-request at lists.sip-router.org
>
> You can reach the person managing the list at
>        sr-users-owner at lists.sip-router.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of sr-users digest..."
>
>
> Today's Topics:
>
>   1. Re: memory requirements for a registrar server
>      (Henning Westerholt)
>   2. Re: kamailio - proxy/relay (Sunny)
>   3. Syntax error - custom parameter (Skyler)
>   4. Syntax error - custom parameter (Skyler)
>   5. Re: kamailio - proxy/relay (I?aki Baz Castillo)
>   6. Re: topoh module - query about operation (Pete Kelly)
>   7. Re: Call several different subscribers, first to pickup gets
>      the call. (Klaus Darilion)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 14 Jul 2011 00:27:18 +0200
> From: Henning Westerholt <Henning.Westerholt at 1und1.de>
> Subject: Re: [SR-Users] memory requirements for a registrar server
> To: Fabian Borot <fborot at hotmail.com>
> Cc: "sr-users at lists.sip-router.org" <sr-users at lists.sip-router.org>
> Message-ID:
>        <D3B36E097FE87E44A5CDE7C1AB61682C3CED2EC9 at EXCHANGE03.webde.local>
> Content-Type: text/plain; charset="us-ascii"
>
> Fabian wrote:
> > ok, great...this is, I think, the relevant section on config.h
>
> Hi Fabian,
>
> > #define PKG_MEM_SIZE 4
> > #define PKG_MEM_POOL_SIZE PKG_MEM_SIZE*1024*1024        /*!< used only if
> PKG_MALLOC is defined*/
> > #define SHM_MEM_SIZE 32                         /*!< used if SH_MEM is
> defined*/
> >
> >
> > SHM_MEM_SIZE 32 --> this looks like 32 MB
> > and PKG_MEM_SIZE 4 looks like Bytes, that is why the PKG_MEM_POOL_SIZE is
> multiplied by 1024*1024 to get MBs I assume.
>
> Correct, 4MB and 32MB. I'll have a look to to the file to document it a bit
> better in the next days.
>
> You don't need to change config.h to change the shared pool. There exists a
> cmd line parameter,
> have a look to 'man kamailio' or run 'kamailio -h' for more informations.
> The specified values are
> just used in the case nothing else is configured. They are also some cfg
> script parameters, i think.
>
> Regards,
>
> Henning
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 13 Jul 2011 23:39:57 +0100
> From: Sunny <no7find at gmail.com>
> Subject: Re: [SR-Users] kamailio - proxy/relay
> To: miconda at gmail.com
> Cc: "SIP Router - Kamailio \(OpenSER\) and SIP Express Router \(SER\)
>        - Users Mailing List" <sr-users at lists.sip-router.org>
> Message-ID:
>        <CAE_sWtEE4qv5u7bBWyhMSAjMWYB6hKpO6G=_DGyoCK7Jt0OKEA at mail.gmail.com
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Daniel,
>
> I was using:
> $ru = $(ru{re.subst,/[KAMAILIO]/[IP-PBX  ]/});
> t_relay_to_udp("[IP-PBX  ]", "5060");
> but your way looks better.
>
> This works fine in this direction:
> [UA] --> [KAMAILIO] --> [IP-PBX  ]
>
> but not in this:
> [UA] <-- [KAMAILIO] <-- [IP-PBX  ]
> because Kamailio is not keeping the location of the UA.
>
> I want to register UA's on Kamailio, but the authentication is done by
> [IP-PBX]...
> So Kamailio as Outbound Proxy + Location Server ... any idea on how I can
> achieve this configuration?
>
> Thanks,
> Sunny
>
>
>
> On 8 July 2011 09:38, Daniel-Constantin Mierla <miconda at gmail.com> wrote:
>
> > Hello,
> >
> >
> > On 7/5/11 8:46 PM, Sunny wrote:
> >
> >> Hi list,
> >>
> >> I'm trying to configure kamailio to work as a OBP (Outbound Proxy).
> >>
> >> Basically KAMAILIO receive requests from UAs, after that it acts like a
> >> client and send those requests to the IP-PBX.
> >> On the same way the responses are forwarded from IP-PBX to the UAs.
> >>
> >>
> >> [UA] --> [KAMAILIO] --> [IP-PBX  ]
> >> [UA] <-- [KAMAILIO] <-- [IP-PBX  ]
> >>
> >> Following possible call flow:
> >>
> >> [UA      ] -> [KAMAILIO] SIP/SDP Request: INVITE sip:12345678909
> @[KAMAILIO],
> >> with session description
> >> [KAMAILIO] -> [UA      ] SIP Status: 100 Trying
> >> [KAMAILIO] -> [IP-PBX  ] SIP/SDP Request: INVITE sip:12345678909
> @[IP-PBX
> >>  ], with session description
> >> [IP-PBX  ] -> [KAMAILIO] SIP Status: 100 Trying
> >> [IP-PBX  ] -> [KAMAILIO] SIP Status: 407 Proxy Authentication Required
> >> [KAMAILIO] -> [IP-PBX  ] SIP Request: ACK sip:12345678909@[IP-PBX  ]
> >> [KAMAILIO] -> [UA      ] SIP Status: 407 Proxy Authentication Required
> >> [UA      ] -> [KAMAILIO] SIP Request: ACK sip:12345678909@[KAMAILIO]
> >> [UA      ] -> [KAMAILIO] SIP/SDP Request: INVITE sip:12345678909
> @[KAMAILIO],
> >> with session description
> >> [KAMAILIO] -> [UA      ] SIP Status: 100 Trying
> >> [KAMAILIO] -> [IP-PBX  ] SIP/SDP Request: INVITE sip:12345678909
> @[IP-PBX
> >>  ], with session description
> >> [IP-PBX  ] -> [KAMAILIO] SIP Status: 100 Trying
> >> [IP-PBX  ] -> [KAMAILIO] SIP/SDP Status: 183 Session Progress, with
> >> session description
> >> [KAMAILIO] -> [UA      ] SIP/SDP Status: 183 Session Progress, with
> >> session description
> >> [IP-PBX  ] -> [KAMAILIO] SIP/SDP Status: 180 Ringing, with session
> >> description
> >> [KAMAILIO] -> [UA      ] SIP/SDP Status: 180 Ringing, with session
> >> description
> >> (...)
> >> [UA      ] -> [KAMAILIO] SIP Request: CANCEL sip:12345678909@[KAMAILIO]
> >> [KAMAILIO] -> [UA      ] SIP Status: 200 OK
> >> [KAMAILIO] -> [IP-PBX  ] SIP Request: CANCEL sip:12345678909@[IP-PBX  ]
> >> [IP-PBX  ] -> [KAMAILIO] SIP Status: 200 OK
> >> [IP-PBX  ] -> [KAMAILIO] SIP Status: 487 Request Terminated
> >> [KAMAILIO] -> [IP-PBX  ] SIP Request: ACK sip:12345678909@[IP-PBX  ]
> >> [KAMAILIO] -> [UA      ] SIP Status: 487 Request Terminated
> >> [UA      ] -> [KAMAILIO] SIP Request: ACK sip:12345678909@[KAMAILIO]
> >>
> >> Wondering if anyone could help to make this configuration work?
> >>
> >
> > what I understood from above is that you need to update the domain in
> R-URI
> > from [kamailio] to [ip-pbx]. This is easy to do:
> >
> > $rd = [ip-pbx];
> >
> > You have to do this for initial requests (register, invite).
> >
> > If you need to update From header URI, look at uac module,
> > uac_replace_from().
> >
> > Cheers,
> > Daniel
> >
> > --
> > 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
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.sip-router.org/pipermail/sr-users/attachments/20110713/5e933286/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 3
> Date: Wed, 13 Jul 2011 15:59:30 -0700
> From: Skyler <skchopperguy at gmail.com>
> Subject: [SR-Users] Syntax error - custom parameter
> To: sr-users at lists.sip-router.org
> Message-ID: <1310597970.7281.7.camel at vbox>
> Content-Type: text/plain; charset="UTF-8"
>
> Hi all,
>
>  I'm getting this error when using custom parameters and I don't why.
> when I use #!define WITH_ASTERISK the script throws the below error and
> when I remove the #!define WITH_ASTERISK the script loads without
> errors. I'm running kamailio-3.1.4-2.1.i386.rpm on Centos 5.6
>
>
> Does anyone know why this might be happening?
>
> parse error in config file //etc/kamailio/kamailio.cfg, line 123, column
> 16: syntax error
>  0(2907) : <core> [cfg.y:3412]: parse error in config
> file //etc/kamailio/kamailio.cfg, line 123, column 16: unknown config
> variable
>  0(2907) : <core> [cfg.y:3409]: parse error in config
> file //etc/kamailio/kamailio.cfg, line 123, column 17-19:
> ERROR: bad config file (3 errors)
>
>
> kamailio.cfg::: lines 122-127
>
> #!ifdef WITH_ASTERISK
> asterisk.bindip = "127.0.0.1" desc "Asterisk IP Address"
> asterisk.bindport = "5070" desc "Asterisk Port"
> kamailio.bindip = "209.15.226.21" desc "Kamailio IP Address"
> kamailio.bindport = "5060" desc "Kamailio Port"
> #!endif
> # This follows as described here:
> http://by-miconda.blogspot.com/2010/04/kamailio-30x-dyk-07-custom-cfg.html
>
>
> Thanks in advance
>
>
>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 13 Jul 2011 16:00:28 -0700
> From: Skyler <skchopperguy at gmail.com>
> Subject: [SR-Users] Syntax error - custom parameter
> To: sr-users at lists.sip-router.org
> Message-ID: <1310598028.7281.8.camel at vbox>
> Content-Type: text/plain; charset="UTF-8"
>
> Hi all,
>
>  I'm getting this error when using custom parameters and I don't why.
> when I use #!define WITH_ASTERISK the script throws the below error and
> when I remove the #!define WITH_ASTERISK the script loads without
> errors. I'm running kamailio-3.1.4-2.1.i386.rpm on Centos 5.6
>
>
> Does anyone know why this might be happening?
>
> parse error in config file //etc/kamailio/kamailio.cfg, line 123, column
> 16: syntax error
>  0(2907) : <core> [cfg.y:3412]: parse error in config
> file //etc/kamailio/kamailio.cfg, line 123, column 16: unknown config
> variable
>  0(2907) : <core> [cfg.y:3409]: parse error in config
> file //etc/kamailio/kamailio.cfg, line 123, column 17-19:
> ERROR: bad config file (3 errors)
>
>
> kamailio.cfg::: lines 122-127
>
> #!ifdef WITH_ASTERISK
> asterisk.bindip = "127.0.0.1" desc "Asterisk IP Address"
> asterisk.bindport = "5070" desc "Asterisk Port"
> kamailio.bindip = "209.15.226.21" desc "Kamailio IP Address"
> kamailio.bindport = "5060" desc "Kamailio Port"
> #!endif
> # This follows as described here:
> http://by-miconda.blogspot.com/2010/04/kamailio-30x-dyk-07-custom-cfg.html
>
>
> Thanks in advance
>
>
>
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Thu, 14 Jul 2011 01:36:32 +0200
> From: I?aki Baz Castillo <ibc at aliax.net>
> Subject: Re: [SR-Users] kamailio - proxy/relay
> To: "SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -
>        Users   Mailing List" <sr-users at lists.sip-router.org>
> Message-ID:
>        <CALiegfn2DCz+RmLsFPos-rXRHDyKM_XP1G=BM+6V2NcJtWAhUA at mail.gmail.com
> >
> Content-Type: text/plain; charset=UTF-8
>
> 2011/7/14 Sunny <no7find at gmail.com>:
> > but not in this:
> > [UA] <-- [KAMAILIO] <-- [IP-PBX? ]
> > because Kamailio is not keeping the location of the UA.
> >
> > I want to register UA's on Kamailio, but the authentication is done by
> > [IP-PBX]...
> > So Kamailio as Outbound Proxy + Location Server ... any idea on how I can
> > achieve this configuration?
>
> Use Path mechanism so Kamailio would add a "Path" header in the
> REGISTER before relaying it to the PBX. But the PBX MUST support Path
> mechanism (RFC 3327).
>
> Anyhow, for sure you would do much better by making Kamailio also
> acting as a registrar. Why do you need the PBX to be the registrar?
>
> --
> I?aki Baz Castillo
> <ibc at aliax.net>
>
>
>
> ------------------------------
>
> Message: 6
> Date: Thu, 14 Jul 2011 08:01:57 +0100
> From: Pete Kelly <pkelly at gmail.com>
> Subject: Re: [SR-Users] topoh module - query about operation
> To: "SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -
>        Users   Mailing List" <sr-users at lists.sip-router.org>
> Message-ID:
>        <CAEWH9M-5qhuqAkFcOLyntn+wgdnZZRRhHRPqPZOHG9+H3q8PVQ at mail.gmail.com
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> I see, I'll give it a try and check the result then. Thanks.
>
> On 13 July 2011 16:43, Klaus Darilion <klaus.mailinglists at pernau.at>
> wrote:
>
> >
> >
> > Am 13.07.2011 16:56, schrieb Pete Kelly:
> > > Hi
> > >
> > > I have been researching the topoh module which I understand is
> stateless
> > > and can persist across a server restart.
> > >
> > > From what I can gather it does this by adding some extra, encrypted
> > > headers to the INVITE as it passes through the proxy- is this correct?
> >
> > IIRC then there are no extra headers, but the existing headers will be
> > "mangled".
> >
> > regards
> > klaus
> >
> > _______________________________________________
> > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> > sr-users at lists.sip-router.org
> > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.sip-router.org/pipermail/sr-users/attachments/20110714/0872bc9b/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 7
> Date: Thu, 14 Jul 2011 09:51:18 +0200
> From: Klaus Darilion <klaus.mailinglists at pernau.at>
> Subject: Re: [SR-Users] Call several different subscribers, first to
>        pickup gets the call.
> To: sr-users at lists.sip-router.org
> Message-ID: <4E1E9FF6.9040905 at pernau.at>
> Content-Type: text/plain; charset=ISO-8859-1
>
>
>
> Am 13.07.2011 18:18, schrieb Henrik Aagaard S?rensen:
> > I'm new to Kamailio.
> >
> > Is it possible to have a group of subscribers (with different
> > extensions) that you can call? And the first to pickup the call gets it.
>
> Yes. That's called "parallel forking".
>
> regards
> Klaus
>

I've googled a lot after parallel forking in Kamailio and figured out that
the best way of implementing this is by adding a new table in MySQL called
fork where I somehow store all users into groups. Correct?

How does I retrieve this table in kamailio.cfg and call the different
subscribers?


>
>
>
> ------------------------------
>
> _______________________________________________
> sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> End of sr-users Digest, Vol 74, Issue 38
> ****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20110714/5f718671/attachment-0001.htm>


More information about the sr-users mailing list