Re: [SR-Users] siptrace port number error

2012-05-07 Thread Alexandr Dubovikov

Hi Reda,

5/6/2012 4:56 PM, Reda Aouad wrote:

Hi Alex,

Thank you for the fix. Just upgraded to Kamailio 3.3 and now Kamailio 
starts without the previous error. Can this be backported to version 3.2?



It was not my fix :-)

 you can just use the sipcapture module from 3.3 together with 3.2, 
just recompile.


Bu the problem is still not solved. Although Kamailio starts, I get 
now a runtime error.
ERROR: sipcapture [sipcapture.c:675]: ERROR: 
sipcapture:hep_msg_received:  unsupported family [71]


"unsupported family" says: this packet is not HEP.



This is my config running NODE and AGENT on same server:


listen=udp:10.238.235.173:53 
listen=udp:127.0.0.1:9060 

modparam("sipcapture", "db_url", "mysql://homer:homer@localhost/homer")
modparam("sipcapture", "capture_on", 1)
modparam("sipcapture", "capture_node", "homer01")
modparam("sipcapture", "hep_capture_on", 1)

modparam("siptrace", "traced_user_avp", "$avp(s:traced_user)")
modparam("siptrace", "trace_on", 1)
modparam("siptrace", "trace_flag", FLD_TRACE)
modparam("siptrace", "duplicate_uri", "sip:127.0.0.1:9060 
")

modparam("siptrace", "hep_mode_on", 1)
modparam("siptrace", "trace_to_database", 0)

request_route {
...
setflag(FLD_TRACE);
sip_capture();
...
}


It seems sipcapture is listening on both eth0 and loopback interfaces, 
and when it detects packets not encapsulated using HEP on eth0 
(requests from SIP clients), it gives the error above.


kamailio is listening on the both interfaces, not sipcapture self.



Is there a way to tell sipcapture to bind only on one interface using 
HEP mode? It seems impossible for now to run NODE and AGENT on the 
same server using HEP mode...


you can make a trick, check in hep_msg_recieved() a destination port of 
the receive_info structure


something like this:

ri = (struct receive_info *)srevp[2];

if(ri->dst_port != 9060) return -1;


Thanks for helping.
Reda



Wbr,
Alexandr
___
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 [No Audio]

2012-05-07 Thread Fred Flintsone
I am attempting to route local registered users to local registered users
without going to the media server.  I have a media server [*] for PSTN.
 But it doesn't support all the CODECS i wan't to use.  Signalling seems
fine, but i get NO AUDIO on either call leg.  I have the RTP captures from
the local side making the call and the media packets seem to be going
exactly where the SDP dictates.  So i'm a little confused.  Is this where
an RTP Proxy would come in handy?  I haven't been able to get the audio to
work without going to the media server.

If an RTP Proxy is the answer, how much overhead does the proxy add to the
Kamailio server?
Is it something that you don't run on the same machine and use a
distributed environment of RTP proxies on other servers?

Or is this something that should be fine and working without a media proxy?

I really appreciate any help!

Thank you,

Fred
___
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] kamdbctl error

2012-05-07 Thread Vineet Menon
Hi,

I am compiling sources of kamailio 3.2.3 on ubuntu 12.04. I have used make
command

> `make group_include="standard mysql" all`
>
to make the sources. and then

> `make install`.
>
Now when i do kamdbctl it throws an error,

$ kamdbctl create
> ERROR: could not load the script in
> /usr/local/lib64/kamailio//kamctl/kamdbctl.mysql for database engine MYSQL
> ERROR: database engine not loaded - tried 'MYSQL'
>

Any guess what is the problem???


Regards,

Vineet Menon
___
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] Remove_hf doesn't work

2012-05-07 Thread Openser Kamailio
Hi,

I'm currently working with kamailio 3.2. I try to remove the Contact Header
field with remove_hf("Contact") through the file named kamailio.cfg.
When i apply remove_hf("Contact"), it only removes the word Contact, but
the contact address is still present. Let me show you:

Without remove_hf:
Contact: sip:<20...@sipserver.com:5060>;.

After remove_hf:
sip:<20...@sipserver.com:5060>;

I want to remove the whole contact address.
Thanks for help!
___
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] [sr-dev] kamdbctl error

2012-05-07 Thread Daniel-Constantin Mierla

Hello,

is the flavour set to kamailio and db_mysql module installed?

Some guidelines are presented at:

http://www.kamailio.org/wiki/install/3.2.x/git

Cheers,
Daniel

On 5/7/12 11:16 AM, Vineet Menon wrote:

Hi,

I am compiling sources of kamailio 3.2.3 on ubuntu 12.04. I have used 
make command


`make group_include="standard mysql" all`

to make the sources. and then

`make install`.

Now when i do kamdbctl it throws an error,

$ kamdbctl create
ERROR: could not load the script in
/usr/local/lib64/kamailio//kamctl/kamdbctl.mysql for database
engine MYSQL
ERROR: database engine not loaded - tried 'MYSQL'


Any guess what is the problem???


Regards,

Vineet Menon




___
sr-dev mailing list
sr-...@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev


--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

___
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] Remove_hf doesn't work

2012-05-07 Thread Daniel-Constantin Mierla

Hello,

do you use any other function that updates the address in contact header?

If you load debugger module, enable cfgtrace option and send the 
execution log messages over here, we can tell if there is another 
function that may alter contact header.


One option is to use msg_apply_changes() before and after remove_hf(), 
but it is not the optimal way.


Cheers,
Daniel

On 5/7/12 2:13 PM, Openser Kamailio wrote:

Hi,

I'm currently working with kamailio 3.2. I try to remove the Contact 
Header field with remove_hf("Contact") through the file named 
kamailio.cfg.
When i apply remove_hf("Contact"), it only removes the word Contact, 
but the contact address is still present. Let me show you:


Without remove_hf:
Contact: sip:<20...@sipserver.com:5060 
>;.


After remove_hf:
sip:<20...@sipserver.com:5060 
>;


I want to remove the whole contact address.
Thanks for help!



___
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 - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

___
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] Problem with adding extra field in acc table.

2012-05-07 Thread Daniel-Constantin Mierla

Hello,

$var(...) are variables with the value stored in private memory for each 
process, while accounting write event can happen in a different process 
than the one where you set the variable.


You have to use $avp(...) instead of $var(...).

Cheers,
Daniel

On 5/4/12 5:08 PM, Gary Chen wrote:


I using Mysql DB.

I need to add extra fields in acc table. The field having problem is 
the last one 'account'


Here is my code in kamailio.cfg:
...
modparam("acc",
"db_extra",
"src_user=$fU;src_domain=$fd;dst_ouser=$tU;dst_user=$rU;dst_domain=$rd;user_agent=$hdr(User-Agent);account=$var(s:account_number)")
...

route {



dp_translate("3", "$fU/$avp(s:dst)")
$v(s:account_number) = $avp(s:dst);


}

By
looking at the xlog message, $v(s:account_number) has correct value.
But the value in acc table is not always correct. Sometime account field
populated with 0 and sometime it populated with wrong account number.
It seems that $v(s:account_number) sometime corrupted.

Am I doing something wrong?

Gary



___
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 - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

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

2012-05-07 Thread Saul Waizer
Thank you Reda,

Is there a way to utilize external scripts for authentication? Like bash,
php etc? I cannot change the format of the LDAP but I am thinking about
other methods that could possibly work too utilizing the same
pv_www_authenticate logic, however these would require some external script
processing.

Example: SSO Authentication.

 SIP user > SIP server > external auth script > OpenSSO server

Thank you


On Fri, May 4, 2012 at 5:56 PM, Reda Aouad  wrote:

> Sorry didn't reply to mailing list before. Emails are below.
>
> SHA1 encryption may not encrypt the same way as HA1 (HA1 = MD5 of realm +
> username + password), so the problem may be here.
> I suggest you store your passwords as clear text in LDAP for testing first.
>
> Reda
>
>
>
> On Fri, May 4, 2012 at 11:14 PM, Saul Waizer  wrote:
>
>> with the variations I get different results:
>>  4(24126) ERROR: 

Re: [SR-Users] [sr-dev] kamdbctl error

2012-05-07 Thread Vineet Menon
yes, flavour is set to kamailio and isn't db_mysql module complied the
way i just mentioned??

Regards,

Vineet Menon




On 7 May 2012 18:09, Daniel-Constantin Mierla  wrote:

>  Hello,
>
> is the flavour set to kamailio and db_mysql module installed?
>
> Some guidelines are presented at:
>
> http://www.kamailio.org/wiki/install/3.2.x/git
>
> Cheers,
> Daniel
>
>
> On 5/7/12 11:16 AM, Vineet Menon wrote:
>
> Hi,
>
> I am compiling sources of kamailio 3.2.3 on ubuntu 12.04. I have used make
> command
>
>> `make group_include="standard mysql" all`
>>
> to make the sources. and then
>
>> `make install`.
>>
> Now when i do kamdbctl it throws an error,
>
> $ kamdbctl create
>> ERROR: could not load the script in
>> /usr/local/lib64/kamailio//kamctl/kamdbctl.mysql for database engine MYSQL
>> ERROR: database engine not loaded - tried 'MYSQL'
>>
>
> Any guess what is the problem???
>
>
> Regards,
>
> Vineet Menon
>
>
>
>
> ___
> sr-dev mailing 
> listsr-...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
>
>
> --
> Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda 
> - http://www.linkedin.com/in/miconda
>
>
___
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] Remove_hf doesn't work

2012-05-07 Thread Daniel-Constantin Mierla

Hello,

you have fix_nated_contact() which does an update to contact address:

May  7 15:46:58 localhost /usr/local/sbin/kamailio[15742]: ERROR: *** 
cfgtrace: c=[/usr/local/etc/kamailio//kamailio.cfg] l=889 a=25 
n=fix_nated_contact


If you want to remove the contact, then do not call that function, or 
use the msg_apply_changes() as mentioned previously.


Cheers,
Daniel

On 5/7/12 4:23 PM, Openser Kamailio wrote:

Hi Daniel,

Please find my log messages in attachments.
Open my log file with Notepad, it's better.

Thanks!

On Mon, May 7, 2012 at 2:41 PM, Daniel-Constantin Mierla 
mailto:mico...@gmail.com>> wrote:


Hello,

do you use any other function that updates the address in contact
header?

If you load debugger module, enable cfgtrace option and send the
execution log messages over here, we can tell if there is another
function that may alter contact header.

One option is to use msg_apply_changes() before and after
remove_hf(), but it is not the optimal way.

Cheers,
Daniel


On 5/7/12 2:13 PM, Openser Kamailio wrote:

Hi,

I'm currently working with kamailio 3.2. I try to remove the
Contact Header field with remove_hf("Contact") through the file
named kamailio.cfg.
When i apply remove_hf("Contact"), it only removes the word
Contact, but the contact address is still present. Let me show you:

Without remove_hf:
Contact: sip:<20...@sipserver.com:5060
>;.

After remove_hf:
sip:<20...@sipserver.com:5060
>;

I want to remove the whole contact address.
Thanks for help!



___
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 -http://www.asipto.com

http://twitter.com/#!/miconda    
-http://www.linkedin.com/in/miconda




--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

___
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] [sr-dev] kamdbctl error

2012-05-07 Thread Daniel-Constantin Mierla

Hello,

On 5/7/12 5:07 PM, Vineet Menon wrote:
yes, flavour is set to kamailio and isn't db_mysql module complied 
the way i just mentioned??


it should be, but typos/errors in command or bugs may prevent that. So 
it is better to check in the folder with the modules.


Cheers,
Daniel


Regards,

Vineet Menon




On 7 May 2012 18:09, Daniel-Constantin Mierla > wrote:


Hello,

is the flavour set to kamailio and db_mysql module installed?

Some guidelines are presented at:

http://www.kamailio.org/wiki/install/3.2.x/git

Cheers,
Daniel


On 5/7/12 11:16 AM, Vineet Menon wrote:

Hi,

I am compiling sources of kamailio 3.2.3 on ubuntu 12.04. I have
used make command

`make group_include="standard mysql" all`

to make the sources. and then

`make install`.

Now when i do kamdbctl it throws an error,

$ kamdbctl create
ERROR: could not load the script in
/usr/local/lib64/kamailio//kamctl/kamdbctl.mysql for database
engine MYSQL
ERROR: database engine not loaded - tried 'MYSQL'


Any guess what is the problem???


Regards,

Vineet Menon




___
sr-dev mailing list
sr-...@lists.sip-router.org  
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev


-- 
Daniel-Constantin Mierla -http://www.asipto.com

http://twitter.com/#!/miconda    
-http://www.linkedin.com/in/miconda




--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

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

2012-05-07 Thread Reda Aouad
You want to get the password (in clear text??) using an external script to
check it using pv_www_authenticate?

You can use the following function from exec module:
http://kamailio.org/docs/modules/stable/modules_k/exec.html#id2552128

The output of your command (shell script, php, ...) can be stored in an avp
passed to pv_www_authenticate.
Example to get the password: exec_avp("auth.sh '$au' ", "$avp(s:password)")

$au=authentication username
the output of auth.sh will be stored in $avp(s:password)

Now this was how to use an external script and get its return values. How
will you proceed knowing that password are hashed using SHA1 in your
database and password+username+realm hashed using MD5 in SIP header?

Reda



On Mon, May 7, 2012 at 4:52 PM, Saul Waizer  wrote:

> Thank you Reda,
>
> Is there a way to utilize external scripts for authentication? Like bash,
> php etc? I cannot change the format of the LDAP but I am thinking about
> other methods that could possibly work too utilizing the same
> pv_www_authenticate logic, however these would require some external script
> processing.
>
> Example: SSO Authentication.
>
>  SIP user > SIP server > external auth script > OpenSSO server
>
> Thank you
>
>
> On Fri, May 4, 2012 at 5:56 PM, Reda Aouad  wrote:
>
>> Sorry didn't reply to mailing list before. Emails are below.
>>
>> SHA1 encryption may not encrypt the same way as HA1 (HA1 = MD5 of realm +
>> username + password), so the problem may be here.
>> I suggest you store your passwords as clear text in LDAP for testing
>> first.
>>
>> Reda
>>
>>
>>
>> On Fri, May 4, 2012 at 11:14 PM, Saul Waizer wrote:
>>
>>> with the variations I get different results:
>>>  4(24126) ERROR: 

Re: [SR-Users] [sr-dev] kamdbctl error

2012-05-07 Thread Vineet Menon
Ya, you were right...mysql.so or db_mysql.so is not present in the lib
folder...
Is der any remedy for this?

$ ls -R /usr/lib64/kamailio/
> /usr/lib64/kamailio/:
> kamctl   libkmi.so.1libsrdb1.so  libsrdb2.so.1.0
> modules_k
> libkcore.so  libkmi.so.1.0  libsrdb1.so.1libtrie.so
> modules_s
> libkcore.so.1libser_cds.so  libsrdb1.so.1.0  libtrie.so.1
> libkcore.so.1.0  libser_cds.so.0libsrdb2.so  libtrie.so.1.0
> libkmi.solibser_cds.so.0.1  libsrdb2.so.1modules
>
> /usr/lib64/kamailio/kamctl:
> dbtextdbkamctl.dbtext  kamctl.ser_mikamdbctl.base
> kamctl.base kamctl.fifokamctl.sqlbase   kamdbctl.dbtext
> kamctl.ctlbase  kamctl.ser kamctl.unixsock
>
> /usr/lib64/kamailio/kamctl/dbtextdb:
> dbtextdb.py
>
> /usr/lib64/kamailio/modules:
> async.so ctl.so   matrix.so  prefix_route.so  sms.so
> auth.so  db_flatstore.so  mediaproxy.so  ratelimit.so textopsx.so
> avpops.sodebugger.so  mi_rpc.so  rtpproxy.so  tm.so
> blst.so  dialplan.so  mqueue.so  sanity.sotopoh.so
> cfg_db.soenum.so  mtree.so   sdpops.soxhttp.so
> cfg_rpc.so   ipops.so pdb.so sipcapture.so
> counters.so  lcr.so   pipelimit.so   sl.so
>
> /usr/lib64/kamailio/modules_k:
> acc.so   exec.so   permissions.so  sqlops.so
> alias_db.so  group.so  pike.so sst.so
> auth_db.so   htable.so p_usrloc.so statistics.so
> benchmark.so imc.sopv.so   textops.so
> call_control.so  kex.soqos.so  tmx.so
> cfgutils.so  maxfwd.so regex.souac_redirect.so
> db_text.so   mi_datagram.soregistrar.souac.so
> dialog.somi_fifo.sorr.so   uri_db.so
> dispatcher.somsilo.so  rtimer.so   userblacklist.so
> diversion.so nathelper.so  seas.so usrloc.so
> dmq.so   nat_traversal.so  siptrace.so xlog.so
> domain.sopath.so   siputils.so
> drouting.so  pdt.sospeeddial.so
>
> /usr/lib64/kamailio/modules_s:
> auth_db.so domain.so  nathelper.soregistrar.so  uac.so
> dialog.so  exec.sopdt.so  rr.so uri_db.so
> dispatcher.so  maxfwd.so  permissions.so  speeddial.so  usrloc.so
> diversion.so   msilo.so   pike.so textops.soxlog.so
>

Regards,

Vineet Menon




On 7 May 2012 20:51, Daniel-Constantin Mierla  wrote:

>  Hello,
>
>
> On 5/7/12 5:07 PM, Vineet Menon wrote:
>
> yes, flavour is set to kamailio and isn't db_mysql module complied the
> way i just mentioned??
>
>
> it should be, but typos/errors in command or bugs may prevent that. So it
> is better to check in the folder with the modules.
>
> Cheers,
> Daniel
>
>
> Regards,
>
> Vineet Menon
>
>
>
>
> On 7 May 2012 18:09, Daniel-Constantin Mierla  wrote:
>
>>  Hello,
>>
>> is the flavour set to kamailio and db_mysql module installed?
>>
>> Some guidelines are presented at:
>>
>> http://www.kamailio.org/wiki/install/3.2.x/git
>>
>> Cheers,
>> Daniel
>>
>>
>> On 5/7/12 11:16 AM, Vineet Menon wrote:
>>
>>  Hi,
>>
>> I am compiling sources of kamailio 3.2.3 on ubuntu 12.04. I have used
>> make command
>>
>>> `make group_include="standard mysql" all`
>>>
>> to make the sources. and then
>>
>>> `make install`.
>>>
>> Now when i do kamdbctl it throws an error,
>>
>> $ kamdbctl create
>>> ERROR: could not load the script in
>>> /usr/local/lib64/kamailio//kamctl/kamdbctl.mysql for database engine MYSQL
>>> ERROR: database engine not loaded - tried 'MYSQL'
>>>
>>
>> Any guess what is the problem???
>>
>>
>> Regards,
>>
>> Vineet Menon
>>
>>
>>
>>
>>  ___
>> sr-dev mailing 
>> listsr-...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
>>
>>
>> --
>> Daniel-Constantin Mierla - 
>> http://www.asipto.comhttp://twitter.com/#!/miconda - 
>> http://www.linkedin.com/in/miconda
>>
>>
>
> --
> Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda 
> - http://www.linkedin.com/in/miconda
>
>
___
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] [sr-dev] kamdbctl error

2012-05-07 Thread Anton Kvashenkin
lsof -c kamailio -ad mem | grep db

2012/5/8 Vineet Menon 

> Ya, you were right...mysql.so or db_mysql.so is not present in the lib
> folder...
> Is der any remedy for this?
>
> $ ls -R /usr/lib64/kamailio/
>> /usr/lib64/kamailio/:
>> kamctl   libkmi.so.1libsrdb1.so  libsrdb2.so.1.0
>> modules_k
>> libkcore.so  libkmi.so.1.0  libsrdb1.so.1libtrie.so
>> modules_s
>> libkcore.so.1libser_cds.so  libsrdb1.so.1.0  libtrie.so.1
>> libkcore.so.1.0  libser_cds.so.0libsrdb2.so  libtrie.so.1.0
>> libkmi.solibser_cds.so.0.1  libsrdb2.so.1modules
>>
>> /usr/lib64/kamailio/kamctl:
>> dbtextdbkamctl.dbtext  kamctl.ser_mikamdbctl.base
>> kamctl.base kamctl.fifokamctl.sqlbase   kamdbctl.dbtext
>> kamctl.ctlbase  kamctl.ser kamctl.unixsock
>>
>> /usr/lib64/kamailio/kamctl/dbtextdb:
>> dbtextdb.py
>>
>> /usr/lib64/kamailio/modules:
>> async.so ctl.so   matrix.so  prefix_route.so  sms.so
>> auth.so  db_flatstore.so  mediaproxy.so  ratelimit.so textopsx.so
>> avpops.sodebugger.so  mi_rpc.so  rtpproxy.so  tm.so
>> blst.so  dialplan.so  mqueue.so  sanity.sotopoh.so
>> cfg_db.soenum.so  mtree.so   sdpops.soxhttp.so
>> cfg_rpc.so   ipops.so pdb.so sipcapture.so
>> counters.so  lcr.so   pipelimit.so   sl.so
>>
>> /usr/lib64/kamailio/modules_k:
>> acc.so   exec.so   permissions.so  sqlops.so
>> alias_db.so  group.so  pike.so sst.so
>> auth_db.so   htable.so p_usrloc.so statistics.so
>> benchmark.so imc.sopv.so   textops.so
>> call_control.so  kex.soqos.so  tmx.so
>> cfgutils.so  maxfwd.so regex.souac_redirect.so
>> db_text.so   mi_datagram.soregistrar.souac.so
>> dialog.somi_fifo.sorr.so   uri_db.so
>> dispatcher.somsilo.so  rtimer.so   userblacklist.so
>> diversion.so nathelper.so  seas.so usrloc.so
>> dmq.so   nat_traversal.so  siptrace.so xlog.so
>> domain.sopath.so   siputils.so
>> drouting.so  pdt.sospeeddial.so
>>
>> /usr/lib64/kamailio/modules_s:
>> auth_db.so domain.so  nathelper.soregistrar.so  uac.so
>> dialog.so  exec.sopdt.so  rr.so uri_db.so
>> dispatcher.so  maxfwd.so  permissions.so  speeddial.so  usrloc.so
>> diversion.so   msilo.so   pike.so textops.soxlog.so
>>
>
> Regards,
>
> Vineet Menon
>
>
>
>
>
> On 7 May 2012 20:51, Daniel-Constantin Mierla  wrote:
>
>>  Hello,
>>
>>
>> On 5/7/12 5:07 PM, Vineet Menon wrote:
>>
>> yes, flavour is set to kamailio and isn't db_mysql module complied
>> the way i just mentioned??
>>
>>
>> it should be, but typos/errors in command or bugs may prevent that. So it
>> is better to check in the folder with the modules.
>>
>> Cheers,
>> Daniel
>>
>>
>> Regards,
>>
>> Vineet Menon
>>
>>
>>
>>
>> On 7 May 2012 18:09, Daniel-Constantin Mierla  wrote:
>>
>>>  Hello,
>>>
>>> is the flavour set to kamailio and db_mysql module installed?
>>>
>>> Some guidelines are presented at:
>>>
>>> http://www.kamailio.org/wiki/install/3.2.x/git
>>>
>>> Cheers,
>>> Daniel
>>>
>>>
>>> On 5/7/12 11:16 AM, Vineet Menon wrote:
>>>
>>>  Hi,
>>>
>>> I am compiling sources of kamailio 3.2.3 on ubuntu 12.04. I have used
>>> make command
>>>
 `make group_include="standard mysql" all`

>>> to make the sources. and then
>>>
 `make install`.

>>> Now when i do kamdbctl it throws an error,
>>>
>>> $ kamdbctl create
 ERROR: could not load the script in
 /usr/local/lib64/kamailio//kamctl/kamdbctl.mysql for database engine MYSQL
 ERROR: database engine not loaded - tried 'MYSQL'

>>>
>>> Any guess what is the problem???
>>>
>>>
>>> Regards,
>>>
>>> Vineet Menon
>>>
>>>
>>>
>>>
>>>  ___
>>> sr-dev mailing 
>>> listsr-...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
>>>
>>>
>>> --
>>> Daniel-Constantin Mierla - 
>>> http://www.asipto.comhttp://twitter.com/#!/miconda - 
>>> http://www.linkedin.com/in/miconda
>>>
>>>
>>
>> --
>> Daniel-Constantin Mierla - 
>> http://www.asipto.comhttp://twitter.com/#!/miconda - 
>> http://www.linkedin.com/in/miconda
>>
>>
>
> ___
> 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] routing logic

2012-05-07 Thread Vineet Menon
Hi,
Where can i find a nice tutorial for routing logic in cfg file for kamailio?
i want help on the basic functions like record_route() , sl_send_reply(),
t_relay() etc...

Regards,

Vineet Menon
___
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] [sr-dev] kamdbctl error

2012-05-07 Thread Daniel-Constantin Mierla

Hello,

one option - edit modules.lst in the root folder with kamailio sources 
and add "db_mysql" to the "include_modules" variable.


Then recompile and reinstall.

Cheers,
Daniel

On 5/8/12 6:45 AM, Vineet Menon wrote:
Ya, you were right...mysql.so or db_mysql.so is not present in the lib 
folder...

Is der any remedy for this?

$ ls -R /usr/lib64/kamailio/
/usr/lib64/kamailio/:
kamctl   libkmi.so.1libsrdb1.so 
libsrdb2.so.1.0  modules_k
libkcore.so  libkmi.so.1.0  libsrdb1.so.1   
libtrie.so   modules_s

libkcore.so.1libser_cds.so  libsrdb1.so.1.0  libtrie.so.1
libkcore.so.1.0  libser_cds.so.0libsrdb2.so  libtrie.so.1.0
libkmi.solibser_cds.so.0.1  libsrdb2.so.1modules

/usr/lib64/kamailio/kamctl:
dbtextdbkamctl.dbtext  kamctl.ser_mikamdbctl.base
kamctl.base kamctl.fifokamctl.sqlbase   kamdbctl.dbtext
kamctl.ctlbase  kamctl.ser kamctl.unixsock

/usr/lib64/kamailio/kamctl/dbtextdb:
dbtextdb.py

/usr/lib64/kamailio/modules:
async.so ctl.so   matrix.so  prefix_route.so  sms.so
auth.so  db_flatstore.so  mediaproxy.so  ratelimit.so
textopsx.so

avpops.sodebugger.so  mi_rpc.so  rtpproxy.so  tm.so
blst.so  dialplan.so  mqueue.so  sanity.sotopoh.so
cfg_db.soenum.so  mtree.so   sdpops.soxhttp.so
cfg_rpc.so   ipops.so pdb.so sipcapture.so
counters.so  lcr.so   pipelimit.so   sl.so

/usr/lib64/kamailio/modules_k:
acc.so   exec.so   permissions.so  sqlops.so
alias_db.so  group.so  pike.so sst.so
auth_db.so   htable.so p_usrloc.so statistics.so
benchmark.so imc.sopv.so   textops.so
call_control.so  kex.soqos.so  tmx.so
cfgutils.so  maxfwd.so regex.souac_redirect.so
db_text.so   mi_datagram.soregistrar.souac.so
dialog.somi_fifo.sorr.so   uri_db.so
dispatcher.somsilo.so  rtimer.so   userblacklist.so
diversion.so nathelper.so  seas.so usrloc.so
dmq.so   nat_traversal.so  siptrace.so xlog.so
domain.sopath.so   siputils.so
drouting.so  pdt.sospeeddial.so

/usr/lib64/kamailio/modules_s:
auth_db.so domain.so  nathelper.soregistrar.so  uac.so
dialog.so  exec.sopdt.so  rr.so uri_db.so
dispatcher.so  maxfwd.so  permissions.so  speeddial.so  usrloc.so
diversion.so   msilo.so   pike.so textops.soxlog.so


Regards,

Vineet Menon




On 7 May 2012 20:51, Daniel-Constantin Mierla > wrote:


Hello,


On 5/7/12 5:07 PM, Vineet Menon wrote:

yes, flavour is set to kamailio and isn't db_mysql module
complied the way i just mentioned??


it should be, but typos/errors in command or bugs may prevent
that. So it is better to check in the folder with the modules.

Cheers,
Daniel



Regards,

Vineet Menon




On 7 May 2012 18:09, Daniel-Constantin Mierla mailto:mico...@gmail.com>> wrote:

Hello,

is the flavour set to kamailio and db_mysql module installed?

Some guidelines are presented at:

http://www.kamailio.org/wiki/install/3.2.x/git

Cheers,
Daniel


On 5/7/12 11:16 AM, Vineet Menon wrote:

Hi,

I am compiling sources of kamailio 3.2.3 on ubuntu 12.04. I
have used make command

`make group_include="standard mysql" all`

to make the sources. and then

`make install`.

Now when i do kamdbctl it throws an error,

$ kamdbctl create
ERROR: could not load the script in
/usr/local/lib64/kamailio//kamctl/kamdbctl.mysql for
database engine MYSQL
ERROR: database engine not loaded - tried 'MYSQL'


Any guess what is the problem???


Regards,

Vineet Menon




___
sr-dev mailing list
sr-...@lists.sip-router.org  
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev


-- 
Daniel-Constantin Mierla -http://www.asipto.com

http://twitter.com/#!/miconda    
-http://www.linkedin.com/in/miconda




-- 
Daniel-Constantin Mierla -http://www.asipto.com

http://twitter.com/#!/miconda    
-http://www.linkedin.com/in/miconda




--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

___
SIP Express Router (SER) and Kamailio (OpenSER)