Re: [SR-Users] Error reading AVP
Hello, On 9/8/11 6:30 PM, Carlos Ruiz Diaz wrote: Hello. I'm currently developing an OpenSER module which does some business logic for the company I work for. For compatibility reasons we are working with openser-1.2.2-tls and we haven't been able to upgrade to newer version yet. In one block of the code I have to read an avp which is written inside the openser.cfg script using: OPENSER: avp_copy(sip:123@123.123.123:5060, $avp(s:selectedroute)/g); C CODE: if (is_response is_invite_seq) { struct usr_avp* destavp = NULL; int_str destval; const str selected_route = { selectedroute, 13 }; int attempts = 1, max_attempts = 3; for ( destavp = search_first_avp(AVP_NAME_STR | AVP_VAL_STR, (int_str) selected_route, NULL, 0); destavp != NULL; destavp = search_next_avp(destavp, NULL) ) { get_avp_val(destavp, destval); } } The problem is that selectedroute avp cannot be found so I can't read its value. This happens sporadically and most of the time the code works just fine. I also checked for the list of available AVPs using get_avp_list() but it reports an empty list. Is there another way to read AVPs or is there something I'm missing which is causing this problem? If the avp list is null inside C code, then the avp was not added. Do you see any error message in syslog related to avp_copy()? After avp copy, do a xlog(..) line printing the avp, if it is printed in syslog and you don't get it in C, then would be very strange... Cheers, Daniel Any help will be appreciated. Thanks in advance! Carlos. ___ 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 Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/kat 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
Re: [SR-Users] CANCEL is not processed in onsend_route
Hello, On 9/8/11 7:51 PM, Timo Klecker wrote: Hi, so there is no possibility to log the outgoing CANCEL? I will look in the sources, might be that the flag is lost since a new cancel request is built for each branch, or the tm callbacks for outbound requests are not called for cancels. Anyway, it will get fixed somehow. Cheers, Daniel Greetings Timo -Ursprüngliche Nachricht- Von: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] Im Auftrag von Klaus Darilion Gesendet: Dienstag, 6. September 2011 11:20 An: sr-users@lists.sip-router.org Betreff: Re: [SR-Users] CANCEL is not processed in onsend_route I have no idea how siptrace works, but: When using tm module, the CANCEL is not forwarded but absorbed by tm module, and then tm module creates a new CANCEL based on the previous sent INVITE. That may be the reason why on_send route is not activated. klaus Am 06.09.2011 10:24, schrieb Timo Klecker: Hello all, I want to log the incoming and outgoing CANCEL on my Kamailio. I tried with a call of sip_trace in the default route setflag(22); if (method == “CANCEL”) { sip_trace(); if (t_check_trans()) { t_relay(); exit; } } This works great, I get the incoming CANCEL in the Database. But the outgoing CANCEL is not logged with flag set. So I tried to use onsend_route with the following lines: onsend_route { xlog(“L_NOTICE”, “ SENDING from $si \n $mb \n “); if ( method == “CANCEL” ) sip_trace(); } I am using Kamailio Version 3.1.0 (with Patch for Siptrace in onsend_route by Daniel ). But the CANCEL is not processed in the onsend_route at all. I do not even see the xlog-line. But tcpdump gives me the CANCEL outgoing. Following callflow: INVITE 100 INVITE 100 180 180 CANCEL *CANCEL* I am missing the last CANCEL. Why is the CANCEL not logged with flag 22 set? Why is the CANCEL not processed in the onsend_route? Greetings Timo ___ 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 ___ 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 Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/kat 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
Re: [SR-Users] Error reading AVP
Thank you Daniel. I'll try that. Regards Carlos. On Fri, Sep 9, 2011 at 8:42 AM, Daniel-Constantin Mierla mico...@gmail.comwrote: Hello, On 9/8/11 6:30 PM, Carlos Ruiz Diaz wrote: Hello. I'm currently developing an OpenSER module which does some business logic for the company I work for. For compatibility reasons we are working with openser-1.2.2-tls and we haven't been able to upgrade to newer version yet. In one block of the code I have to read an avp which is written inside the openser.cfg script using: OPENSER: avp_copy(sip:123@123.123.123:5060, $avp(s:selectedroute)/g); C CODE: if (is_response is_invite_seq) { struct usr_avp* destavp = NULL; int_str destval; const str selected_route = { selectedroute, 13 }; int attempts = 1, max_attempts = 3; for ( destavp = search_first_avp(AVP_NAME_STR | AVP_VAL_STR, (int_str) selected_route, NULL, 0); destavp != NULL; destavp = search_next_avp(destavp, NULL) ) { get_avp_val(destavp, destval); } } The problem is that selectedroute avp cannot be found so I can't read its value. This happens sporadically and most of the time the code works just fine. I also checked for the list of available AVPs using get_avp_list() but it reports an empty list. Is there another way to read AVPs or is there something I'm missing which is causing this problem? If the avp list is null inside C code, then the avp was not added. Do you see any error message in syslog related to avp_copy()? After avp copy, do a xlog(..) line printing the avp, if it is printed in syslog and you don't get it in C, then would be very strange... Cheers, Daniel Any help will be appreciated. Thanks in advance! Carlos. ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla -- http://www.asipto.com Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/kathttp://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
Re: [SR-Users] planning v3.1.5
There is a bug in UAC module. uac_req_send doesn't restore avps. I tried to backport your patch to 3.1 but with no success. Could you add this patch to a new stable release ? ___ 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] Siremis site access from Romania
Hi, I just wanted to check the software to see how it is. I heard about it some times ago, but never i was able to see how it looks and how it works. Thanks, Dani Popa On 09/08/11 17:19, Daniel-Constantin Mierla wrote: Hello, many network/provider addresses are firewalled based on how many times and often the login pages are accessed - blocking ip by ip proved to be quite inefficient... If you need to download it, then just fetch it from sourceforge: * http://sourceforge.net/projects/siremis/ Version 1.0 is on SVN and 2.0 is on GIT. For the wikis (docs) we are looking to mirror/move the content to sf as well, but will take a bit. Cheers, Daniel On 9/8/11 1:49 PM, Dani Popa wrote: Hi, well, i tried from more then 3 differnt locations (differnt providers ) and i'm not able to access it. Also from us, i was able to access it. also, i'm able to ping the site and i receive icmp response from it. Thanks, Dani On Thu, Sep 8, 2011 at 2:24 PM, Alex Balashov abalas...@evaristesys.com mailto:abalas...@evaristesys.com wrote: On 09/08/2011 07:22 AM, Dani Popa wrote: Hi, There is any reasons why any linked Siremis site is not accessible from Romania ? i tried to access http://siremis.asipto.com/ and other sites and they are not accesible. How have you made the conclusion that the Siremis site - and other sites (which other sites, exactly?) - are not accessible from Romania as a whole? -- Alex Balashov - Principal Evariste Systems LLC 260 Peachtree Street NW Suite 2200 Atlanta, GA 30303 Tel: +1-678-954-0670 tel:%2B1-678-954-0670 Fax: +1-404-961-1892 tel:%2B1-404-961-1892 Web: http://www.evaristesys.com/ ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org mailto:sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Dani Popa ___ 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 Kamailio Advanced Training, Oct 10-13, Berlin:http://asipto.com/u/kat 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