[SR-Users] testing Supported and Require keywords

2013-03-13 Thread Juha Heinanen
is there currently a proper way to test if a particular keyword appears in Supported or Require header or is a regex test on $hdr(X)[*] the only possibility? -- juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@li

Re: [SR-Users] how to extract the ip address in the via header received paramter

2013-03-13 Thread Ajay Sabat
I added the append_hf() inside the if condition in oureply_route[] block as given below, and it is working. I still want to learn how to store data in a variable to use it later in another block. Thanks, Ajay Hi Daniel, Thanks for your response. But I don't want the IP in the received parame

Re: [SR-Users] Kamailio with PostgreSQL as persistence

2013-03-13 Thread Hoai-Anh Ngo-Vi
Thank you for the advises. I got Kamailio now run with PostgreSQL. For those might interrested in the cause of the problem. It was a permission problem in a single table. With a tail -f on postgres log I was able to figure out quickly which table. Am 13.03.13 17:20, schrieb Olle E. Johansson:

Re: [SR-Users] how to extract the ip address in the via header received paramter

2013-03-13 Thread Ajay Sabat
Hi Daniel, Thanks for your response. But I don't want the IP in the received parameter of the incoming request. Instead, I want to read it (i.e. the public IP address of my own network where the local user and Kamailio are located) from the incoming response received from another proxy located

Re: [SR-Users] Kamailio with PostgreSQL as persistence

2013-03-13 Thread Olle E. Johansson
13 mar 2013 kl. 17:13 skrev Hoai-Anh Ngo-Vi : > Dears, > > I have tried out Kamailio 3.3.4 with PostgreSQL as persistence but it does > not work. > > make FLAVOUR=kamailio include_modules="db_postgres" cfg > > was OK. I found /usr/local/lib/kamailio/modules/db_postgres.so after > installatio

[SR-Users] Kamailio with PostgreSQL as persistence

2013-03-13 Thread Hoai-Anh Ngo-Vi
Dears, I have tried out Kamailio 3.3.4 with PostgreSQL as persistence but it does not work. make FLAVOUR=kamailio include_modules="db_postgres" cfg was OK. I found /usr/local/lib/kamailio/modules/db_postgres.so after installation. I have successfully set up database openser using /usr/loc

[SR-Users] Problems with Mar portion of registration

2013-03-13 Thread mrichardson
The MAR portion of registration is either not happening or failing causing scscf to die. Using Kamailio 4.0 with the ims_auth module. We're trying to determine what the REGISTER block should look like and what ims_auth parameters are necessary for a successful MAR challenge with auth vector deli

Re: [SR-Users] UAC module and SRV records

2013-03-13 Thread Olle E. Johansson
13 mar 2013 kl. 09:35 skrev Daniel-Constantin Mierla : > > On 3/13/13 9:25 AM, Olle E. Johansson wrote: >> 13 mar 2013 kl. 09:08 skrev Daniel-Constantin Mierla : >> >>> Hello, >>> >>> do you set the port in r-uri/dst-uri? >> No. That would invalidate SRV record lookup, right? > > yes. > > Ha

Re: [SR-Users] registrar and check registered

2013-03-13 Thread Victor V. Kustov
Hello, Daniel. Thanks for reply. > do you want to check if caller (origin) is registered or if callee > (destination) is registered? Like one can call to pstn only if has a > phone registered for itself? In our scheme all calls forwards to PSTN GW, if that call from our to our users, GW turn ca

Re: [SR-Users] Need help understanding/separating signaling from media

2013-03-13 Thread Grant Bagdasarian
Alex wrote: The Kamailio 'rtpproxy' module goes out to the rtpproxy service[1] and asks it to engage the call, saying: "Can you please allocate and provide me with a pair of ports for each end of this call?" The rtpproxy process answers, and Kamailio then writes the IP and ports provided by rt

Re: [SR-Users] Send Bye to all calls in one profile

2013-03-13 Thread Daniel-Constantin Mierla
Hello, first, thanks for publishing the extensions to the public space. If you want, you can include the module in the GIT repository of Kamailio. It will make installation easier, being part of the default source tree and packaged in releases. If you are interested in maintaining it in our

Re: [SR-Users] java code to interact with kamailio

2013-03-13 Thread Daniel-Constantin Mierla
Hello, you can import the module in master now -- development is open for more than a week. That could make the testing of the new module easier. Cheers, Daniel On 3/7/13 1:50 PM, Konstantin M. wrote: Hello, You can try out app_java (http://voipgroup.org.ua/kamailio/dev/) but keep in mind,

Re: [SR-Users] UAC module and SRV records

2013-03-13 Thread Daniel-Constantin Mierla
On 3/13/13 9:25 AM, Olle E. Johansson wrote: 13 mar 2013 kl. 09:08 skrev Daniel-Constantin Mierla : Hello, do you set the port in r-uri/dst-uri? No. That would invalidate SRV record lookup, right? yes. Have you watched the dns traffic? Is directly A/ query? Afaik, this function shoul

Re: [SR-Users] UAC module and SRV records

2013-03-13 Thread Olle E. Johansson
13 mar 2013 kl. 09:08 skrev Daniel-Constantin Mierla : > Hello, > > do you set the port in r-uri/dst-uri? No. That would invalidate SRV record lookup, right? /O > > Cheers, > Daniel > > On 3/12/13 1:27 PM, Olle E. Johansson wrote: >> Hi! >> >> When using the UAC module to send a request to a

Re: [SR-Users] UAC module and SRV records

2013-03-13 Thread Daniel-Constantin Mierla
Hello, do you set the port in r-uri/dst-uri? Cheers, Daniel On 3/12/13 1:27 PM, Olle E. Johansson wrote: Hi! When using the UAC module to send a request to a domain that only exists in SRV records, I get an error message that no A or records can be found for the domain. Is this by des

Re: [SR-Users] how to extract the ip address in the via header received paramter

2013-03-13 Thread Daniel-Constantin Mierla
Hello, the received parameter is constructed from source IP of the incoming request. You get it via $si script variable. Cheers, Daniel On 3/12/13 7:22 PM, Ajay Sabat wrote: Hi, I want to extract the IP address in the received parameter of the top most via header of a response and use tha

Re: [SR-Users] registrar and check registered

2013-03-13 Thread Daniel-Constantin Mierla
Hello, do you want to check if caller (origin) is registered or if callee (destination) is registered? Like one can call to pstn only if has a phone registered for itself? Or you want to say that you want to forward to gateway only for registered users. But maybe you want for local subscribe

Re: [SR-Users] Malformed PUBLISH from pua_dialoginfo (4.0.0)

2013-03-13 Thread Daniel-Constantin Mierla
Hi Charles, On 3/12/13 3:46 PM, Charles Chance wrote: Hi Daniel, They were downloaded yesterday afternoon. We have downloaded again just now and the problem seems to have gone away. Sorry, we should have spotted the newer packages today and tried them first :/ no problem. Good that it was n

Re: [SR-Users] Failover on carrierroute

2013-03-13 Thread Ali Jawad
I will check it out, I still need to be able to send traffic to gateways per prefix, hopefully lcr can do that. On Tue, Mar 12, 2013 at 10:02 PM, Juha Heinanen wrote: > Ali Jawad writes: > > > What I need is to only go to the secondary carrier if all the gateways of > > the primary carrier are d