Re: [SR-Users] Generate UUID in Kamailio Script

2013-08-09 Thread Alex Balashov
Oh, I thought you were looking for a dynamic GUID, not a constant UID for an instance. Grant Bagdasarian wrote: >Nice! > >Thanks! > >-Original Message- >From: sr-users-boun...@lists.sip-router.org >[mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of >Daniel-Constantin Mierla >S

[SR-Users] CDR generation in Kamailio.

2013-08-09 Thread Nandini madhu
Dear All, I am working on Kamailio (4.0.1) server with GUI package Siremis (4.0) of it. I was successful in get through Calls and SMS features in our VoIP phones using this kamailio sever. But i am encountering some issues related to CDR data generation into mysql database. I have activated WITH

Re: [SR-Users] Generate UUID in Kamailio Script

2013-08-09 Thread Grant Bagdasarian
Yeah, I do need a dynamic GUID. >From what I understood from Daniel: use $sruid to get the unique id (it will be a new value for each use of it). Does this mean that for each request the $sruid variable returns a new unique id or the same for each kamailio instance? -Original Message

[SR-Users] Trouble when bridging call between UDP and TCP clients behind NAT

2013-08-09 Thread Roberto Fichera
Hi All, I'm try to setup kamilio v4.0.2 under a Fedora18 64bits having a public address in order to bridge calls between UDP and TCP clients. Everything works pretty fine between UDP clients even if behind NAT. But as soon as one TCP client is being called I'm getting this below on kamailio side.

Re: [SR-Users] Trouble when bridging call between UDP and TCP clients behind NAT

2013-08-09 Thread Klaus Darilion
It seems that there is a NAT-ALG between the client and the proxy which rewrites the VIa header and Contact header. These ALGs are quite often buggy and should be avoided. Further, as the ALG rewrites the IP addresses, it may be that your configuration does not detect the client as NATed and th

Re: [SR-Users] Trouble when bridging call between UDP and TCP clients behind NAT

2013-08-09 Thread Roberto Fichera
On 08/09/2013 01:34 PM, Klaus Darilion wrote: > It seems that there is a NAT-ALG between the client and the proxy which > rewrites the VIa header and Contact header. > These ALGs are quite often buggy and should be avoided. Further, as the ALG > rewrites the IP addresses, it may be that > your co

[SR-Users] Duplicate relayed INVITE message using siptrace not working

2013-08-09 Thread Grant Bagdasarian
Hello, I'm adding some additional SIP headers to the INVITE received, but when I use the siptrace module to duplicate the messages to a capture server, the INVITE does not contain the additional headers. I'm using a softphone to test my configuration, and it looks like Kamailio only sends the I

Re: [SR-Users] Duplicate relayed INVITE message using siptrace not working

2013-08-09 Thread Alex Balashov
Grant, Have you tried msg_apply_changes() after the header append to see if that helps? Grant Bagdasarian wrote: >Hello, > >I'm adding some additional SIP headers to the INVITE received, but when >I use the siptrace module to duplicate the messages to a capture >server, the INVITE does not c

Re: [SR-Users] Duplicate relayed INVITE message using siptrace not working

2013-08-09 Thread Grant Bagdasarian
I just tried it and it did the trick. Thanks! I was also looking at the documentation of the siptrace module and found this: by setting the flag equal with the value of 'trace_flag' (e.g., setflag(__trace_flag__)) parameter of the module. In this case, the message sent forward is processed. The

Re: [SR-Users] Duplicate relayed INVITE message using siptrace not working

2013-08-09 Thread Alex Balashov
Try: setflag(22); Grant Bagdasarian wrote: >I just tried it and it did the trick. Thanks! > >I was also looking at the documentation of the siptrace module and >found this: >by setting the flag equal with the value of 'trace_flag' (e.g., >setflag(__trace_flag__)) parameter of the module. In this

Re: [SR-Users] Duplicate relayed INVITE message using siptrace not working

2013-08-09 Thread Grant Bagdasarian
That does it also. Thanks! From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Friday, August 9, 2013 4:02 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Duplicate relayed INVITE message using siptrace not

Re: [SR-Users] Duplicate relayed INVITE message using siptrace not working

2013-08-09 Thread Alex Balashov
On 08/09/2013 10:11 AM, Grant Bagdasarian wrote: That does it also. Thanks! Sure thing. Bear in mind that Kamailio is wildly inconsistent about when it requires a numerical parameter (e.g. a flag) as a string literal (in double quotes) vs. a numerical literal. Generally speaking, module f

Re: [SR-Users] Duplicate relayed INVITE message using siptrace not working

2013-08-09 Thread Grant Bagdasarian
Good to know. I'll keep that in mind. Thanks. Grant -Original Message- From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Friday, August 9, 2013 4:14 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users

Re: [SR-Users] Generate UUID in Kamailio Script

2013-08-09 Thread Daniel-Constantin Mierla
On 8/9/13 1:13 PM, Grant Bagdasarian wrote: Yeah, I do need a dynamic GUID. From what I understood from Daniel: use $sruid to get the unique id*(it will be a new value for each use of it).* yes, for clarification: $var(x) = $sruid; $var(y) = $sruid; the result is that $var(x) != $var(y)