Re: [SR-Users] How to i use record_route_advertised_address
Hi, I've implemented the config file function for record_route_advertised_address and it should appear in git head later today. Just doing the documentation and some testing... Hugh On 05/12/2011 21:52, Daniel-Constantin Mierla wrote: Hello, maybe the option for now is to set the parameters for record_route_preset() to advertised_address/port: http://kamailio.org/docs/modules/stable/modules_k/rr.html#id2542169 I have some deployments (like on EC2) where I use advertise_address for have the proper Via and record_route_preset() for record route headers. For simplicity, it would be good to have the function in config to take advertised address value for building the rr header. Cheers, Daniel On 12/3/11 9:41 PM, Hugh Waite wrote: Hi, I do not think that record_route() uses the advertised_address variables. We have been using the advertised_address / advertised_port variables in the config file and although they are used in the Via headers, they are not substituted into the Record Route lines. record_route_advertised_address() was added about 2 weeks ago for exactly this reason - using an advertised address in record routes when the transport changes. It automatically inserts double (rr2=on) routes in these cases and extra custom parameters can be added later. However, we only needed the C API, so it isn't exported as a config file function yet. This won't be difficult. Regards, Hugh On 03/12/11 15:57, Ovidiu Sas wrote: Take a look at set_advertised_address: http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.1.x#set_advertised_address Set it and then record_route() will properly fill the Record-Route header. Regards, Ovidiu Sas ___ 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 -- -- Hugh Waite Senior Design Engineer Crocodile RCS Ltd. ___ 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] How to test registration setting
Hi, On 12/07/2011 09:45 AM, Efelin Novak wrote: So is there any other common practice how to test registers? Is there any flag that can prevent storing location? Can I send 200 OK to these user in any other way? You can do sl_send_reply(200, Auth test ok) after www_authenticate(...) succeeds. Andreas signature.asc Description: OpenPGP digital signature ___ 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] set host as inactive and probing in dispatcher
hi, i use ds_select_domain() to route a call. if the destination reply with an error i am using the next lines in a route that i called from the failure route: if($avp(OSPRPL)!=404) { ds_mark_dst(IP); } after trying this line i do kamctl fifo ds_list and i see the host is still at AX. and in the next call the dispatcher still tries the same destination. why? how do i set a destinatio in dispatcher to be inactive? this is my modparams: #!ifdef WITH_DISPATCHER #-- dispatcher params - modparam(dispatcher, db_url, DBURL) modparam(dispatcher, dst_avp, $avp(dsdst)) modparam(dispatcher, cnt_avp, $avp(dscnt)) modparam(dispatcher, grp_avp, $avp(dsgrp)) modparam(dispatcher, attrs_avp, $avp(dsattrs)) modparam(dispatcher, ds_ping_from, sip:u...@host.com) modparam(dispatcher, ds_ping_reply_codes, class=2;code=405) modparam(dispatcher, ds_ping_interval, 30) modparam(dispatcher, ds_probing_mode, 1) modparam(dispatcher, ds_hash_size, 8) modparam(dispatcher, flags, 2) #!endif ___ 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] Problem to verify contact header
Hi All, Kamailio generate a core at line below if(_msg-contact!= NULL || _msg-contact-body.s!= NULL){ _msg is a sip_msg struct that my module receive from kamailio. I want verify if on that request messagem have a contact header, but a core is being generated when contact header isn't present on message. Someone knows why this is happening? Cheers ___ 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 to verify contact header
You would want to have: if(_msg-contact!= NULL _msg-contact-body.s!= NULL){ Regards, Ovidiu Sas -- VoIP Embedded, Inc. http://www.voipembedded.com On Wed, Dec 7, 2011 at 11:24 AM, Bruno Bresciani bruno.bresci...@gmail.com wrote: Hi All, Kamailio generate a core at line below if(_msg-contact!= NULL || _msg-contact-body.s!= NULL){ _msg is a sip_msg struct that my module receive from kamailio. I want verify if on that request messagem have a contact header, but a core is being generated when contact header isn't present on message. Someone knows why this is happening? Cheers ___ 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 to verify contact header
On 12/07/2011 06:24 PM, Bruno Bresciani wrote: Hi All, Kamailio generate a core at line below if(_msg-contact!= NULL || _msg-contact-body.s!= NULL){ _msg is a sip_msg struct that my module receive from kamailio. I want verify if on that request messagem have a contact header, but a core is being generated when contact header isn't present on message. Someone knows why this is happening? Cheers Hello, Looks like a bug. Can you also point to the source file where this line is present. It certainly looks like a typo. I've tried grepping over the latest 3.2 but to no avail. Cheers, Marius -- Zbihlei Marius Head of Linux Development Services Romania 11 Internet Development srlTel KA: 754-9512 Str Mircea Eliade 18Tel RO: +40-31-223-9512 Sect 1, Bucuresti mailto: marius.zbih...@1and1.ro 71295, Romania ___ 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 to verify contact header
this line is present in a module that i am writting, but on modules_k/pua_bla/notify.c line 205 has a similar condition... Cheers 2011/12/7 marius zbihlei marius.zbih...@1and1.ro On 12/07/2011 06:24 PM, Bruno Bresciani wrote: Hi All, Kamailio generate a core at line below if(_msg-contact!= NULL || _msg-contact-body.s!= NULL){ _msg is a sip_msg struct that my module receive from kamailio. I want verify if on that request messagem have a contact header, but a core is being generated when contact header isn't present on message. Someone knows why this is happening? Cheers Hello, Looks like a bug. Can you also point to the source file where this line is present. It certainly looks like a typo. I've tried grepping over the latest 3.2 but to no avail. Cheers, Marius -- Zbihlei Marius Head of Linux Development Services Romania 11 Internet Development srlTel KA: 754-9512 Str Mircea Eliade 18Tel RO: +40-31-223-9512 Sect 1, Bucuresti mailto: marius.zbih...@1and1.ro 71295, Romania __**_ 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-**usershttp://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] [OT] job offer - System administrator middleware acs
[OT] Job offer: Interested in working with one of the biggest Voice over IP networks in europe? We're hiring and have one additional IT operation position open in our team in Karlsruhe, Germany. You would be responsible in a team of motivated system administrators for the operation and maintenance of the high- available middleware cluster and CPE auto-configuration services for the DSL and mobile products at 11. Furthermore you would be support the on-call duty for this services in the team. A solid understanding of german is necessary for the job, for more informations (additional requirements, how to apply..) please refer to the opening on the job web page. Of course please feel free to contact me per mail as well. http://jobs.1und1.de/xml/JobsDetail?job_id=3777 Best regards, Henning -- Henning Westerholt - Head of IT Operations Internet Access Communications 11 Internet AG, Brauerstraße 48, 76135 Karlsruhe, Germany ___ 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] [Sems] [OT] sip:provider CE v2.4 released
Hello Stefan, On 12/07/2011 05:47 PM, Stefan Sayer wrote: thank you very much again for this great piece of work! I'm sure this is useful not only to newcomers, but both as a base to build on for the more experienced, and as reference on how to do things properly in many details - the way you set up everything shows a lot of best practices. Thanks for the kind words! P.S. fantastic, it even comes with the source :) It wasn't by intention to not provide the sems and kamailio source in the last release :) We've developed a complete build- and release-framework based on svn (yes, I know) and Jenkins CI with automatic building, testing and repository updates over the last months, so it won't happen again. We'll blog about the details on how this stuff works over the next weeks, could be interesting for others as well. Andreas signature.asc Description: OpenPGP digital signature ___ 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] [Sems] [OT] sip:provider CE v2.4 released
Hello, o Andreas Granig on 12/05/2011 05:24 PM: Ladies and Gentlemen, I'm happy to announce the official release of sip provider CE v2.4, an easy-to-use, free and open-source soft-switch built on top of Kamailio and Sems. As always, we provide a dead-simple installer to start from thank you very much again for this great piece of work! I'm sure this is useful not only to newcomers, but both as a base to build on for the more experienced, and as reference on how to do things properly in many details - the way you set up everything shows a lot of best practices. Best Regards Stefan P.S. fantastic, it even comes with the source :) we just need to activate the deb-src repository: # echo deb-src http://deb.sipwise.com/spce/2.4/ squeeze main \\ /etc/apt/sources.list # apt-get update # apt-get install dpkg-dev and then we can get the source e.g. for the ngcp-sems package with # apt-get source ngcp-sems ___ 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] Remote Party ID
Hello, On 12/7/11 10:03 AM, Pavel Segeč wrote: HI, Thank you. Just as I sent my previous mail I look into kamctl command syntax and I found -- command 'rpid' - manage Remote-Party-ID (RPID) rpid add username rpid . add rpid for a user (*) rpid rm username . set rpid to NULL for a user (*) rpid show username ... show rpid of a user How this work? this is for adding/removing/showing the rpid column in subscriber table -- if you look in database, there is a column named rpid for subscriber table. Practically, setting it and loading with load_credentials is a way to use it in the config file. In config then you can use append_hf() add header as you need, or if it is rpid specific format, see siputils module for other options: http://kamailio.org/docs/modules/stable/modules_k/siputils.html Cheers, Daniel pavel *From:*Daniel-Constantin Mierla [mailto:mico...@gmail.com] *Sent:* Tuesday, December 06, 2011 11:14 PM *To:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List *Cc:* Pavel Segeč *Subject:* Re: [SR-Users] Remote Party ID Hello, On 12/6/11 2:50 PM, Pavel Segeč wrote: Hi, I'm looking for some recommendations or guidlines. My leading IT department which is providing PSTN connectivity requires to include Remote Party ID in SIP Messages in a case where From URI is not in telco format (I prefer email like style of addressing). How to simply assign to an user its Remote Party ID which will be used when PSTN calling will occure? On what should I focus on? To use user preferences with AVP pairs? or something another? since it is about one attribute associated with the caller, a recommended way is to add a new column in subscriber table, say it is named 'rpid'. Then, in config file, set the load_credentials parameter of auth_db to load the rpid value and store in an avp. After you authenticate the caller, the avp will be set to the rpid value, see: http://kamailio.org/docs/modules/stable/modules_k/auth_db.html#id2528175 Using this option, practically you use same db query that loads the user password for authentication to fetch the rpid value. Cheers, Daniel -- Daniel-Constantin Mierla --http://www.asipto.com http://linkedin.com/in/miconda -- http://twitter.com/miconda -- Daniel-Constantin Mierla -- http://www.asipto.com http://linkedin.com/in/miconda -- http://twitter.com/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