[SR-Users] topoh, angle brackets and Contact URI params interpretation
I'm having an issue with topoh module in Kamailio 3.1.0. When Contact header is formed like this: Contact: 0991 sip:192.168.0.107;line=sr-N6IAzBysz.tyz.D4M.VLOBMfOBFuWxvfMxV4 The other party responds properly. But when there is no angle brackets in Contact: Contact: sip:192.168.0.107;line=sr-N6IAzB3AWxyfz.stM.quOBFZMJZfWxj7W.y-MljAWBy* Really, many parsers implement prefer shift to reduce principle, which means if something can be interpreted in more enclosed expression, it will be interpreted this way and no as part of less enclosed expression so ;line is interpreted as header parameter but not URI parameter. RFC 3261 section 20 suggests that any URI parameters be contained within angle brackets: === The Contact, From, and To header fields contain a URI. If the URI contains a comma, question mark or semicolon, the URI MUST be enclosed in angle brackets ( and ). Any URI parameters are contained within these brackets. If the URI is not enclosed in angle brackets, any semicolon-delimited parameters are header-parameters, not URI parameters. === I think the topoh module should force the angle brackets. BTW it seems that parameter needs to be urlencoded, see rule 'other-param' in RFC 3261 section 25.1: other-param = pname [ = pvalue ] pname = 1*paramchar pvalue= 1*paramchar paramchar = param-unreserved / unreserved / escaped param-unreserved = [ / ] / / / : / / + / $ No .-* characters are allowed in the paramchar. But at least that's not causing me any problems. -- Sincerely, Andrew Pogrebennyk ___ 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] authentication is not working
Hello my friends, I'm trying to configure authentication on my Kamailio and is not working at all :( I've added the following to the script to make it work: (but it doesn't) ... loadmodule auth.so loadmodule auth_db.so ... modparam(usrloc, db_url, mysql://kamailio:kamailiorw@localhost/kamailio) modparam(auth_db, calculate_ha1, yes) modparam(auth_db, password_column, password) modparam(auth_db, db_url, mysql://kamailio:kamailiorw@localhost/kamailio) modparam(auth_db, load_credentials, ) ... if (!(method==REGISTER) from_uri==myself) /*no multidomain version*/ { if (!proxy_authorize(, subscriber)) { proxy_challenge(, 0); exit; } if (!db_check_from()) { sl_send_reply(403,Forbidden auth ID); exit; } consume_credentials(); } ... if (is_method(REGISTER)) { # authenticate the REGISTER requests (uncomment to enable auth) if (!www_authorize(, subscriber)) { www_challenge(, 0); exit; } ## if (!db_check_to()) { sl_send_reply(403,Forbidden auth ID); exit; } if (!save(location)) sl_reply_error(); exit; } But is not working at all...take a look: # U 2011/02/03 09:31:04.402891 172.30.140.22:48752 - 172.30.140.8:5060 REGISTER sip:172.30.140.8 SIP/2.0 Via: SIP/2.0/UDP 172.30.140.22:48752 ;branch=z9hG4bK-d87543-9a54af22967ae417-1--d87543-;rport Max-Forwards: 70 Contact: sip:1000@172.30.140.22:48752;rinstance=fcade2df86ce0ab8 To: 1000sip:1000@172.30.140.8 sip%3A1000@172.30.140.8 From: 1000sip:1000@172.30.140.8 sip%3A1000@172.30.140.8;tag=cd3e2323 Call-ID: MmU0YjM1NThiNTg0ZjhiNGM4ODA4ZmU1YWFiYjBmNTc. CSeq: 1 REGISTER Expires: 3600 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO User-Agent: X-Lite release 1011s stamp 41150 Content-Length: 0 # U 2011/02/03 09:31:04.404039 172.30.140.8:5060 - 172.30.140.22:48752 SIP/2.0 200 OK Via: SIP/2.0/UDP 172.30.140.22:48752 ;branch=z9hG4bK-d87543-9a54af22967ae417-1--d87543-;rport=48752 To: 1000sip:1000@172.30.140.8 sip%3A1000@172.30.140.8 ;tag=c97b4d1cb1f3d0da549e06a8d482ef63.34dc From: 1000sip:1000@172.30.140.8 sip%3A1000@172.30.140.8;tag=cd3e2323 Call-ID: MmU0YjM1NThiNTg0ZjhiNGM4ODA4ZmU1YWFiYjBmNTc. CSeq: 1 REGISTER Contact: sip:1000@172.30.140.22:48752 ;rinstance=fcade2df86ce0ab8;expires=3600 Content-Length: 0 Am i missing something in my configuration? Thanks in advance!!! ___ 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] topoh, angle brackets and Contact URI params interpretation
On 03.02.2011 10:26, Andrew Pogrebennyk wrote: I think the topoh module should force the angle brackets. BTW it seems that parameter needs to be urlencoded, see rule 'other-param' in RFC 3261 section 25.1: From what I understand the valid form is: Contact: sip:192.168.0.107;line=sr-N6IAzB3AWxyfz.stM.quOBFZMJZfWxj7W.y-MljAWBy* or Contact: sip:192.168.0.107;line=sr-N6IAzB3AWxyfz.stM.quOBFZMJZfWxj7W.y-MljAWBy* so it should be enclosed by angle brackets or double quote, otherwise most implementations would treat ;line as header parameter and the parsing would fail since @ is not allowed as header parameter value if it's not enclosed by double quotes. -- Sincerely, Andrew Pogrebennyk ___ 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] authentication is not working
Restart Kamailio. Make sure that it is it really restarts: /etc/init.d/kamailio stop ps aux|grep kamailio # if there are some processes left, kill them killall kamailio ps aux|grep kamailio # if there are still some processes left, kill them harder! killall -9 kamailio /etc/init.d/kamailio start make sure Kamailio is really using your configuration file klaus Am 03.02.2011 11:12, schrieb Danny Dias: Hello my friends, I'm trying to configure authentication on my Kamailio and is not working at all :( I've added the following to the script to make it work: (but it doesn't) ... loadmodule auth.so loadmodule auth_db.so ... modparam(usrloc, db_url, mysql://kamailio:kamailiorw@localhost/kamailio) modparam(auth_db, calculate_ha1, yes) modparam(auth_db, password_column, password) modparam(auth_db, db_url, mysql://kamailio:kamailiorw@localhost/kamailio) modparam(auth_db, load_credentials, ) ... if (!(method==REGISTER) from_uri==myself) /*no multidomain version*/ { if (!proxy_authorize(, subscriber)) { proxy_challenge(, 0); exit; } if (!db_check_from()) { sl_send_reply(403,Forbidden auth ID); exit; } consume_credentials(); } ... if (is_method(REGISTER)) { # authenticate the REGISTER requests (uncomment to enable auth) if (!www_authorize(, subscriber)) { www_challenge(, 0); exit; } ## if (!db_check_to()) { sl_send_reply(403,Forbidden auth ID); exit; } if (!save(location)) sl_reply_error(); exit; } But is not working at all...take a look: # U 2011/02/03 09:31:04.402891 172.30.140.22:48752 - 172.30.140.8:5060 REGISTER sip:172.30.140.8 SIP/2.0 Via: SIP/2.0/UDP 172.30.140.22:48752 ;branch=z9hG4bK-d87543-9a54af22967ae417-1--d87543-;rport Max-Forwards: 70 Contact: sip:1000@172.30.140.22:48752;rinstance=fcade2df86ce0ab8 To: 1000sip:1000@172.30.140.8 sip%3A1000@172.30.140.8 From: 1000sip:1000@172.30.140.8 sip%3A1000@172.30.140.8;tag=cd3e2323 Call-ID: MmU0YjM1NThiNTg0ZjhiNGM4ODA4ZmU1YWFiYjBmNTc. CSeq: 1 REGISTER Expires: 3600 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO User-Agent: X-Lite release 1011s stamp 41150 Content-Length: 0 # U 2011/02/03 09:31:04.404039 172.30.140.8:5060 - 172.30.140.22:48752 SIP/2.0 200 OK Via: SIP/2.0/UDP 172.30.140.22:48752 ;branch=z9hG4bK-d87543-9a54af22967ae417-1--d87543-;rport=48752 To: 1000sip:1000@172.30.140.8 sip%3A1000@172.30.140.8 ;tag=c97b4d1cb1f3d0da549e06a8d482ef63.34dc From: 1000sip:1000@172.30.140.8 sip%3A1000@172.30.140.8;tag=cd3e2323 Call-ID: MmU0YjM1NThiNTg0ZjhiNGM4ODA4ZmU1YWFiYjBmNTc. CSeq: 1 REGISTER Contact: sip:1000@172.30.140.22:48752 ;rinstance=fcade2df86ce0ab8;expires=3600 Content-Length: 0 Am i missing something in my configuration? Thanks in advance!!! ___ 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
Re: [SR-Users] [sr-dev] topoh, angle brackets and Contact URI params interpretation
Hello, On 2/3/11 1:36 PM, Andrew Pogrebennyk wrote: On 03.02.2011 10:26, Andrew Pogrebennyk wrote: I think the topoh module should force the angle brackets. BTW it seems that parameter needs to be urlencoded, see rule 'other-param' in RFC 3261 section 25.1: From what I understand the valid form is: Contact: sip:192.168.0.107;line=sr-N6IAzB3AWxyfz.stM.quOBFZMJZfWxj7W.y-MljAWBy* or Contact: sip:192.168.0.107;line=sr-N6IAzB3AWxyfz.stM.quOBFZMJZfWxj7W.y-MljAWBy* so it should be enclosed by angle brackets or double quote, otherwise most implementations would treat ;line as header parameter and the parsing would fail since @ is not allowed as header parameter value if it's not enclosed by double quotes. I will check the sources and fix if the contact address is not between . However, I do not undeerstand where you got the @, is none there or am I missing something? Thanks, Daniel -- Daniel-Constantin Mierla http://www.asipto.com ___ 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] topoh, angle brackets and Contact URI params interpretation
On 03.02.2011 18:12, Daniel-Constantin Mierla wrote: I will check the sources and fix if the contact address is not between . However, I do not undeerstand where you got the @, is none there or am I missing something? Daniel, Sorry, I meant the * sign. Thanks for looking into it. -- Sincerely, Andrew Pogrebennyk ___ 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 with ser
Hello, i have insalled a ser server sucessfully. To try it, we was registered by a softphone, but when i am calling to the another registered user, he hang the phone but we cant ear anything. Can somebody help me? Thanks___ 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] dispatcher - ds_mark_dst(i); is inactive only few seconds
Hi Daniel, thanks for the hints, with debug_level they are some hints what happened. Normal Operation: 5(20410) DEBUG: dispatcher [dispatch.c:2305]: probing set #1, URI sip:10.12.19.31:5060 5(20410) DEBUG: dispatcher [dispatch.c:2305]: probing set #1, URI sip:10.12.19.21:5060 4(20409) DEBUG: dispatcher [dispatch.c:2250]: OPTIONS-Request was finished with code 200 (to sip:10.12.19.21:5060, group 1) 3(20407) DEBUG: dispatcher [dispatch.c:2250]: OPTIONS-Request was finished with code 200 (to sip:10.12.19.31:5060, group 1) Service is stopped at 10.12.19.21, the next INVITE with timeout will trigger ds_mark_dst(i); This event will enable the Gateway again: 5(20410) DEBUG: dispatcher [dispatch.c:2250]: OPTIONS-Request was finished with code 408 (to sip:10.12.19.21:5060, group 1) But the funny part is that this 408 does not belong to a OPTION-Request. It was an reply to an INVITE. I disabled the parameter modparam(dispatcher, ds_ping_reply_codes, class=2;class=4) in the config, now the gateway remains inactive until a 200 ok is received for an option. I don't understand why this 408 matched. Why I need to trigger always ds_mark_dst(i); , OPTIONS are send out anyway. Disabling the gateway could be done in the background, or maybe I missed something in the documentation. regards, Thomas ___ Empfehlen Sie WEB.DE DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.web.de ___ 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] Reloading a module without restart
Is it possible to reload a module such as siptrace without requiring a full restart of kamailio. I have changed my db_url modparam for the siptrace module and would like to avoid restarting kamailio if possible. Thanks Stagg ___ 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] Reloading a module without restart
The kamailio config is a monolithic one (not per module - like asterisk) and therefor the notion of reloading a module doesn't make sense. On the other hand, a config reload require server restart: http://www.kamailio.org/dokuwiki/doku.php/troubleshooting:faq#qis_it_possible_to_reload_openser_s_configuration_file_with_a_signal Regards, Ovidiu Sas On Thu, Feb 3, 2011 at 1:38 PM, Stagg Shelton st...@vocalcloud.com wrote: Is it possible to reload a module such as siptrace without requiring a full restart of kamailio. I have changed my db_url modparam for the siptrace module and would like to avoid restarting kamailio if possible. Thanks Stagg ___ 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
Re: [SR-Users] authentication is not working
El Thu, 3 Feb 2011 11:12:30 +0100 Danny Dias ing.diasda...@gmail.com escribió: Hello my friends, I'm trying to configure authentication on my Kamailio and is not working at all :( I've added the following to the script to make it work: (but it doesn't) . Are you asking the same questions in both kamailio and opensips accounts with different aliases? Why would you do that? Toyima Dias? Really? ___ 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] authentication is not working
El Thu, 3 Feb 2011 19:50:23 +0100 Jon Bonilla (Manwe) ma...@aholab.ehu.es escribió: El Thu, 3 Feb 2011 11:12:30 +0100 Danny Dias ing.diasda...@gmail.com escribió: Hello my friends, I'm trying to configure authentication on my Kamailio and is not working at all :( I've added the following to the script to make it work: (but it doesn't) . Are you asking the same questions in both kamailio and opensips accounts with different aliases? Forgot to attach. This is not the only one. http://lists.opensips.org/pipermail/users/2011-February/016551.html ___ 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] topoh, angle brackets and Contact URI params interpretation
On 02/03/2011 09:26 AM, Andrew Pogrebennyk wrote: I'm having an issue with topoh module in Kamailio 3.1.0. When Contact header is formed like this: Contact: 0991 sip:192.168.0.107;line=sr-N6IAzBysz.tyz.D4M.VLOBMfOBFuWxvfMxV4 The other party responds properly. But when there is no angle brackets in Contact: Contact: sip:192.168.0.107;line=sr-N6IAzB3AWxyfz.stM.quOBFZMJZfWxj7W.y-MljAWBy* Really, many parsers implement prefer shift to reduce principle, which means if something can be interpreted in more enclosed expression, it will be interpreted this way and no as part of less enclosed expression so ;line is interpreted as header parameter but not URI parameter. RFC 3261 section 20 suggests that any URI parameters be contained within angle brackets: === The Contact, From, and To header fields contain a URI. If the URI contains a comma, question mark or semicolon, the URI MUST be enclosed in angle brackets ( and ). Any URI parameters are contained within these brackets. If the URI is not enclosed in angle brackets, any semicolon-delimited parameters are header-parameters, not URI parameters. === I think the topoh module should force the angle brackets. Why? What about regular Contact params? RFC3261 section 20.10 Contact: ... ... If no and are present, all parameters after the URI are header parameters, not URI parameters. The display name can be tokens, or a quoted string, if a larger character set is desired. I think that it is clean enough, you should ask why the proxy sends Contact URI without and when there is an URI param. Libor BTW it seems that parameter needs to be urlencoded, see rule 'other-param' in RFC 3261 section 25.1: other-param = pname [ = pvalue ] pname = 1*paramchar pvalue= 1*paramchar paramchar = param-unreserved / unreserved / escaped param-unreserved = [ / ] / / / : / / + / $ No .-* characters are allowed in the paramchar. But at least that's not causing me any problems. ___ 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] authentication is not working
What version of kamailio are you using? If it is 3.1, then load debugger module and enable cfg trace. Then you will see what lines in the configuration file are executed. For older versions (also for 3.1), you can add xlog() lines in your config to troubleshoot it. Cheers, Daniel On 2/3/11 3:46 PM, Klaus Darilion wrote: Restart Kamailio. Make sure that it is it really restarts: /etc/init.d/kamailio stop ps aux|grep kamailio # if there are some processes left, kill them killall kamailio ps aux|grep kamailio # if there are still some processes left, kill them harder! killall -9 kamailio /etc/init.d/kamailio start make sure Kamailio is really using your configuration file klaus Am 03.02.2011 11:12, schrieb Danny Dias: Hello my friends, I'm trying to configure authentication on my Kamailio and is not working at all :( I've added the following to the script to make it work: (but it doesn't) ... loadmodule auth.so loadmodule auth_db.so ... modparam(usrloc, db_url, mysql://kamailio:kamailiorw@localhost/kamailio) modparam(auth_db, calculate_ha1, yes) modparam(auth_db, password_column, password) modparam(auth_db, db_url, mysql://kamailio:kamailiorw@localhost/kamailio) modparam(auth_db, load_credentials, ) ... if (!(method==REGISTER) from_uri==myself) /*no multidomain version*/ { if (!proxy_authorize(, subscriber)) { proxy_challenge(, 0); exit; } if (!db_check_from()) { sl_send_reply(403,Forbidden auth ID); exit; } consume_credentials(); } ... if (is_method(REGISTER)) { # authenticate the REGISTER requests (uncomment to enable auth) if (!www_authorize(, subscriber)) { www_challenge(, 0); exit; } ## if (!db_check_to()) { sl_send_reply(403,Forbidden auth ID); exit; } if (!save(location)) sl_reply_error(); exit; } But is not working at all...take a look: # U 2011/02/03 09:31:04.402891 172.30.140.22:48752 - 172.30.140.8:5060 REGISTER sip:172.30.140.8 SIP/2.0 Via: SIP/2.0/UDP 172.30.140.22:48752 ;branch=z9hG4bK-d87543-9a54af22967ae417-1--d87543-;rport Max-Forwards: 70 Contact:sip:1000@172.30.140.22:48752;rinstance=fcade2df86ce0ab8 To: 1000sip:1000@172.30.140.8sip%3A1000@172.30.140.8 From: 1000sip:1000@172.30.140.8sip%3A1000@172.30.140.8;tag=cd3e2323 Call-ID: MmU0YjM1NThiNTg0ZjhiNGM4ODA4ZmU1YWFiYjBmNTc. CSeq: 1 REGISTER Expires: 3600 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO User-Agent: X-Lite release 1011s stamp 41150 Content-Length: 0 # U 2011/02/03 09:31:04.404039 172.30.140.8:5060 - 172.30.140.22:48752 SIP/2.0 200 OK Via: SIP/2.0/UDP 172.30.140.22:48752 ;branch=z9hG4bK-d87543-9a54af22967ae417-1--d87543-;rport=48752 To: 1000sip:1000@172.30.140.8sip%3A1000@172.30.140.8 ;tag=c97b4d1cb1f3d0da549e06a8d482ef63.34dc From: 1000sip:1000@172.30.140.8sip%3A1000@172.30.140.8;tag=cd3e2323 Call-ID: MmU0YjM1NThiNTg0ZjhiNGM4ODA4ZmU1YWFiYjBmNTc. CSeq: 1 REGISTER Contact:sip:1000@172.30.140.22:48752 ;rinstance=fcade2df86ce0ab8;expires=3600 Content-Length: 0 Am i missing something in my configuration? Thanks in advance!!! ___ 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 ___ 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] authentication is not working
Thanks Daniel...i appreciate your help, i will let you know if i could solve the problem! 2011/2/3 Daniel-Constantin Mierla mico...@gmail.com What version of kamailio are you using? If it is 3.1, then load debugger module and enable cfg trace. Then you will see what lines in the configuration file are executed. For older versions (also for 3.1), you can add xlog() lines in your config to troubleshoot it. Cheers, Daniel On 2/3/11 3:46 PM, Klaus Darilion wrote: Restart Kamailio. Make sure that it is it really restarts: /etc/init.d/kamailio stop ps aux|grep kamailio # if there are some processes left, kill them killall kamailio ps aux|grep kamailio # if there are still some processes left, kill them harder! killall -9 kamailio /etc/init.d/kamailio start make sure Kamailio is really using your configuration file klaus Am 03.02.2011 11:12, schrieb Danny Dias: Hello my friends, I'm trying to configure authentication on my Kamailio and is not working at all :( I've added the following to the script to make it work: (but it doesn't) ... loadmodule auth.so loadmodule auth_db.so ... modparam(usrloc, db_url, mysql://kamailio:kamailiorw@localhost /kamailio) modparam(auth_db, calculate_ha1, yes) modparam(auth_db, password_column, password) modparam(auth_db, db_url, mysql://kamailio:kamailiorw@localhost /kamailio) modparam(auth_db, load_credentials, ) ... if (!(method==REGISTER) from_uri==myself) /*no multidomain version*/ { if (!proxy_authorize(, subscriber)) { proxy_challenge(, 0); exit; } if (!db_check_from()) { sl_send_reply(403,Forbidden auth ID); exit; } consume_credentials(); } ... if (is_method(REGISTER)) { # authenticate the REGISTER requests (uncomment to enable auth) if (!www_authorize(, subscriber)) { www_challenge(, 0); exit; } ## if (!db_check_to()) { sl_send_reply(403,Forbidden auth ID); exit; } if (!save(location)) sl_reply_error(); exit; } But is not working at all...take a look: # U 2011/02/03 09:31:04.402891 172.30.140.22:48752 - 172.30.140.8:5060 REGISTER sip:172.30.140.8 SIP/2.0 Via: SIP/2.0/UDP 172.30.140.22:48752 ;branch=z9hG4bK-d87543-9a54af22967ae417-1--d87543-;rport Max-Forwards: 70 Contact:sip:1000@172.30.140.22:48752;rinstance=fcade2df86ce0ab8 To: 1000sip:1000@172.30.140.8 sip%3A1000@172.30.140.8 sip%3A1000@172.30.140.8 sip%253A1000@172.30.140.8 From: 1000sip:1000@172.30.140.8 sip%3A1000@172.30.140.8 sip%3A1000@172.30.140.8 sip%253A1000@172.30.140.8;tag=cd3e2323 Call-ID: MmU0YjM1NThiNTg0ZjhiNGM4ODA4ZmU1YWFiYjBmNTc. CSeq: 1 REGISTER Expires: 3600 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO User-Agent: X-Lite release 1011s stamp 41150 Content-Length: 0 # U 2011/02/03 09:31:04.404039 172.30.140.8:5060 - 172.30.140.22:48752 SIP/2.0 200 OK Via: SIP/2.0/UDP 172.30.140.22:48752 ;branch=z9hG4bK-d87543-9a54af22967ae417-1--d87543-;rport=48752 To: 1000sip:1000@172.30.140.8 sip%3A1000@172.30.140.8 sip%3A1000@172.30.140.8 sip%253A1000@172.30.140.8 ;tag=c97b4d1cb1f3d0da549e06a8d482ef63.34dc From: 1000sip:1000@172.30.140.8 sip%3A1000@172.30.140.8 sip%3A1000@172.30.140.8 sip%253A1000@172.30.140.8;tag=cd3e2323 Call-ID: MmU0YjM1NThiNTg0ZjhiNGM4ODA4ZmU1YWFiYjBmNTc. CSeq: 1 REGISTER Contact:sip:1000@172.30.140.22:48752 ;rinstance=fcade2df86ce0ab8;expires=3600 Content-Length: 0 Am i missing something in my configuration? Thanks in advance!!! ___ 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 ___ 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