Re: [OpenSIPS-Users] how to adapt opensips's database to authentification ?
>Hi Sam, >You can extract the info from your database with avp_db_query from >avp_ops module ( >http://www.opensips.org/html/docs/modules/devel/avpops.html#id271033) >and use that info to do authentication with pvar >auth(http://www.opensips.org/html/docs/modules/devel/auth.html#id271238). >Regards, >-- >Anca Vamanu >www.voice-system.ro Hi Anca Vamanu, Thank you for your reply, but I do not see how make it, I'm a beginner with OpenSIPS, do you have any example of authentication with avpops's module ? Regards. Sam. -- View this message in context: http://n2.nabble.com/how-to-adapt-opensips-s-database-to-authentification-tp4911951p4912585.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] how to adapt opensips's database to authentification ?
Thank you Antonio for your reply, my database does not contain subscribe's table I have a table where I have column's password and column's username and I want to authenticate with it without change my database. I don't understand how authentication realy happens yet, with avpos, I can recover any data in the DB but I don't know how to have the user's password and user's login to be able to search on db if it exists. The simplest solution is that I can modify the source code of auth_db module to read from my db (not from subscriber's table). do you have any idea, how I can do it ?. Regards. Sam. -- View this message in context: http://n2.nabble.com/how-to-adapt-opensips-s-database-to-authentification-tp4911951p4913192.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] how to adapt opensips's database to authentification ?
I'm trying to change the table where opensips check for the authentification like that : I change the names of colums an desable calculate_ha1 (I don't need it because my passwords are stored plaintext in DB) modparam("auth_db", "use_domain", 1) ### I have juste 1 domain modparam("auth_db", "calculate_ha1", 0) modparam("auth_db", "password_column", "password") modparam("auth_db", "user_column", "name") modparam("auth_db", "db_url", "mysql://user:passw...@mydb.net/mydb") modparam("auth_db", "load_credentials", "") and I try to change the table like that : if (!www_authorize("", "my_table")) {...} I don't know if what I do is right ?? after restart opensips (of course it doesn't start, I check in the syslog file and I foud that : ERROR:db_mysql:db_mysql_submit_query: driver error: Table 'my_db.version' doesn't exist so I don't know if I must create this table and I don't know for what this table is necessary ? Are there any trick to baypass this obligation ?. Thanks. Best Regards. -- View this message in context: http://n2.nabble.com/how-to-adapt-opensips-s-database-to-authentification-tp4911951p4913726.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] How to execute a script on Opensips every n min
Hi everybody, I'd like to execute script on Opensips to refresh mysql DB every N minute. The target of this script is to download DB of subscriber which is on other server. do you have any ideas ?. Best regards. -- View this message in context: http://n2.nabble.com/How-to-execute-a-script-on-Opensips-every-n-min-tp4913903p4913903.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] How to execute a script on Opensips every n min
Hi Bogdan, thanks for your reply. I will tray to make a cron job but I think that is not simply to do :s. Best regards. Sam. -- View this message in context: http://n2.nabble.com/How-to-execute-a-script-on-Opensips-every-n-min-tp4913903p4913977.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] if subscriber.username contain 2 words the authentification doesn't work
Hi everybody, I just noticed that if the username field contain 2 words It Is impossible for the user to be authentified, are there a solution to resolve it ? Best regards. Thanks. Sam -- View this message in context: http://n2.nabble.com/if-subscriber-username-contain-2-words-the-authentification-doesn-t-work-tp4926026p4926026.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] if subscriber.username contain 2 words the authentification doesn't work
Hi Bogdan, I tried to capture packets using ngrep. when I try to be authentificated with my soft-phone like x-lite, I got no packet but when I tray whith my ip phone (linksys), I have this capture (with username = user 1): U 192.168.0.47:5060 -> 192.168.0.190:5060 REGISTER sip:192.168.0.190 SIP/2.0. Via: SIP/2.0/UDP 192.168.0.47:5060;branch=z9hG4bK-9528bec1. From: "user 1" ;tag=a71b38209dd65a5do0. To: "user 1" . Call-ID: e8d5f73c-24874...@192.168.0.47. CSeq: 1 REGISTER. Max-Forwards: 70. Contact: "user 1" ;expires=3600. User-Agent: Sipura/SPA841-3.1.4(a). Content-Length: 0. Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER. . U 192.168.0.47:5060 -> 192.168.0.190:5060 REGISTER sip:192.168.0.190 SIP/2.0. Via: SIP/2.0/UDP 192.168.0.47:5060;branch=z9hG4bK-9528bec1. From: "user 1" ;tag=a71b38209dd65a5do0. To: "user 1" . Call-ID: e8d5f73c-24874...@192.168.0.47. CSeq: 1 REGISTER. Max-Forwards: 70. Contact: "user 1" ;expires=3600. User-Agent: Sipura/SPA841-3.1.4(a). Content-Length: 0. Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER. . U 192.168.0.47:5060 -> 192.168.0.190:5060 REGISTER sip:192.168.0.190 SIP/2.0. Via: SIP/2.0/UDP 192.168.0.47:5060;branch=z9hG4bK-9528bec1. From: "user 1" ;tag=a71b38209dd65a5do0. To: "user 1" . Call-ID: e8d5f73c-24874...@192.168.0.47. CSeq: 1 REGISTER. Max-Forwards: 70. Contact: "user 1" ;expires=3600. User-Agent: Sipura/SPA841-3.1.4(a). Content-Length: 0. Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER. . U 192.168.0.47:5060 -> 192.168.0.190:5060 REGISTER sip:192.168.0.190 SIP/2.0. Via: SIP/2.0/UDP 192.168.0.47:5060;branch=z9hG4bK-9528bec1. From: "user 1" ;tag=a71b38209dd65a5do0. To: "user 1" . Call-ID: e8d5f73c-24874...@192.168.0.47. CSeq: 1 REGISTER. Max-Forwards: 70. Contact: "user 1" ;expires=3600. User-Agent: Sipura/SPA841-3.1.4(a). Content-Length: 0. Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER. . U 192.168.0.47:5060 -> 192.168.0.190:5060 REGISTER sip:192.168.0.190 SIP/2.0. Via: SIP/2.0/UDP 192.168.0.47:5060;branch=z9hG4bK-9528bec1. From: "user 1" ;tag=a71b38209dd65a5do0. To: "user 1" . Call-ID: e8d5f73c-24874...@192.168.0.47. CSeq: 1 REGISTER. Max-Forwards: 70. Contact: "user 1" ;expires=3600. User-Agent: Sipura/SPA841-3.1.4(a). Content-Length: 0. Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER. . U 192.168.0.47:5060 -> 192.168.0.190:5060 REGISTER sip:192.168.0.190 SIP/2.0. Via: SIP/2.0/UDP 192.168.0.47:5060;branch=z9hG4bK-9528bec1. From: "user 1" ;tag=a71b38209dd65a5do0. To: "user 1" . Call-ID: e8d5f73c-24874...@192.168.0.47. CSeq: 1 REGISTER. Max-Forwards: 70. Contact: "user 1" ;expires=3600. User-Agent: Sipura/SPA841-3.1.4(a). Content-Length: 0. Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER. . U 192.168.0.47:5060 -> 192.168.0.190:5060 REGISTER sip:192.168.0.190 SIP/2.0. Via: SIP/2.0/UDP 192.168.0.47:5060;branch=z9hG4bK-9528bec1. From: "user 1" ;tag=a71b38209dd65a5do0. To: "user 1" . Call-ID: e8d5f73c-24874...@192.168.0.47. CSeq: 1 REGISTER. Max-Forwards: 70. Contact: "user 1" ;expires=3600. User-Agent: Sipura/SPA841-3.1.4(a). Content-Length: 0. Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER. . U 192.168.0.47:5060 -> 192.168.0.190:5060 REGISTER sip:192.168.0.190 SIP/2.0. Via: SIP/2.0/UDP 192.168.0.47:5060;branch=z9hG4bK-dfa12e29. From: "user 1" ;tag=a71b38209dd65a5do0. To: "user 1" . Call-ID: e8d5f73c-24874...@192.168.0.47. CSeq: 2 REGISTER. Max-Forwards: 70. Contact: "user 1" ;expires=3600. User-Agent: Sipura/SPA841-3.1.4(a). Content-Length: 0. Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER. . U 192.168.0.47:5060 -> 192.168.0.190:5060 REGISTER sip:192.168.0.190 SIP/2.0. Via: SIP/2.0/UDP 192.168.0.47:5060;branch=z9hG4bK-dfa12e29. From: "user 1" ;tag=a71b38209dd65a5do0. To: "user 1" . Call-ID: e8d5f73c-24874...@192.168.0.47. CSeq: 2 REGISTER. Max-Forwards: 70. Contact: "user 1" ;expires=3600. User-Agent: Sipura/SPA841-3.1.4(a). Content-Length: 0. Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER. . U 192.168.0.47:5060 -> 192.168.0.190:5060 REGISTER sip:192.168.0.190 SIP/2.0. Via: SIP/2.0/UDP 192.168.0.47:5060;branch=z9hG4bK-dfa12e29. From: "user 1" ;tag=a71b38209dd65a5do0. To: "user 1" . Call-ID: e8d5f73c-24874...@192.168.0.47. CSeq: 2 REGISTER. Max-Forwards: 70. Contact: "user 1" ;expires=3600. User-Agent: Sipura/SPA841-3.1.4(a). Content-Length: 0. Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER. . U 192.168.0.47:5060 -> 192.168.0.190:5060 REGISTER sip:192.168.0.190 SIP/2.0. Via: SIP/2.0/UDP 192.168.0.47:5060;branch=z9hG4bK-dfa12e29. From: "user 1" ;tag=a71b38209dd65a5do0. To: "user 1" . Call-ID: e8d5f73c-24874...@192.168.0.47. CSeq: 2 REGISTER. Max-Forwards: 70. Contact: "user 1" ;expires=3600. User-Agent: Sipura/SPA841-3.1.4(a). Content-Length: 0. Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER. . U 192.168.0.47:5060 -> 192.168.0.190:5060 REGISTER sip:192.168.0.190 SIP/2.0. Via: SIP/2.0/UDP 1
Re: [OpenSIPS-Users] if subscriber.username contain 2 words the authentification doesn't work
Thank you for your fast replay. Best regards. Sam. -- View this message in context: http://n2.nabble.com/if-subscriber-username-contain-2-words-the-authentification-doesn-t-work-tp4926026p4930853.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] how to retrieve the users who are registered ?
Hi everybody, I am a bit lost in my project with OpenSIPS, it's been 20 days since I started and I don't have understood yet how to add a source code in my opensips.cfg, how to use avp and in what part of Configuration File (opensips.cfg) ?. Are there a good tutorial where this point is explain well or can I have a good example ? I installed OpenSIPS with Mysql and I want to register the users who are registered ( id, ip address, source port) in a new table and refresh it to have just the users who are online. How can I do this? Best regards. Thanks, specialy to Bogdan. Sam. -- View this message in context: http://n2.nabble.com/how-to-retrieve-the-users-who-are-registered-tp4931953p4931953.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] how to retrieve the users who are registered ?
Other question, I don't want to create another topic just for a little question :p. Does a AGI like in asterisk exist for Opensips?. Best regards. Sam. -- View this message in context: http://n2.nabble.com/how-to-retrieve-the-users-who-are-registered-tp4931953p4932130.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] how to retrieve the users who are registered ?
Antonio, Thank you very much, I don't noticed LOCATION's table. Best regards. Sam. -- View this message in context: http://n2.nabble.com/how-to-retrieve-the-users-who-are-registered-tp4931953p4932165.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] CDRTool without Freeradius and RTPproxy ?
Hi everybody, I have installed cdrtools as explained in the website but I do not know whether to have a good cdrtools it is necessary to have installed freeeradius and rtpproxy? Best regards. Sam. -- View this message in context: http://n2.nabble.com/CDRTool-without-Freeradius-and-RTPproxy-tp4936891p4936891.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] CDRTool without Freeradius and RTPproxy ?
nobody can answer me ? -- View this message in context: http://n2.nabble.com/CDRTool-without-Freeradius-and-RTPproxy-tp4936891p4937814.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] CDRTool without Freeradius and RTPproxy ?
Thanks Brian for your interesting on my question, I'm traying to install freeradius and rtpproxy to use CDRTool but I have not yet succeeded to get works freeradius, do you have a good tutorial for this ? Best regards. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/CDRTool-without-Freeradius-and-RTPproxy-tp4936891p4941701.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] CDRTool without Freeradius and RTPproxy ?
it is trouble installing, I follow the steps whichs are in the book "building telephony system with opensips 1.6" but it doesn't work :s -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/CDRTool-without-Freeradius-and-RTPproxy-tp4936891p4941937.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] CDRTool without Freeradius and RTPproxy ?
Hi Laszlo, In my configuration I installed rtpproxy and freeradius but the CDRTool don't works, I have this message in the web interface Cannot connect to rating engine 192.168.0.190:9024 and in the network space Error: mediaproxy certificate file /etc/cdrtool/mediaproxy.10.0.0.1.pem does not exist. Please help me !! Best regards. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/CDRTool-without-Freeradius-and-RTPproxy-tp4936891p4942538.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] CDRTool without Freeradius and RTPproxy ?
you are right, i have installed rtpproxy, I will install mediaproxy but my installation of freeradius it doesn't feel be correct because my opensips don't want to work after adding configuring freeradius, I don't have step by step tutorial to help me, I tray to resolve this problem since yesterday. Best regards. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/CDRTool-without-Freeradius-and-RTPproxy-tp4936891p4942695.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] CDRTool without Freeradius and RTPproxy ?
I have this message in syslog : kernel: [31477.204996] opensips[9135]: segfault at 0 ip b7266e68 sp bfab5490 error 4 in libradiusclient-ng.so.2.0.0[b7261000+b000] -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/CDRTool-without-Freeradius-and-RTPproxy-tp4936891p4944023.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] CDRTool without Freeradius and RTPproxy ?
yes I use IP in that file -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/CDRTool-without-Freeradius-and-RTPproxy-tp4936891p4945447.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] CDRTool without Freeradius and RTPproxy ?
Hi everybody, I apologize for the delay, I'm really desperate, I tried everything. yes I loaded aaa_radius's module, now i have this message when I tray to run freeradius -X : /etc/freeradius/modules/exec[24]: Invalid version in module 'rlm_exec' Errors initializing modules I don't know what do !. Best regards. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/CDRTool-without-Freeradius-and-RTPproxy-tp4936891p4951000.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] CDRTool without Freeradius and RTPproxy ?
Yes I have installed two version but I don't know how resolve this problem !! ?? -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/CDRTool-without-Freeradius-and-RTPproxy-tp4936891p4951130.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] CDRTool Installation Guide
Hi everybody, I'm traying to install CDRTool since 3 days but no success, if any one can help me ?. I installed Opensips 1.6 and loaded aaa_radius.so module, I follow thi installation guide but I don't find /etc/opensips/radius/client.conf it doesn't exists !!???, I found many problems to follow the installation guide because it is not for opensips 1.6. can someone write me the steps?, I know it's easy for someone but it is three days that I stuck on that!! Best regards. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/CDRTool-Installation-Guide-tp4949320p4961458.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] CDRTool Installation Guide
You don't help with your reply ! 2010/4/26 Adrian Georgescu [via OpenSIPS (Open SIP Server)] < ml-node+4961513-394704167-513...@n2.nabble.com > > > On Apr 26, 2010, at 10:07 AM, samoh wrote: > > > > > Hi everybody, > > > > I'm traying to install CDRTool since 3 days but no success, if any > > one can > > help me ?. > > I installed Opensips 1.6 and loaded aaa_radius.so module, I follow thi > > installation guide but I don't find /etc/opensips/radius/client.conf > > it > > doesn't exists !!???, > > > > I found many problems to follow the installation guide because it is > > not for > > opensips 1.6. > > You must consult the manual and support forum for the versions of the > components you are using, which is not a CDRTool installation issue. > > > can someone write me the steps?, I know it's easy for someone but it > > is > > three days that I stuck on that!! > > Read OpenSIPS and FreeRadius guides for your radius setup problem and > not the CDRTool guide. > > Adrian > > > > > ___ > Users mailing list > [hidden email] <http://user/SendEmail.jtp?type=node&node=4961513&i=0> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > -- > View message @ > http://opensips-open-sip-server.1449251.n2.nabble.com/CDRTool-Installation-Guide-tp4949320p4961513.html > To unsubscribe from Re: CDRTool Installation Guide, click > here<http://opensips-open-sip-server.1449251.n2.nabble.com/subscriptions/Unsubscribe.jtp?code=ZGFobWFuaS5zYW15QGdtYWlsLmNvbXw0OTYxNDU4fDIyODk1MzQ5Nw==>. > > > -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/CDRTool-Installation-Guide-tp4949320p4961533.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] /etc/opensips/radius/client.conf don't exist !!
Hi everybody, I tray to install Cdrtool, I installed freeradius, it works, I installed cdrtool and I have Rating engine running at 192.168.0.190:9024 but the files of configuration of radius client and mediaproxy don't set correctely because I have this message Error: mediaproxy certificate file /etc/cdrtool/mediaproxy.10.0.0.1.pem does not exist I don't change my opensips.cfg because I have an error ---> /etc/opensips/radius/client.conf don't exist !! enyone can help me ?!! Thanks. Best regards. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/etc-opensips-radius-client-conf-don-t-exist-tp4962290p4962290.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Are there in OpenSIPS modules like AGI on asterisk ?
Hi everybody, I'm working on a project OpenSIPS which involves replacing the existing Asterisk servers on the enterprise to OpenSIPS but I am confronting a problem, I will absolutely not change the basic patterns of current data, yet I managed to make a script that periodically retrieves the data needed for authentication and saves them in the subscriber table, I'd like to know is there a way to get scripts like that for AGI with asterisk which allows me to use the same scripts already present on asterisk or modified. Best regards. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Are-there-in-OpenSIPS-modules-like-AGI-on-asterisk-tp4967382p4967382.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Are there in OpenSIPS modules like AGI on asterisk ?
Hi Bogdan, I really want to have a possibility to run a script on OpenSIPS or external of OpenSIPS, I want to run a script in python or other language as a way to query my database to configure the call by calling (that is just an example) not to be dependent on any module. I am doing my internship in a company that has its own script about asterisk and architecture of the database and my target is to developpe an IP Centrex with Opensips in order to don't touch to the present architecture (Database) and my solution must be independent of mudules so that allows any other developpement on this IP Centrex. I really don't know how to do, it's some days I'm looking but no idea yet. is there a function which allows to end a call after N minut ? Thanks. Best regards. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Are-there-in-OpenSIPS-modules-like-AGI-on-asterisk-tp4967382p4974578.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Autehntification from DB with AVPOPS module ?
Hi everybody, Can I do the autehntification from DB with AVPOPS and UAC modules ? I want to do the authentification from DB (no opensips DB) but I don't know how to proceed. I don't know if my start's code is right ? (befor, I'd like to test on opesips DB): modparam("avpops","db_url","mysql://opensips:opensip...@localhost/opensips") modparam("avpops","avp_table","subscriber") modparam("uac", "auth_username_avp", "$avp(i:1)") modparam("uac", "auth_password_avp", "$avp(i:2)") modparam("uac", "auth_realm_avp", "$avp(i:3)") avp_db_query("SELECT username, password, realm FROM subscriber WHERE where username='$tu'", "$avp(i:1);$avp(i:2);$avp(i:3)"); can anyone help me please ?. Thanks. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Autehntification-from-DB-with-AVPOPS-module-tp4979020p4979020.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Autehntification from DB with AVPOPS module ?
Hi Bogdan, Thank you for your response. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Autehntification-from-DB-with-AVPOPS-module-tp4979020p4984297.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Autehntification from DB with AVPOPS module ?
Hi Bogdan, I did the authentification with AVPOPS module, that's OK but when I restart opensips, I can't call and when I do opensips ul show i find no subscriber ??. Best regards. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Autehntification-from-DB-with-AVPOPS-module-tp4979020p4984541.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Autehntification from DB with AVPOPS module ?
I finally found when was problem, I didn't have location table in my database, so now I use the location table of opensips DB and it works;). Best regards. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Autehntification-from-DB-with-AVPOPS-module-tp4979020p4984693.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] ERROR:perl:parser_init: failed to load perl file
Hi everybody, I try to use the perl module to execute a script perl, I have compiled opensips with this module and I put the path of my script in modparam("perl", "filename", "/home/opensips/etc/opensips/script.pl") but it doesn't work :(. I have these message in log file : Apr 30 14:26:11 samy-desktop /home/opensips/sbin/opensips[21501]: INFO:perl:mod_init: initializing... Apr 30 14:26:11 samy-desktop /home/opensips/sbin/opensips[21501]: INFO:perl:parser_init: setting lib path: '/path/to/perllib' Apr 30 14:26:11 samy-desktop /home/opensips/sbin/opensips[21501]: ERROR:perl:parser_init: failed to load perl file "/home/opensips/etc/opensips/script.pl". Apr 30 14:26:11 samy-desktop /home/opensips/sbin/opensips[21501]: ERROR:core:init_mod: failed to initialize module perl Apr 30 14:26:11 samy-desktop /home/opensips/sbin/opensips[21501]: ERROR:core:main: error while initializing modules Apr 30 14:29:01 samy-desktop opensips: INFO:core:init_tcp: using epoll_lt as the TCP io watch method (auto detected) Apr 30 14:29:01 samy-desktop opensips: ERROR:core:daemonize: unable to create pid file /var/run/opensips/opensips.pid: No such file or directory Someone can help me ? Thanks. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/ERROR-perl-parser-init-failed-to-load-perl-file-tp4985385p4985385.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] ERROR:perl:parser_init: failed to load perl file
No one can help me :( -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/ERROR-perl-parser-init-failed-to-load-perl-file-tp4985385p4992567.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] ERROR:perl:parser_init: failed to load perl file
Hi Laszlo and Vadim, Thank you for your interest in my question. Of course, I had searched before posting the question, but I found nothing, just a similar case in the forum, but Bogdan had responded to compil OpenSIPS with perl module, thing that's already done. I would like to noticed that I made a chmod 777 to my script file. Best regards. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/ERROR-perl-parser-init-failed-to-load-perl-file-tp4985385p4993818.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] ERROR:perl:parser_init: failed to load perl file
Hi Andreas, Yes, the path is right. Best regards. Sam; -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/ERROR-perl-parser-init-failed-to-load-perl-file-tp4985385p4994303.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Are there in OpenSIPS modules like AGI on asterisk ?
Hi Bogdan, Thank you very much for your responses. I will tray to use exec module ;). Best regards. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Are-there-in-OpenSIPS-modules-like-AGI-on-asterisk-tp4967382p4996844.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] ERROR:perl:parser_init: failed to load perl file
Hi Vadim, there is a result of strace command : r...@samy-desktop:~# strace file "/home/opensips/etc/opensips/script.pl" execve("/usr/bin/file", ["file", "/home/opensips/etc/opensips/scri"...], [/* 21 vars */]) = 0 brk(0) = 0x87ca000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7888000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=55457, ...}) = 0 mmap2(NULL, 55457, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb787a000 close(3)= 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/usr/lib/libmagic.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P!\0\0004\0\0\0H"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=87680, ...}) = 0 mmap2(NULL, 90812, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7863000 mmap2(0xb7878000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14) = 0xb7878000 close(3)= 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libz.so.1", O_RDONLY)= 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\31\0\0004\0\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=83552, ...}) = 0 mmap2(NULL, 86284, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb784d000 mmap2(0xb7861000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13) = 0xb7861000 close(3)= 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320h\1\0004\0\0\0\344"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1442180, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb784c000 mmap2(NULL, 1451632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb76e9000 mprotect(0xb7845000, 4096, PROT_NONE) = 0 mmap2(0xb7846000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15c) = 0xb7846000 mmap2(0xb7849000, 9840, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7849000 close(3)= 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb76e8000 set_thread_area({entry_number:-1 -> 6, base_addr:0xb76e86c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 open("/dev/urandom", O_RDONLY) = 3 read(3, "\272\327\325"..., 3) = 3 close(3)= 0 mprotect(0xb7846000, 8192, PROT_READ) = 0 mprotect(0xb7861000, 4096, PROT_READ) = 0 mprotect(0xb7878000, 4096, PROT_READ) = 0 mprotect(0x804b000, 4096, PROT_READ)= 0 mprotect(0xb78a7000, 4096, PROT_READ) = 0 munmap(0xb787a000, 55457) = 0 brk(0) = 0x87ca000 brk(0x87eb000) = 0x87eb000 open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) open("/usr/share/locale/locale.alias", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=2570, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7887000 read(3, "# Locale name alias data base.\n# "..., 4096) = 2570 read(3, ""..., 4096)= 0 close(3)= 0 munmap(0xb7887000, 4096)= 0 open("/usr/lib/locale/fr_FR.UTF-8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/fr_FR.utf8/LC_CTYPE", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=256316, ...}) = 0 mmap2(NULL, 256316, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb76a9000 close(3)= 0 open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=26048, ...}) = 0 mmap2(NULL, 26048, PROT_READ, MAP_SHARED, 3, 0) = 0xb7881000 close(3)= 0 stat64("/root/.magic", 0xbfae9c34) = -1 ENOENT (No such file or directory) open("/etc/magic.mgc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) stat64("/etc/magic", {st_mode=S_IFREG|0644, st_size=111, ...}) = 0 open("/etc/magic", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=111, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb788 read(3, "# Magic local data for file(1) co"..., 4096) = 111 read(3, ""..., 4096)= 0 close(3)= 0 munmap(0xb788, 4096)= 0 open("/usr/share/file/magic.mgc", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0
Re: [OpenSIPS-Users] ERROR:perl:parser_init: failed to load perl file
I finally found where was the error. the header of my perl file (#/usr/bin/perl) was incorrect, so, to resolve the probleme I added the line modparam("perl", "modpath", "/home/opensips/lib/opensips/perl") Thanks for all. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/ERROR-perl-parser-init-failed-to-load-perl-file-tp4985385p4997647.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Sipp to test OPENSIPS
Hi everybody, I try to generate SIP traffic to test the power of OpenSIPS but I don't know how to do a simple test. I did : /sipp -sn uas and ./sipp -sn uac 192.168.0.190 (ip of my opensips) but all calls are failed. I have not understood yet how to do the test yet. Can someone help me? Thanks Samy. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Sipp-to-test-OPENSIPS-tp5013501p5013501.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Sipp to test OPENSIPS
Hi Andrey, I use my opensips without authentification, I used ngrep and I noticed that it try to join serv...@192.168.0.190 but the opensips answer don't found it, I don't know if I must start another sipp process which will be the serv...@192.168.0.190 ??! Thanks. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Sipp-to-test-OPENSIPS-tp5013501p5014016.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Python module on OpenSIPS ?
Hi everybody, I read on the site (http://www.opensips.org/index.php?n=Resources.DocsModules), there is python module but this path http://www.opensips.org/html/docs/modules/devel/python.html don't exit ?! I want to use the python script to manage my opensips 1.6. is there a solution for that ? Best regards. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Python-module-on-OpenSIPS-tp5018382p5018382.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Python module on OpenSIPS ?
Thank you for your response. 2010/5/7 Bogdan-Andrei Iancu [via OpenSIPS (Open SIP Server)] < ml-node+5019983-349032558-513...@n2.nabble.com > > Hi Sam, > > Unfortunately the developer of this module haven't uploaded a > documentation file for it - I asked him several time to do it, but I > cannot do more... > > At least the module will stay in the trunk (will not be pushed to > stable) until it gets proper docs. > > Regards, > Bogdan > > samoh wrote: > > > Hi everybody, > > > > I read on the site > > (http://www.opensips.org/index.php?n=Resources.DocsModules), there is > python > > module but this path > > http://www.opensips.org/html/docs/modules/devel/python.html don't exit > ?! > > > > I want to use the python script to manage my opensips 1.6. is there a > > solution for that ? > > > > Best regards. > > Sam. > > > > > -- > Bogdan-Andrei Iancu > www.voice-system.ro > > > ___ > Users mailing list > [hidden email] <http://user/SendEmail.jtp?type=node&node=5019983&i=0> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > -- > View message @ > http://opensips-open-sip-server.1449251.n2.nabble.com/Python-module-on-OpenSIPS-tp5018382p5019983.html > To unsubscribe from Python module on OpenSIPS ?, click > here<http://opensips-open-sip-server.1449251.n2.nabble.com/subscriptions/Unsubscribe.jtp?code=ZGFobWFuaS5zYW15QGdtYWlsLmNvbXw1MDE4MzgyfDIyODk1MzQ5Nw==>. > > > -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Python-module-on-OpenSIPS-tp5018382p5020097.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Python module on OpenSIPS ?
Hi Bogdan, Thank you for your response. Best regards. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Python-module-on-OpenSIPS-tp5018382p5020105.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Sipp to test OPENSIPS
Hi everyone, I have not yet succeeded to work sipp on my server :[. someone can help me to do it ? Thanks. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Sipp-to-test-OPENSIPS-tp5013501p5024498.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Sipp to test OPENSIPS
Bogdan-Andrei Iancu wrote: > > What exactly is not working ? > > Regards, > Bogdan > > samoh wrote: >> Hi everyone, >> >> I have not yet succeeded to work sipp on my server :[. someone can help >> me >> to do it ? >> >> Thanks. >> Sam. >> > > > -- > Bogdan-Andrei Iancu > www.voice-system.ro > > > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > Quoted from: http://opensips-open-sip-server.1449251.n2.nabble.com/Sipp-to-test-OPENSIPS-tp5013501p5030344.html Hi Bogdan, I hope that you help me to resolve my problem because that makes some days I'm stuck on it. I take this opportunity to ask you how to use db_http because on the page devoted to this module I see no function with what we call the server http, I see only modparam for configuring the module?. this is what I did but all calls are failed: client agent --> opensips <--- seveur agent ip; 192.168.0.134ip: 192.168.0.190 ip: 192.168.0.157 on opensips : openserctl ul add 1003 sip:1...@192.168.0.157:5060 on server agent : ./sipp –sn uas -i 192.168.0.157 on client agent : ./sipp -sn uac 192.168.0.190:5060 -s 1003 -ap 1000 -i 192.168.0.134 -p 5060 -d 1000 when I use ngrep I have this (just the INVITEs) : U 192.168.0.134:5060 -> 192.168.0.190:5060 INVITE sip:1...@192.168.0.190:5060 SIP/2.0. Via: SIP/2.0/UDP 192.168.0.134:5060;branch=z9hG4bK-5552-30-0. From: sipp ;tag=5552SIPpTag0030. To: sut . Call-ID: 30-5...@192.168.0.134. CSeq: 1 INVITE. Contact: sip:s...@192.168.0.134:5062. Max-Forwards: 70. Subject: Performance Test. Content-Type: application/sdp. Content-Length: 137. comparing a INVITES which normally has a Linksys phone: U 192.168.0.47:5060 -> 192.168.0.190:5060 INVITE sip:1...@192.168.0.190 SIP/2.0. Via: SIP/2.0/UDP 192.168.0.47:5060;branch=z9hG4bK-8624ca72. From: "50" ;tag=971f1cc25b9a5949o0. To: . Call-ID: d03488f6-107eb...@192.168.0.47. CSeq: 101 INVITE. Max-Forwards: 70. Contact: "50" . Expires: 240. User-Agent: Sipura/SPA841-3.1.4(a). Content-Length: 393. Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER. Content-Type: application/sdp. I noticed that the From's field is wrong in my test but I don't know how change it ?!. Best regards. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Sipp-to-test-OPENSIPS-tp5013501p5030610.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] db_http module
Hi everyone, I want to use the db_http module with an http server but I don't know how I must proceed, the documentation of this module isn't well explained. What are functions of this module ?? Someone can help me to inderstand how can I work it ? an example please. Thanks. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/db-http-module-tp5032881p5032881.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] shared memory on opensips
Hi everyone, When the opensips is restarted during call the call doesn't break and when the opensips restart it is able to retrieve the transactions which are in progress. so where Opensips store this information ? Best regards. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/shared-memory-on-opensips-tp5036633p5036633.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] shared memory on opensips
normally if it was in a shared memory, so when the opensips process is stopped, the memory must be destroyed ??! someone can explain me plz??. Best regards. Samy. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/shared-memory-on-opensips-tp5036633p5036856.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Python module on OpenSIPS ?
Hi Maxim, I'm very interested by this module, it would be really nice if you upload the documentation of the python module. Best regards. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Python-module-on-OpenSIPS-tp5018382p5036949.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] db_http module
no one can help me to use this module ?? Best regards. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/db-http-module-tp5032881p5039851.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] how to use DB_HTTP modue ?
Hi everyone, I already posted a message about of how to use db but I did not have concrete answers, all those who responded to me told me to see the documentation of this module but after reading the documentation several time I can't manage to understand how it works, if someone already used the module db_http it would very nice of him to show me how he did. In my opensips.cfg I did this : modparam("avpops","db_url","http://localhost/db_http";) modparam("avpops","avp_table","script.php") I make a query to the http server : avp_db_query("1"); __ if I change "1" by a string I will have it on ::1 - - [17/May/2010:12:31:21 +0200] "GET /db_http/script.php/?q="string" __ in the log of apache i have this : ::1 - - [17/May/2010:12:31:21 +0200] "GET /db_http/script.php/?q=1&query_type=custom HTTP/1.1" 200 362 "-" "-" 127.0.0.1 - - [17/May/2010:12:31:21 +0200] "POST / HTTP/1.1" 200 45 "-" "-" My script.php which is in db_http directory on the http server get the variable by the url with $_GET['q'] but I don't know how change the name of variable "q" AND how send a lot of variable on the http request ??? I would like to send the avp variable to the http sever, after analyzing it by my script I wont to retrieve result on my opensips.cfg. Someone can help me ?? Best regards. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/how-to-use-DB-HTTP-modue-tp5064518p5064518.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] how to use DB_HTTP module ?
Hi everyone, I already posted a message about of how to use db but I did not have concrete answers, all those who responded to me told me to see the documentation of this module but after reading the documentation several time I can't manage to understand how it works, if someone already used the module db_http it would very nice of him to show me how he did. In my opensips.cfg I did this : modparam("avpops","db_url","http://localhost/db_http";) modparam("avpops","avp_table","script.php") I make a query to the http server : avp_db_query("1"); __ if I change "1" by a string I will have it on ::1 - - [17/May/2010:12:31:21 +0200] "GET /db_http/script.php/?q="string" __ in the log of apache i have this : ::1 - - [17/May/2010:12:31:21 +0200] "GET /db_http/script.php/?q=1&query_type=custom HTTP/1.1" 200 362 "-" "-" 127.0.0.1 - - [17/May/2010:12:31:21 +0200] "POST / HTTP/1.1" 200 45 "-" "-" My script.php which is in db_http directory on the http server get the variable by the url with $_GET['q'] but I don't know how change the name of variable "q" AND how send a lot of variable on the http request ??? I would like to send the avp variable to the http sever, after analyzing it by my script I wont to retrieve result on my opensips.cfg. Someone can help me ?? Best regards. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/how-to-use-DB-HTTP-module-tp5064520p5064520.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] how to use DB_HTTP module ?
Hi Andrei, Thank you for your fast reply. now I understand better. In the documentation of this module, I see : k= Describes the keys (columns) that will be used for comparison.Can have multiple values. op= Describes the operators that will be used for comparison.Can have multiple values. v= Describes the values that columns will be compaired against. Can have multiple values. How can I use this variables ?. Best regards. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/how-to-use-DB-HTTP-module-tp5064520p5064772.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] how to use DB_HTTP module ?
Hi, I understand that this module isn't intended to be used to share variables with PHP? I want to use this module to use a php script to process each call If I do this: avp_db_query("select something from table", $avp(i:986)); can I retrieve the results on my $avp(i:986) ? What I must have In my script.php to treat this request and make the exchange ? -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/how-to-use-DB-HTTP-module-tp5064520p5065134.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] how to use DB_HTTP module ?
Hi Andrei, My script.php returs string by echo string; (php function), so I want to be able to retrieve this string in avp variable with avp_db_query("somthing", $avp(s:86)); but after doing call my $avp(s:86) has NULL value ?!. I saw in the documentation this example : Example 1.14. Example Reply. ... int;string;blob 6;something=something;1000 100;mine;10002030 ... where can I find the result of my request ?. Thank you in advance. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/how-to-use-DB-HTTP-module-tp5064520p5069860.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] how to use DB_HTTP module ?
in the my opensips.log I have this : May 18 16:46:24 samy-desktop /home/opensips/sbin/opensips[18200]: ACC: transaction answered: timestamp=1274193984;method=INVITE;from_tag=4126SIPpTag00103;to_tag=;call_id=103-4...@127.0.1.1;code=200;reason=OK May 18 16:46:24 samy-desktop /home/opensips/sbin/opensips[18199]: ERROR:db_http:put_type_in_result: Unknown datatype May 18 16:46:24 samy-desktop /home/opensips/sbin/opensips[18200]: ERROR:db_http:put_type_in_result: Unknown datatype May 18 16:46:24 samy-desktop /home/opensips/sbin/opensips[18201]: ERROR:db_http:put_type_in_result: Unknown datatype Best regards. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/how-to-use-DB-HTTP-module-tp5064520p5070345.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] how to use DB_HTTP module ?
Hi Andrei, Finaly I must return two lines in my script.php like this : Printf("string \n"); Printf("value_of_my_avp \n"); after checking the value of my avp it's right ;). Thanks. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/how-to-use-DB-HTTP-module-tp5064520p5078632.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Codec translation
Hi everyone, How can I do the translation of audio codec betwen the users ? Example: User1 <-> OPENSIPS <-> User2 G711 G711 <-> G729 G729 Best regards. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Codec-translation-tp5078975p5078975.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Codec translation
Hi everyone, How can I do the translation of audio codec betwen the users ? Example: User1 <> OPENSIPS <---> User2 G711 G711 <-> G729 G729 Best regards. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Codec-translation-tp5078977p5078977.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] rtpproxy-transcoder
Hi all, Can someone explain me how can I use rtpproxy-transcoder ? please. It is a patch of rtpproxy wich allows to do the codec translation. Thanks. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/rtpproxy-transcoder-tp5079760p5079760.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Codec translation
Hi Richard, Thank you for your reply. that is just an example to explain my question. Best regards. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Codec-translation-tp5078977p5081120.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Use socket on C to manage OPENSIPS
Hi everyone, I try to do a programm with C language which replaces my apache (by using the Socket) when I use the db_http for tailoring treatment of each call, so I wonder if is there a way to do socket on C language to manage OPENSIPS from opensips.cfg ?. Best regards. Sam. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Use-socket-on-C-to-manage-OPENSIPS-tp5120877p5120877.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Use socket on C to manage OPENSIPS
Hi, I see that no one can help me ?! -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Use-socket-on-C-to-manage-OPENSIPS-tp5120877p5125408.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Use socket on C to manage OPENSIPS
Hi Anka, I want to manage my OpenSIPS using sockets in C, I want to have a client script which I will call on opensips.cfg + a programm serveur.c in what I'm doing a specific treatment on data from the client script and to return a result to be handling the file opensips.cfg. I made a script that is the same of this solution but I use db_http as a module to communicate with programm programmed in C (socket) using http request, but I try to do differently to make it faster. I hope my question is clear. Best regards. Samy. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Use-socket-on-C-to-manage-OPENSIPS-tp5120877p5138596.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users