[SR-Users] Server IP adresse

2013-09-25 Thread Alexandre Berube
Hello,

I would like to know de Ip adresse of the SIP server. I have an audio codec to 
use in SIP and the machine does just accept the IP #...

Thank you very much

Alex



Alexandre Berube
TECHNICIEN AUDIO
[cid:89de2d.png@29a4e2a1.4b848433]

[cid:1562d7.png@ce780813.40a48a3f]

T   514-787-7799 #7707
C   514-809-4046

F   514-789-0527




800, Rue de la Gauchetière Ouest, Bureau 1100
Montréal Québec H5A 1M1 [cid:535258.png@67f7f4bd.4c9de3e6]



<><><>___
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


[SR-Users] Kamailio listen address and failover

2013-09-25 Thread Marco Londero
Hi .*,

scenario:

1) kamailio listening on 0.0.0.0:5060 UDP and TCP configured as SIP proxy
2) eth0 private interface, eth1 public interface
3) multiple IP address on eth1
4) firewall open on 5060 UCP/TCP only for 1 IP address x.x.x.x

When from a client I try to register to the SIP proxy, packets are
going to IP x.x.x.x but kamailio replies using a different source IP
(typically first one configured on the interface) and not the one it
received the request to.

Is there a way to configure/workaround this?

Thank you!


-- 
mandi, Marco

___
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


[SR-Users] Kamailio listen address and failover

2013-09-25 Thread Juha Heinanen
Marco Londero writes:

> Is there a way to configure/workaround this?

try force_send_socket() function.

-- juha

___
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


Re: [SR-Users] Kamailio listen address and failover

2013-09-25 Thread Marco Londero
Hi Juha,

thanks for your quick reply.

>> Is there a way to configure/workaround this?
> try force_send_socket() function.
Doesn't work because 0.0.0.0 is not the listening address I'm using in
force_send_socket():

---
ERROR:  [route.c:1057]: fix_actions(): ERROR: fix_actions: bad
force_send_socket argument: x.x.x.x:5060 (ser doesn't listen on it)
---

If I force 2 IP addresses using listen directives, it looks like it
works though.

Thanks!


-- 
mandi, Marco

___
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


Re: [SR-Users] pkg.stats problem

2013-09-25 Thread Vitaliy Aleksandrov
I switched to the latest master branch and it seems it works better, but 
unfortunately I can't understand how much PKG memory kamailio really 
uses to know it still has problems with PKG.


For instance "kamcmd pkg.stats" always shows that tcp_main process has 
free: 32627984 (started with -M 32), while real_used: 22560048 and RES 
in top output for the same process is 8904.


___
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


[SR-Users] Communicate with Kamailio through external application

2013-09-25 Thread Grant Bagdasarian
Hello,

When adding rows to the dispatcher table, the table in memory needs to be 
refreshed. Since we have multiple Kamailio instances running on different 
machines, I'd like to automate the process of reloading the table.
Is there an easy way of doing this with an already existing module, which 
provides easy connectivity from the outside?
Or do I need to write an application which basically sets up a SSH socket 
connection with the machine and sends the command "kamctl dispatcher reload" 
then exit? Not that hard either, but there might be a finer solution available.

Regards,

Grant

___
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


Re: [SR-Users] Communicate with Kamailio through external application

2013-09-25 Thread Victor Seva
2013/9/25 Grant Bagdasarian :
> Is there an easy way of doing this with an already existing module, which
> provides easy connectivity from the outside?

Maybe this[0]?

[0] http://kamailio.org/docs/modules/4.0.x/modules/mi_xmlrpc.html

___
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


Re: [SR-Users] Communicate with Kamailio through external application

2013-09-25 Thread Charles Chance
Hi,

Take a look at
http://www.kamailio.org/docs/modules/stable/modules/xhttp_rpc.html, which
allows you to receive/handle RPC commands over HTTP.

Then use the appropriate RPC command in dispatcher module to reload table:
http://www.kamailio.org/docs/modules/stable/modules/dispatcher.html#idp16998512

Regards,

Charles



On 25 September 2013 11:40, Grant Bagdasarian  wrote:

> Hello,
>
> ** **
>
> When adding rows to the dispatcher table, the table in memory needs to be
> refreshed. Since we have multiple Kamailio instances running on different
> machines, I’d like to automate the process of reloading the table.
>
> Is there an easy way of doing this with an already existing module, which
> provides easy connectivity from the outside?
>
> Or do I need to write an application which basically sets up a SSH socket
> connection with the machine and sends the command “kamctl dispatcher
> reload” then exit? Not that hard either, but there might be a finer
> solution available.
>
> ** **
>
> Regards,
>
> ** **
>
> Grant
>
> ** **
>
> ___
> 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
>
>

-- 
www.sipcentric.com

Follow us on twitter @sipcentric 

Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered 
office: Unit 10 iBIC, Birmingham Science Park, Holt Court South, Birmingham 
B7 4EJ.
___
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


Re: [SR-Users] Decoding HTTP URLs in event_route[xhttp:request]

2013-09-25 Thread Peter Dunkley
Hello,

I have added a transformation to the xhttp module that breaks a URL into a
path and a querystring
- {url.path}
- {url.querystring}

I have also added an optional delimiter parameter to the {param.}
transformations.

Regards,

Peter


On 22 September 2013 14:55, Ovidiu Sas  wrote:

> You can use {s.select,index,separator} to extract the path and the
> parameters into two different variables.
> Or here you could create a new url transformation to break it in two:
>  - {url.path}
>  - {url.searchpath}
>
> After that, the existing code for param transformation may be reused
> (by making the separator configurable (using '&' instead of ';') and
> we could have a new transformation:
>  - {urlsearchpath.value,name}
> Or maybe we can enhance the existing param transformation to pass as
> an optional argument - the param delimiter:
>  - {param.value,name,[param_delimiter]}.
>  - {param.valueat,index,[param_delimiter]}
>  - {param.name,index,[param_delimiter]}
>  - {param.count,[param_delimiter]}
>
>
> Regards,
> Ovidiu Sas
>
> On Sun, Sep 22, 2013 at 4:50 AM, Peter Dunkley
>  wrote:
> > Hello,
> >
> > Does anyone have any ideas about this?
> >
> > If not it's something I want to try and do before the freeze (any
> > suggestions as to how would be appreciated) as it will be a nice
> finishing
> > touch to the WebSocket/outbound/stun/auth_ephemeral stuff I've worked on
> > over the last couple of releases.
> >
> > Thanks,
> >
> > Peter
> >
> >
> > On 19 September 2013 21:36, Peter Dunkley <
> peter.dunk...@crocodilertc.net>
> > wrote:
> >>
> >> Hello,
> >>
> >> I was wondering if there was an easy way to decode HTTP URLs in
> >> event_route[xhttp:request]?
> >>
> >> For example, it would be good to be able to breakdown a URL like:
> >>   /sip?apiKey=abcdefg&username=1234567890:al...@example.com
> >> into "path/on/server" ("/sip" in this case) and a set of parameters.
>  For
> >> the parameters something like the {param.value,name} transformation for
> SIP
> >> header parameters would be ideal (which works perfectly for picking
> values
> >> out of HTTP Cookie: headers).
> >>
> >> I noticed that there is already an {s.urldecode.param} transformation in
> >> the PV module but I couldn't find any documentation for it in the wiki
> and
> >> looking at the code it doesn't appear to do this anyway.
> >>
> >> Regards,
> >>
> >> Peter
> >>
> >>
> >> --
> >> Peter Dunkley
> >> Technical Director
> >> Crocodile RCS Ltd
> >
> >
> >
> >
> > --
> > Peter Dunkley
> > Technical Director
> > Crocodile RCS Ltd
> >
> > ___
> > 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
> >
>
>
>
> --
> VoIP Embedded, Inc.
> http://www.voipembedded.com
>
> ___
> 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
>



-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd
___
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


Re: [SR-Users] Decoding HTTP URLs in event_route[xhttp:request]

2013-09-25 Thread Ovidiu Sas
Great!

Now don't forget to update the wiki:
 - 
http://www.kamailio.org/wiki/cookbooks/devel/transformations#parameters_list_transformations
and create the new entry for url transformations:
 - 
http://www.kamailio.org/wiki/cookbooks/devel/transformations#url_transformations

Regards,
Ovidiu Sas

On Wed, Sep 25, 2013 at 11:15 AM, Peter Dunkley
 wrote:
> Hello,
>
> I have added a transformation to the xhttp module that breaks a URL into a
> path and a querystring
> - {url.path}
> - {url.querystring}
>
> I have also added an optional delimiter parameter to the {param.}
> transformations.
>
> Regards,
>
> Peter
>
>
> On 22 September 2013 14:55, Ovidiu Sas  wrote:
>>
>> You can use {s.select,index,separator} to extract the path and the
>> parameters into two different variables.
>> Or here you could create a new url transformation to break it in two:
>>  - {url.path}
>>  - {url.searchpath}
>>
>> After that, the existing code for param transformation may be reused
>> (by making the separator configurable (using '&' instead of ';') and
>> we could have a new transformation:
>>  - {urlsearchpath.value,name}
>> Or maybe we can enhance the existing param transformation to pass as
>> an optional argument - the param delimiter:
>>  - {param.value,name,[param_delimiter]}.
>>  - {param.valueat,index,[param_delimiter]}
>>  - {param.name,index,[param_delimiter]}
>>  - {param.count,[param_delimiter]}
>>
>>
>> Regards,
>> Ovidiu Sas
>>
>> On Sun, Sep 22, 2013 at 4:50 AM, Peter Dunkley
>>  wrote:
>> > Hello,
>> >
>> > Does anyone have any ideas about this?
>> >
>> > If not it's something I want to try and do before the freeze (any
>> > suggestions as to how would be appreciated) as it will be a nice
>> > finishing
>> > touch to the WebSocket/outbound/stun/auth_ephemeral stuff I've worked on
>> > over the last couple of releases.
>> >
>> > Thanks,
>> >
>> > Peter
>> >
>> >
>> > On 19 September 2013 21:36, Peter Dunkley
>> > 
>> > wrote:
>> >>
>> >> Hello,
>> >>
>> >> I was wondering if there was an easy way to decode HTTP URLs in
>> >> event_route[xhttp:request]?
>> >>
>> >> For example, it would be good to be able to breakdown a URL like:
>> >>   /sip?apiKey=abcdefg&username=1234567890:al...@example.com
>> >> into "path/on/server" ("/sip" in this case) and a set of parameters.
>> >> For
>> >> the parameters something like the {param.value,name} transformation for
>> >> SIP
>> >> header parameters would be ideal (which works perfectly for picking
>> >> values
>> >> out of HTTP Cookie: headers).
>> >>
>> >> I noticed that there is already an {s.urldecode.param} transformation
>> >> in
>> >> the PV module but I couldn't find any documentation for it in the wiki
>> >> and
>> >> looking at the code it doesn't appear to do this anyway.
>> >>
>> >> Regards,
>> >>
>> >> Peter
>> >>
>> >>
>> >> --
>> >> Peter Dunkley
>> >> Technical Director
>> >> Crocodile RCS Ltd
>> >
>> >
>> >
>> >
>> > --
>> > Peter Dunkley
>> > Technical Director
>> > Crocodile RCS Ltd
>> >
>> > ___
>> > 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
>> >
>>
>>
>>
>> --
>> VoIP Embedded, Inc.
>> http://www.voipembedded.com
>>
>> ___
>> 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
>
>
>
>
> --
> Peter Dunkley
> Technical Director
> Crocodile RCS Ltd
>
> ___
> 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
>



-- 
VoIP Embedded, Inc.
http://www.voipembedded.com

___
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


Re: [SR-Users] Decoding HTTP URLs in event_route[xhttp:request]

2013-09-25 Thread Peter Dunkley
Of course I'll update the wiki.  I always do when I make a change like that
:-)


On 25 September 2013 16:22, Ovidiu Sas  wrote:

> Great!
>
> Now don't forget to update the wiki:
>  -
> http://www.kamailio.org/wiki/cookbooks/devel/transformations#parameters_list_transformations
> and create the new entry for url transformations:
>  -
> http://www.kamailio.org/wiki/cookbooks/devel/transformations#url_transformations
>
> Regards,
> Ovidiu Sas
>
> On Wed, Sep 25, 2013 at 11:15 AM, Peter Dunkley
>  wrote:
> > Hello,
> >
> > I have added a transformation to the xhttp module that breaks a URL into
> a
> > path and a querystring
> > - {url.path}
> > - {url.querystring}
> >
> > I have also added an optional delimiter parameter to the {param.}
> > transformations.
> >
> > Regards,
> >
> > Peter
> >
> >
> > On 22 September 2013 14:55, Ovidiu Sas  wrote:
> >>
> >> You can use {s.select,index,separator} to extract the path and the
> >> parameters into two different variables.
> >> Or here you could create a new url transformation to break it in two:
> >>  - {url.path}
> >>  - {url.searchpath}
> >>
> >> After that, the existing code for param transformation may be reused
> >> (by making the separator configurable (using '&' instead of ';') and
> >> we could have a new transformation:
> >>  - {urlsearchpath.value,name}
> >> Or maybe we can enhance the existing param transformation to pass as
> >> an optional argument - the param delimiter:
> >>  - {param.value,name,[param_delimiter]}.
> >>  - {param.valueat,index,[param_delimiter]}
> >>  - {param.name,index,[param_delimiter]}
> >>  - {param.count,[param_delimiter]}
> >>
> >>
> >> Regards,
> >> Ovidiu Sas
> >>
> >> On Sun, Sep 22, 2013 at 4:50 AM, Peter Dunkley
> >>  wrote:
> >> > Hello,
> >> >
> >> > Does anyone have any ideas about this?
> >> >
> >> > If not it's something I want to try and do before the freeze (any
> >> > suggestions as to how would be appreciated) as it will be a nice
> >> > finishing
> >> > touch to the WebSocket/outbound/stun/auth_ephemeral stuff I've worked
> on
> >> > over the last couple of releases.
> >> >
> >> > Thanks,
> >> >
> >> > Peter
> >> >
> >> >
> >> > On 19 September 2013 21:36, Peter Dunkley
> >> > 
> >> > wrote:
> >> >>
> >> >> Hello,
> >> >>
> >> >> I was wondering if there was an easy way to decode HTTP URLs in
> >> >> event_route[xhttp:request]?
> >> >>
> >> >> For example, it would be good to be able to breakdown a URL like:
> >> >>   /sip?apiKey=abcdefg&username=1234567890:al...@example.com
> >> >> into "path/on/server" ("/sip" in this case) and a set of parameters.
> >> >> For
> >> >> the parameters something like the {param.value,name} transformation
> for
> >> >> SIP
> >> >> header parameters would be ideal (which works perfectly for picking
> >> >> values
> >> >> out of HTTP Cookie: headers).
> >> >>
> >> >> I noticed that there is already an {s.urldecode.param} transformation
> >> >> in
> >> >> the PV module but I couldn't find any documentation for it in the
> wiki
> >> >> and
> >> >> looking at the code it doesn't appear to do this anyway.
> >> >>
> >> >> Regards,
> >> >>
> >> >> Peter
> >> >>
> >> >>
> >> >> --
> >> >> Peter Dunkley
> >> >> Technical Director
> >> >> Crocodile RCS Ltd
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > Peter Dunkley
> >> > Technical Director
> >> > Crocodile RCS Ltd
> >> >
> >> > ___
> >> > 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
> >> >
> >>
> >>
> >>
> >> --
> >> VoIP Embedded, Inc.
> >> http://www.voipembedded.com
> >>
> >> ___
> >> 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
> >
> >
> >
> >
> > --
> > Peter Dunkley
> > Technical Director
> > Crocodile RCS Ltd
> >
> > ___
> > 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
> >
>
>
>
> --
> VoIP Embedded, Inc.
> http://www.voipembedded.com
>
> ___
> 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
>



-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd
___
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


[SR-Users] OT - Consultation

2013-09-25 Thread Gilbert T. Gutierrez, Jr.
I looking to hire a consultant to build a new multi-tenant solution for 
my organization. I do not have the time to do it myself nor the staff. 
If you are a consultant interested in more details, please contact me 
off list.


Sorry to post an off topic email to this list, I could not find a 
Kamailio list for this type of post.


Gilbert T. Gutierrez, Jr.
Operations Manager
Phoenix Internet
gilber...@phoenixinternet.net

___
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


Re: [SR-Users] OT - Consultation

2013-09-25 Thread Salman Zafar
Hi Gilbert,
Would you please share the feature list you are looking in your
multi-tenant solution?.

My name is M. Salman Zafar and I am a Sr. VoIP Developer. My expertise
mainly include open-source telephony systems like Asterisk. Kamailio,
OpenSIPS feature based development which includes

TECHNOLOGIES:
--- VoIP
--- Asterisk (FreePBX/TrixBox/Elastix)
--- A2Billing(PIAF)
--- SIP-Servers
--- OpenSIPS
--- Kamailio
--- Diameter with IMS
--- RADIUS
--- Linux based installation and configurations

Solutions and Customizations:
- Calling Card Solution
- DID/TF Dialing
- Hosted PBX Solutionn
- Click2Dial
- WebRTC based Setup
- Conferencing
- VoIP/SIP Load-balancing and Failure
- Clustering & Large Scale Customizations & Deployment up-to 1Million Calls
setup
- SIP Presence Server
- AAA RADIUS based Billing Engine Design & Deployment
- RealTime Billing

Looking forward to hear from you.


On Wed, Sep 25, 2013 at 10:55 PM, Gilbert T. Gutierrez, Jr. <
mailing-li...@phoenixinternet.net> wrote:

> I looking to hire a consultant to build a new multi-tenant solution for my
> organization. I do not have the time to do it myself nor the staff. If you
> are a consultant interested in more details, please contact me off list.
>
> Sorry to post an off topic email to this list, I could not find a Kamailio
> list for this type of post.
>
> Gilbert T. Gutierrez, Jr.
> Operations Manager
> Phoenix Internet
> gilber...@phoenixinternet.net
>
> __**_
> 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
>



-- 
Regards

**
Muhammad Salman
***
___
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


[SR-Users] onreply_route check_route_param?

2013-09-25 Thread Gareth Rylance
The check_route_param docs say that you must call loose_route() first.
loose_route() cane called from not within onreply_route.
How do I check form route params within the onreply_route?

Thanks Gareth
___
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


Re: [SR-Users] onreply_route check_route_param?

2013-09-25 Thread Alex Balashov
This recommendation is made based on the likelihood of presence or absence of 
the Route header in the message. You don't have to - and should not - call 
loose_route() in an onreply_route, and should feel free to use 
check_route_param() there. 

Gareth Rylance  wrote:
>The check_route_param docs say that you must call loose_route() first.
>loose_route() cane called from not within onreply_route.
>How do I check form route params within the onreply_route?
>
>Thanks Gareth
>
>
>
>
>___
>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

--
Sent from my Nexus 10, with all the figments of autocorrect that might imply.

Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Decatur, GA 30030
United States
Tel: +1-678-954-0670
Web: http://www.evaristesys.com/, http://www.alexbalashov.com/___
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