Re: [SR-Users] Using $var inside textops function

2017-04-07 Thread Olli Attila

Hello,

Yes, this does the trick. Thank you.

--Olli


Daniel-Constantin Mierla kirjoitti 2017-04-07 15:42:

Hello,

I asked because some headers can appear more than once.

For From header, try directly with regexp operator '=~', like:

if($hdr(From) =~ $var(MYVARIABLE)) {

}

It should work, if not let me know.

Cheers,
Daniel

On 07.04.17 14:36, Olli Attila wrote:

Hello,

In this case From header only but it might also be handy to compare to
other headers as well.

--Olli


Daniel-Constantin Mierla kirjoitti 2017-04-07 15:33:

Hello,

the search_hf() is accepting only static regexp as parameter at this
moment.

Do you want to match only the From header in this case, or there 
could

be the case of another header as well?

Cheers,
Daniel


On 07.04.17 14:25, Olli Attila wrote:

Hello,

Is it possible to use variables inside a textops search_hf function? 
I
am trying to compare variable content against From header content 
and

return true or false.

I tried the following statement but with no luck:

search_hf("From", "$var(MYVARIABLE)", "f") { ... }

If this cannot be done, any suggestions on how to achieve this kind 
of

comparsion? The variable content is pulled out from a htable entry.

Cheers,

--Olli


___
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 list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Using $var inside textops function

2017-04-07 Thread Olli Attila

Hello,

In this case From header only but it might also be handy to compare to 
other headers as well.


--Olli


Daniel-Constantin Mierla kirjoitti 2017-04-07 15:33:

Hello,

the search_hf() is accepting only static regexp as parameter at this 
moment.


Do you want to match only the From header in this case, or there could
be the case of another header as well?

Cheers,
Daniel


On 07.04.17 14:25, Olli Attila wrote:

Hello,

Is it possible to use variables inside a textops search_hf function? I
am trying to compare variable content against From header content and
return true or false.

I tried the following statement but with no luck:

search_hf("From", "$var(MYVARIABLE)", "f") { ... }

If this cannot be done, any suggestions on how to achieve this kind of
comparsion? The variable content is pulled out from a htable entry.

Cheers,

--Olli


___
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 list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Using $var inside textops function

2017-04-07 Thread Olli Attila

Hello,

Is it possible to use variables inside a textops search_hf function? I 
am trying to compare variable content against From header content and 
return true or false.


I tried the following statement but with no luck:

search_hf("From", "$var(MYVARIABLE)", "f") { ... }

If this cannot be done, any suggestions on how to achieve this kind of 
comparsion? The variable content is pulled out from a htable entry.


Cheers,

--Olli


___
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] Topoh module & call leg/transaction does not exist

2017-03-03 Thread Olli Attila

Hello,

The B party (IP: 37.219.148.155) is the one that sends the bye. A party 
(IP: 178.75.176.146) will never see this bye because Kamailio (IP: 
193.28.89.162) in the middle replies to B party with 481. The result is 
that A partys softphone thinks the call is still online.


This can be seen on the kamailio_5-0_sip481.pcap trace.

Cheers,

--Olli

On 2.3.2017 16:19, Daniel-Constantin Mierla wrote:


Hello,

the pcap file doesn't show the BYE coming from caller to proxy. There 
is only the BYE from proxy to callee. I need also the one coming to 
the proxy in order to see if the required headers are there.


Cheers,
Daniel


On 28/02/2017 21:47, Olli Attila wrote:

Hello,

I'm still having this issue and now running the new Kamailio 5.0 
branch. The pcap trace is attached to this email which shows the 
whole sip conversation before and after topology hiding.


Has anyone stumbled upon this kind of "SIP 481 Call leg/Transaction 
does not exist" error when routing BYE messages while using topoh 
module?


Cheers,

--Olli


On 19.2.2017 23:23, Olli Attila wrote:

Hello,

I recently started testing topology hiding module on Kamailio and 
encountered a problem where B party hangs up, Kamailio can't 
identify the ongoing transaction to which the BYE should be related 
to and instead of tearing the call down Kamailio just sends back 
"481 Call leg/Transaction does not exist" to B party.
On Kamailio config I have only enabled the topoh.so -module with 
default options and configured this to enable masking:

modparam("topoh", "mask_callid", 1)

Here is what the INVITE to B party looks like and the BYE message 
coming from the B party:

http://pastebin.com/raw/f63zUmid

When debugging on Kamailio end i get:
http://pastebin.com/raw/ZefGAz30

Is this a Kamailio issue or a softphone issue on B party end?

Cheers,

--Olli


___
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 list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


--
Daniel-Constantin Mierla
www.twitter.com/miconda  --www.linkedin.com/in/miconda
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) 
-www.asipto.com
Kamailio World Conference - May 8-10, 2017 -www.kamailioworld.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


___
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] Topoh module & call leg/transaction does not exist

2017-02-28 Thread Olli Attila

Hello,

I'm still having this issue and now running the new Kamailio 5.0 branch. 
The pcap trace is attached to this email which shows the whole sip 
conversation before and after topology hiding.


Has anyone stumbled upon this kind of "SIP 481 Call leg/Transaction does 
not exist" error when routing BYE messages while using topoh module?


Cheers,

--Olli


On 19.2.2017 23:23, Olli Attila wrote:

Hello,

I recently started testing topology hiding module on Kamailio and 
encountered a problem where B party hangs up, Kamailio can't identify 
the ongoing transaction to which the BYE should be related to and 
instead of tearing the call down Kamailio just sends back "481 Call 
leg/Transaction does not exist" to B party.
On Kamailio config I have only enabled the topoh.so -module with 
default options and configured this to enable masking:

modparam("topoh", "mask_callid", 1)

Here is what the INVITE to B party looks like and the BYE message 
coming from the B party:

http://pastebin.com/raw/f63zUmid

When debugging on Kamailio end i get:
http://pastebin.com/raw/ZefGAz30

Is this a Kamailio issue or a softphone issue on B party end?

Cheers,

--Olli


___
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




kamailio_5-0_sip481.pcap
Description: Binary data
___
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] Topoh module & call leg/transaction does not exist

2017-02-19 Thread Olli Attila

Hello,

I recently started testing topology hiding module on Kamailio and 
encountered a problem where B party hangs up, Kamailio can't identify 
the ongoing transaction to which the BYE should be related to and 
instead of tearing the call down Kamailio just sends back "481 Call 
leg/Transaction does not exist" to B party.
On Kamailio config I have only enabled the topoh.so -module with default 
options and configured this to enable masking:

modparam("topoh", "mask_callid", 1)

Here is what the INVITE to B party looks like and the BYE message coming 
from the B party:

http://pastebin.com/raw/f63zUmid

When debugging on Kamailio end i get:
http://pastebin.com/raw/ZefGAz30

Is this a Kamailio issue or a softphone issue on B party end?

Cheers,

--Olli


___
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] Dispatcher and "src based" routing algorithm

2017-02-15 Thread Olli Attila

Hello,

I am using kamailio 4.4.3 (x86_64/linux) 5a2195 and Dispatcher module to 
route calls towards PSTN (4 pstn gateways). The Dispatcher module is 
using round robin mechanism to select the pstn gateway.


I have built a routing logic in a way that when call arrives to Kamailio 
from one of the PSTN gateways, and fails to route towards an external 
sip target, the call is marked as CFU call (a diverting call) and routed 
back to PSTN with different B number, but the actual challenge is that I 
would like the target PSTN gateway _not_ to be the same PSTN gw from 
where the call originally came in to Kamailio. This feature is requested 
because of the technical limitations of the pstn gateway software.


So is there any mechanism in Dispatcher or elsewhere in Kamailio to do 
this?


Basically I would need a flag or something to mark the pstn gateway when 
the call comes in and assure that when routing back to pstn, the same 
gateway would not be used at all, or it should be used as last target 
from the four gateways in Dispatcher.


Cheers,

-- Olli


___
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] MSRP with Kamailio

2017-02-08 Thread Olli Attila

Hello,

The challenge with Blink (v3.0.0) is that it seems I can't define any 
additional credentials regarding the MSRP connection. I assumed Blink
would use the SIP credentials for MSRP connection but it seems I was 
wrong. This would explain the Kamailio behaviour on not authenticating 
the client.


Are there any other clients that support MSRP which I could use with 
Kamailio? Anyone?


Cheers,

--Olli


Daniel-Constantin Mierla kirjoitti 2017-02-08 8:49:

Hello,

in the logs it doesn't show any specific error, just that kamailio is
sending a 401 challenge for authentication, which should be ok from
standards point of view. But then I don't see the AUTH request with
credentials. Have you set username/password for auth in client side?

Cheers,
Daniel


On 07/02/2017 21:56, Olli Attila wrote:

Hello,

I configured the Kamailio debug level to "4" and then got the
following errors when trying to establish an msrp session:
https://p.dnaip.fi/YRcPRcYD

(Switched to plain tcp before the debug trace)

--Olli

On 7.2.2017 14:49, Daniel-Constantin Mierla wrote:

Hello,

can you run with debug=3 in kamailio.cfg and provide all syslog 
messages

for the issues you face?

Cheers,
Daniel


On 07/02/2017 12:16, Olli Attila wrote:

Hello,

I am running kamailio version 4.4.2. I just configured MSRP module 
to

kamailio with example config taken from
"http://www.kamailio.org/docs/modules/4.4.x/modules/msrp.html#msrp.usage";

(Example 1.16. Event Route (using htable for MSRP connection
tracking). After configuring msrp relay, the kamailio service has 
been

restarted succesfully and no errors occurred.

Blink is configured to use my server name with tls and port 5061 for
MSRP.

I get this error on Blink when i try to send files:
https://p.dnaip.fi/X4vwoy40

Any suggestion what is going wrong?

Cheers,

-- Olli


___
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 list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] MSRP with Kamailio

2017-02-07 Thread Olli Attila

Hello,

I configured the Kamailio debug level to "4" and then got the following 
errors when trying to establish an msrp session: 
https://p.dnaip.fi/YRcPRcYD


(Switched to plain tcp before the debug trace)

--Olli

On 7.2.2017 14:49, Daniel-Constantin Mierla wrote:

Hello,

can you run with debug=3 in kamailio.cfg and provide all syslog messages
for the issues you face?

Cheers,
Daniel


On 07/02/2017 12:16, Olli Attila wrote:

Hello,

I am running kamailio version 4.4.2. I just configured MSRP module to
kamailio with example config taken from
"http://www.kamailio.org/docs/modules/4.4.x/modules/msrp.html#msrp.usage";
(Example 1.16. Event Route (using htable for MSRP connection
tracking). After configuring msrp relay, the kamailio service has been
restarted succesfully and no errors occurred.

Blink is configured to use my server name with tls and port 5061 for
MSRP.

I get this error on Blink when i try to send files:
https://p.dnaip.fi/X4vwoy40

Any suggestion what is going wrong?

Cheers,

-- Olli


___
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 list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] MSRP with Kamailio

2017-02-07 Thread Olli Attila

Hello,

Actually when i set debug level to 3, I dont face any syslog errors on 
Kamailio. I only see the auth error at the client (Blink) end.


-- Olli


Daniel-Constantin Mierla kirjoitti 2017-02-07 14:49:

Hello,

can you run with debug=3 in kamailio.cfg and provide all syslog 
messages

for the issues you face?

Cheers,
Daniel


On 07/02/2017 12:16, Olli Attila wrote:


Hello,

I am running kamailio version 4.4.2. I just configured MSRP module to
kamailio with example config taken from
"http://www.kamailio.org/docs/modules/4.4.x/modules/msrp.html#msrp.usage";
(Example 1.16. Event Route (using htable for MSRP connection
tracking). After configuring msrp relay, the kamailio service has been
restarted succesfully and no errors occurred.

Blink is configured to use my server name with tls and port 5061 for
MSRP.

I get this error on Blink when i try to send files:
https://p.dnaip.fi/X4vwoy40

Any suggestion what is going wrong?

Cheers,

-- Olli


___
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 list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] MSRP with Kamailio

2017-02-07 Thread Olli Attila


Hello,

I am running kamailio version 4.4.2. I just configured MSRP module to 
kamailio with example config taken from 
"http://www.kamailio.org/docs/modules/4.4.x/modules/msrp.html#msrp.usage"; 
(Example 1.16. Event Route (using htable for MSRP connection tracking). 
After configuring msrp relay, the kamailio service has been restarted 
succesfully and no errors occurred.


Blink is configured to use my server name with tls and port 5061 for 
MSRP.


I get this error on Blink when i try to send files: 
https://p.dnaip.fi/X4vwoy40


Any suggestion what is going wrong?

Cheers,

-- Olli


___
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] websocket and linphone client connection through kamailio

2015-05-29 Thread Olli Attila

Hello,

 I have a problem in call creation between websocket client (sipml5) 
and traditional sip client (linphone ios). If i make a call from 
ws-client to linphone (through kamailio with rtpengine installed), i get 
error from ws-client console when linphone answers the call with 200ok/sdp:
"Failed to set remote answer sdp: Called with SDP without ice-ufrag and 
ice-pwd.tsk_utils_log_error"


Linphone that i am using (LinphoneIphone/2.2.4.2-store-85-gbfcbadb 
(belle-sip/1.3.3)), doesn't seem to have any ICE related configuration 
options allthough ICE shoud be supported.


I noticed that rtpengine could have the tools to fix this:
https://github.com/sipwise/rtpengine
"ICE (RFC 5245) support:

 * Bridging between ICE-enabled and ICE-unaware user agents"

Could the "ICE bridge" solve this issue or is there another way around this?

-- Olli



___
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] hash table not loading

2015-05-05 Thread Olli Attila

Hello,

Problem solved.

I had improper #!ifdef conditions defined and therefore the htable 
definitions were not enabled.


Thank you Daniel.

-Olli

On 5.5.2015 18:48, Daniel-Constantin Mierla wrote:

Hello,

can you check that you have no improper #!ifdef conditions? Maybe the
part of the config related to htable is not enabled.

Cheers,
Daniel

On 05/05/15 16:22, Olli Attila wrote:

Hello,

I get the result:

kamailio # kamcmd htable.dump abc
error: 500 - No such htable

--Olli

On 5.5.2015 10:19, Daniel-Constantin Mierla wrote:

Hello,

can you list the content of the table 'abc'?

Cheers,
Daniel

On 04/05/15 21:44, Olli Attila wrote:

Hello,

I am trying to load a test hash table on kamailio startup but I keep
getting the following error with kamctl after i restart Kamailio and
try to list all the tables in memory:

kamcmd> htable.listTables
error: 500 - No htables

I have the following configured in kamailio.cfg:
#  loading the htable module
loadmodule "htable.so"
# - htable params -
modparam("htable", "htable",
"abc=>size=8;autoexpire=0;dbtable=htable;")
modparam("htable", "db_url", DBURL)
modparam("htable", "fetch_rows", 1000)

The DBURL is pointed to the kamailio database on the same machine.
#!ifndef DBURL
#!define DBURL "mysql://kamailio:kamailiorw@localhost/kamailio"
#!endif

I have also added the following values for testing purposes to the
kamailio.htable:
 id  key_namekey_type  value_type  key_value  expires
--  --    --  -  -
   1  test 0   0  12345  0

Is there anything else that i might be missing here? Im running
kamailio v.4.2.4.

Cheers,

-- Olli

___
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 list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] hash table not loading

2015-05-05 Thread Olli Attila

Hello,

I get the result:

kamailio # kamcmd htable.dump abc
error: 500 - No such htable

-Olli

On 5.5.2015 10:19, Daniel-Constantin Mierla wrote:

Hello,

can you list the content of the table 'abc'?

Cheers,
Daniel

On 04/05/15 21:44, Olli Attila wrote:

Hello,

I am trying to load a test hash table on kamailio startup but I keep
getting the following error with kamctl after i restart Kamailio and
try to list all the tables in memory:

kamcmd> htable.listTables
error: 500 - No htables

I have the following configured in kamailio.cfg:
#  loading the htable module
loadmodule "htable.so"
# - htable params -
modparam("htable", "htable", "abc=>size=8;autoexpire=0;dbtable=htable;")
modparam("htable", "db_url", DBURL)
modparam("htable", "fetch_rows", 1000)

The DBURL is pointed to the kamailio database on the same machine.
#!ifndef DBURL
#!define DBURL "mysql://kamailio:kamailiorw@localhost/kamailio"
#!endif

I have also added the following values for testing purposes to the
kamailio.htable:
id  key_namekey_type  value_type  key_value  expires
--  --    --  -  -
  1  test 0   0  12345  0

Is there anything else that i might be missing here? Im running
kamailio v.4.2.4.

Cheers,

-- Olli

___
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 list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] hash table not loading

2015-05-05 Thread Olli Attila

Hello,

I get the result:

kamailio # kamcmd htable.dump abc
error: 500 - No such htable

--Olli

On 5.5.2015 10:19, Daniel-Constantin Mierla wrote:

Hello,

can you list the content of the table 'abc'?

Cheers,
Daniel

On 04/05/15 21:44, Olli Attila wrote:

Hello,

I am trying to load a test hash table on kamailio startup but I keep
getting the following error with kamctl after i restart Kamailio and
try to list all the tables in memory:

kamcmd> htable.listTables
error: 500 - No htables

I have the following configured in kamailio.cfg:
#  loading the htable module
loadmodule "htable.so"
# - htable params -
modparam("htable", "htable", "abc=>size=8;autoexpire=0;dbtable=htable;")
modparam("htable", "db_url", DBURL)
modparam("htable", "fetch_rows", 1000)

The DBURL is pointed to the kamailio database on the same machine.
#!ifndef DBURL
#!define DBURL "mysql://kamailio:kamailiorw@localhost/kamailio"
#!endif

I have also added the following values for testing purposes to the
kamailio.htable:
id  key_namekey_type  value_type  key_value  expires
--  --    --  -  -
  1  test 0   0  12345  0

Is there anything else that i might be missing here? Im running
kamailio v.4.2.4.

Cheers,

-- Olli

___
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 list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] hash table not loading

2015-05-04 Thread Olli Attila

Hello,

I am trying to load a test hash table on kamailio startup but I keep 
getting the following error with kamctl after i restart Kamailio and try 
to list all the tables in memory:


kamcmd> htable.listTables
error: 500 - No htables

I have the following configured in kamailio.cfg:
#  loading the htable module
loadmodule "htable.so"
# - htable params -
modparam("htable", "htable", "abc=>size=8;autoexpire=0;dbtable=htable;")
modparam("htable", "db_url", DBURL)
modparam("htable", "fetch_rows", 1000)

The DBURL is pointed to the kamailio database on the same machine.
#!ifndef DBURL
#!define DBURL "mysql://kamailio:kamailiorw@localhost/kamailio"
#!endif

I have also added the following values for testing purposes to the 
kamailio.htable:

   id  key_namekey_type  value_type  key_value  expires
--  --    --  -  -
 1  test 0   0  12345  0

Is there anything else that i might be missing here? Im running kamailio 
v.4.2.4.


Cheers,

-- Olli

___
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] Presence data to users behind NAT

2015-03-22 Thread Olli Attila

Hello,

Im running kamailio 4.2.3 and I'm trying to build a system where I could 
have the following features: SIP proxy, RTP proxy, Presence & XCAP 
service for IM messaging.


I have a problem with the Presence service with users that are located 
behind nat. When Kamailio sends presence info to a watcher with sip 
NOTIFY message, the destaination ip for the pacage seems to be an 
un-routable (=private) ip, and so the watcher never receives the NOTIFY 
message making the watchers sip client unaware of the other users presence.


Any suggestions how to make Kamailio handle the watchers behind nat so 
that the NOTIFY messages will get delivered succesfully?


I tried the scenario with a client with public ip and the presence works 
fine.


my kamailio.cfg:
http://tny.cz/7d85773c

-- Olli

___
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 sending NOTIFY messages to private IP

2015-03-21 Thread Olli Attila

Hello,

Im running kamailio 4.2.3 and I'm having troubles with reporting user 
presence data from Kamailio server to a registered UA behind nat. The 
NOTIFY message is being sent from Kamailio to the UA after receiving 
PUBLISH, but because the UA is behind nat the NOTIFY message is being 
sent to the UAs private (=unroutable) ip and therefor never reaching the 
real UA. My server is using nat helping modules so that REGISTER 
messages and INVITE messages are handled ok even if they are originated 
behind nat.


Any suggestions how to solve this and make the NOTIFY messages to be 
sent via routabe ip addresses?


my kamailio.cfg PRESENCE routing:

#!ifdef WITH_PRESENCE
if (!t_newtran())
{
sl_reply_error();
exit;
};

if(is_method("PUBLISH"))
{
handle_publish();
t_release();
}
else
if( is_method("SUBSCRIBE"))
{
handle_subscribe();
t_release();
}
exit;
#!endif

if (is_method("PUBLISH") || $rU==$null)
{
sl_send_reply("404", "Not here");
exit;
}
return;
}


-- Olli

___
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