[SR-Users] Hex to Dec conversion

2015-09-17 Thread Yufei Tao
Hi Daniel, I've tested the patch on top of v4.2.5 and it works. Thank you very much! Yufei ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org

Re: [SR-Users] Hex to Dec conversion

2015-09-16 Thread Yufei Tao
Hi, Thanks for the replies! The first thing I looked at was the encode/decode.hexa transformations but it only transforms between ASCII characters and Hex numbers. Then I used exec_avp to call a bash command (for example, 'echo $((0x123))' gives you 291) which works. But calling something

[SR-Users] Hex to Dec conversion

2015-09-14 Thread Yufei Tao
Hi, I want to convert a Hex number string into a Dec number string, e.g. Hex number "123" into Dec number "291". What is the best way? I didn't find any transformation for this. Thank you! Yufei ___ SIP Express Router (SER) and Kamailio (OpenSER) -

Re: [SR-Users] sr-users Digest, Vol 119, Issue 28

2015-04-30 Thread Yufei Tao
. Any way to use the end-of-line symbol? Cheers, Yufei -- Message: 10 Date: Wed, 29 Apr 2015 18:01:26 +0100 From: Yufei Tao yufei@gmail.com To: sr-users@lists.sip-router.org Subject: [SR-Users] sht_rm_name_re() question Message-ID

[SR-Users] sht_rm_name_re() question

2015-04-29 Thread Yufei Tao
Hi I've hit a problem with sht_rm_name_re() in htable module. I was calling it like this: sht_rm_name_re(Dlg=$var(callid)::tenant); But when I used sipp to generate 600 concurrent calls for example, I called this function when receiving BYE. But it removed more entries than it should. Seems

Re: [SR-Users] SIP messages over UDP with sizes over MTU

2015-04-23 Thread Yufei Tao
​ the sip receiver was stuck in some weird state. If I were you I would do TCP for SIP. It is also recommended in 3261 to use TCP when sip is that big. -- *From:* sr-users sr-users-boun...@lists.sip-router.org on behalf of Yufei Tao yufei@gmail.com *Sent:* Friday

[SR-Users] SIP messages over UDP with sizes over MTU

2015-04-01 Thread Yufei Tao
Hi We've got Kamailio (v4.0.0) connected to some SBC, which sends SIP traffic and periodic OPTIONS pings to Kamailio's VIP. Kamailio responds to the OPTIONS pings with OK, i.e. in the main route block: if (is_method(OPTIONS)) { sl_send_reply(200,OK); exit; } All works fine

[SR-Users] Kamailio Advanced Training Course in Europe 2014?

2014-01-16 Thread Yufei Tao
Hi Just a quick question about the Kamailio Advanced Training Course: are there any courses scheduled in Europe in 2014? If there are, roughly what time will they likely to take place? The only one I can find is the one in Miami next month but it's a bit far to travel. Cheers, Yufei -- Yufei Tao

Re: [SR-Users] Presence: Duplicate entry 'username-domain-presence-*#-OFFLINE-#*' for key 'presentity_idx' when multiple clients register using the same credentials

2013-10-09 Thread Yufei Tao
to the same *#-OFFLINE-#*. Maybe it would be good to include the original etag for the expired entries, e.g. '*#-OFFLINE-#*-orig_etag' rather than just '*#-OFFLINE-#*', in which case these errors won't occur, since the original etags (orig_etag) are unique. Yufei On 08/10/13 13:54, Yufei Tao

[SR-Users] Presence: Duplicate entry 'username-domain-presence-*#-OFFLINE-#*' for key 'presentity_idx' when multiple clients register using the same credentials

2013-10-04 Thread Yufei Tao
be removed to cope with this situation? Thank you! Yufei -- Yufei Tao Red Embedded This E-mail and any attachments hereto are strictly confidential and intended solely for the addressee. If you are not the intended addressee please notify the sender by return and delete the message. You must

[SR-Users] How to stop NOTIFY from being sent to stable location entries on unreliable network?

2013-09-05 Thread Yufei Tao
is: is there any ways that I can stop all the NOTIFY messages from being sent to the stale locations, i.e. remove these SUBSCRIBE dialogs from memory? Thank you! Yufei -- Yufei Tao Red Embedded This E-mail and any attachments hereto are strictly confidential and intended solely for the addressee

Re: [SR-Users] Subscribe to a common resource list

2013-08-23 Thread Yufei Tao
that every other user can get its RL document? Cheers, Yufei Message: 3 Date: Thu, 22 Aug 2013 11:53:07 +0100 From: Yufei Tao yufei@redembedded.com To: sr-users@lists.sip-router.org Subject: [SR-Users] Subscribe to a common resource list Message-ID: 5215ed93.7050...@redembedded.com Content-Type

[SR-Users] Subscribe to a common resource list

2013-08-22 Thread Yufei Tao
or user2, which is not 'group1' so the resource list document fails to be retrieved. How can I allow user1 and user2 to retrieve group1's RL document? Thank you! Yufei -- Yufei Tao Red Embedded This E-mail and any attachments hereto are strictly confidential and intended solely for the addressee

Re: [SR-Users] var vs avp...

2013-04-22 Thread Yufei Tao
in kamailio's process list (childs) - $var has local route block scope. - $avp has SIP transaction scope. - Both $avp and $var are automatically freed. -- Yufei Tao Red Embedded This E-mail and any attachments hereto are strictly confidential and intended solely for the addressee. If you

Re: [SR-Users] sr-users Digest, Vol 90, Issue 39

2012-11-14 Thread Yufei Tao
-bin/mailman/listinfo/sr-users End of sr-users Digest, Vol 90, Issue 39 -- Yufei Tao Red Embedded This E-mail and any attachments hereto are strictly confidential and intended solely for the addressee. If you are not the intended addressee please notify

Re: [SR-Users] call forking using dbaliases not working for un-NATed clients

2012-09-19 Thread Yufei Tao
workaround is to use fix_nated_register() for every client (the pragmatic and more secure approach). regards Klaus On 18.09.2012 15:16, Yufei Tao wrote: Hi I have a strange problem on forking calls to a group of users. For example I have two users y2 and y3 in dbaliases, both

Re: [SR-Users] call forking using dbaliases not working for un-NATed clients

2012-09-19 Thread Yufei Tao
is null, should set it to $ru on the branches? Yufei On 19/09/12 11:53, Klaus Darilion wrote: On 19.09.2012 12:24, Yufei Tao wrote: Hi Klaus Thanks for the reply! I check the $du, it is always null before and after the lookup. Is it only set when relaying to a proxy (from record-route

Re: [SR-Users] call forking using dbaliases not working for un-NATed clients

2012-09-19 Thread Yufei Tao
. set $du after lookup if it is empty Wonder if it is worth adding fixes in the source code. Thanks very much Klaus for pointing me to the right direction! Yufei Date: Wed, 19 Sep 2012 15:13:29 +0100 From: Yufei Tao yufei@redembedded.com Subject: Re: [SR-Users] call forking using dbaliases

[SR-Users] call forking using dbaliases not working for un-NATed clients

2012-09-18 Thread Yufei Tao
and RELAY are the last two routes: route { ... route(NAT); ... ... # user location service route(LOCATION); route(RELAY); } Hope I have made it clear. Thanks very much! Yufei -- Yufei Tao Red Embedded This E-mail and any attachments hereto are strictly confidential and intended

Re: [SR-Users] [sr-dev] new feature: option to remove, contacts based on sip nat keepalives

2012-08-20 Thread Yufei Tao
a closed TCP connection for a device behind NAT or failure to response to NAT pings. /O -- Yufei Tao Red Embedded This E-mail and any attachments hereto are strictly confidential and intended solely for the addressee. If you are not the intended addressee please notify the sender by return

Re: [SR-Users] Siremis routing support does not include drouting

2012-06-20 Thread Yufei Tao
/siremis:install32x:new-views Cheers, Daniel On 6/16/12 11:34 AM, Yufei Tao wrote: Hello Seems Siremis 3.2.1 doesn't support configuration of drouting. Any plans that it will in the future? I hope to use it to make my drouting configuration easier. What I want to do is to route prefixed

[SR-Users] Siremis routing support does not include drouting

2012-06-16 Thread Yufei Tao
+dot and maybe+underscore+hyphen as well). Maybe I should use PDT module instead as it is supported by Siremis? Thanks! Yufei -- Yufei Tao Red Embedded This E-mail and any attachments hereto are strictly confidential and intended solely for the addressee. If you are not the intended addressee

Re: [SR-Users] drouting module: can I use non-digit prefix?

2012-06-14 Thread Yufei Tao
It is one line of effective code that you have to change. Let me know if goes ok now and I will backport to stable branches. Cheers, Daniel On 6/13/12 11:16 AM, Yufei Tao wrote: Hi Daniel The version is: version: kamailio 3.2.2 (i386/linux) flags: STATS: Off, USE_IPV6, USE_TCP

Re: [SR-Users] drouting module: can I use non-digit prefix?

2012-06-13 Thread Yufei Tao
, Daniel On 6/12/12 4:33 PM, Yufei Tao wrote: Hi Daniel Thanks for the reply! I tried it again and the log seems to suggest it crashed when loading the dr_rules table that contains non-digit prefix, e.g. prefix bing 'abc.': 1. First crash when doing MI command dr_reload: Jun 12 15:19

Re: [SR-Users] drouting module: can I use non-digit prefix?

2012-06-12 Thread Yufei Tao
:53, Daniel-Constantin Mierla wrote: Hello, On 6/1/12 4:57 PM, Yufei Tao wrote: Hi I'm using drouting module and seems that it only allows digit-only prefixes. Also all the number of digits to be stripped ('strip' defined in dr_gateways) must be all digits too. When I used non-digits

Re: [SR-Users] ACCDB insert issues

2012-03-22 Thread Yufei Tao
attachment was scrubbed... URL: http://lists.sip-router.org/pipermail/sr-users/attachments/20120321/dd9bf194/attachment.htm -- Yufei Tao Red Embedded This E-mail and any attachments hereto are strictly confidential and intended solely for the addressee. If you are not the intended addressee please

Re: [SR-Users] add_contact_alias and handle_ruri_alias vs fix_nated_contact

2012-03-19 Thread Yufei Tao
is always correct. regarding tcp connection reuse, i don't remember why i wrote about that in the tutorial. perhaps i was just mislead by the name of fix_nated_contact() function that is incorrect. i just checked and the function has nothing to do with nated contacts. -- juha -- Yufei Tao

Re: [SR-Users] How to do accounting for Kamailio-generated BYEs?

2012-02-29 Thread Yufei Tao
OK now I've upgraded to Kamailio 3.2 and it all works: sql_query (to insert BYE into acc table) in event_route() doesn't crash anymore. On 29/02/12 09:31, Yufei Tao wrote: Hi To summarize my questions: 1. What is the correct way to account for Kamailio internally-generated BYEs? 2. Using

[SR-Users] How to do accounting for Kamailio-generated BYEs?

2012-02-27 Thread Yufei Tao
Kamailio 3.1.5. Thank you very much! Yufei -- Yufei Tao Red Embedded This E-mail and any attachments hereto are strictly confidential and intended solely for the addressee. If you are not the intended addressee please notify the sender by return and delete the message. You must not disclose

[SR-Users] TCP keepalive on server and client

2012-02-03 Thread Yufei Tao
the client send crlfcrlf? The reason I'm confused is, with these settings, if Kamailio can only respond to crlfcrlf, but not send, then would the client only respond too, as in 1. and 2., they seem to configure the same set of parameters? Please help me clarify this. Thanks very much! Yufei -- Yufei Tao

Re: [SR-Users] sr-users Digest, Vol 81, Issue 7

2012-02-03 Thread Yufei Tao
the list at sr-users-ow...@lists.sip-router.org When replying, please edit your Subject line so it is more specific than Re: Contents of sr-users digest... Today's Topics: 1. TCP keepalive on server and client (Yufei Tao

[SR-Users] problem forking to dbaliase

2011-12-13 Thread Yufei Tao
); } if (!t_relay()) { sl_reply_error(); } exit; } # And in the main route, route LOCATION and RELAY are the last two routes: route { ... # user location service route(LOCATION); route(RELAY); } Thanks very much! Yufei -- Yufei

Re: [SR-Users] problem forking to dbaliase

2011-12-13 Thread Yufei Tao
Hi Daniel Thanks very much for the quick response - and it works fine now :) Cheers, Yufei On 13/12/11 16:05, Daniel-Constantin Mierla wrote: Hello, On 12/13/11 2:31 PM, Yufei Tao wrote: Hi I'm using Kamailio 3.1.5 and want to fork calls to all members in the same group defined

Re: [SR-Users] dialog table entry not deleted after call if in-dialog requests are challenged

2011-12-06 Thread Yufei Tao
:18 PM, Yufei Tao wrote: Hi Daniel Thanks very much for you response! In my original config, I only set the dialog flag when receiving the initial INVITE, and didn't use dlg_manage() at all. Now I have added dlg_manage() when BYE is received as you suggested, I got from the log

Re: [SR-Users] dialog table entry not deleted after call if in-dialog requests are challenged

2011-12-05 Thread Yufei Tao
and see if the delete query is sent to mysql server? Cheers, Daniel On 12/2/11 12:18 PM, Yufei Tao wrote: Hi Daniel Thanks very much for you response! In my original config, I only set the dialog flag when receiving the initial INVITE, and didn't use dlg_manage() at all. Now I have

Re: [SR-Users] dialog table entry not deleted after call if in-dialog requests are challenged

2011-12-02 Thread Yufei Tao
dlg_manage() when BYE is received. Cheers, Daniel On 11/30/11 3:36 PM, Yufei Tao wrote: Hi I am using dialog module in Kamailio 3.1.5, and find that the dialog table entry does not get deleted after call if in-dialog requests (e.g. session timer refresh re-INVITEs in my case) are challenged

[SR-Users] dialog table entry not deleted after call if in-dialog requests are challenged

2011-11-30 Thread Yufei Tao
the dialog flag (4) when receiving the initial INVITE. Any idea why? Am I using the dialog module correctly? Thanks very much! Yufei -- Yufei Tao Red Embedded This E-mail and any attachments hereto are strictly confidential and intended solely for the addressee. If you are not the intended addressee