Module: sip-router
Branch: master
Commit: 3a45d925c7f06072aef9edba3b0ef8c17e12c6e2
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3a45d92…
Author: Hugh Waite <hugh.waite(a)crocodile-rcs.com>
Committer: Hugh Waite <hugh.waite(a)crocodile-rcs.com>
Date: Mon Mar 18 11:57:17 2013 +0000
Merge branch 'master' of ssh://git.sip-router.org/sip-router
* 'master' of ssh://git.sip-router.org/sip-router:
modules/app_java: refactoring, changed parameter 'force_kam_cmd_exec' to 'force_cmd_exec', updated docs - moved ThrowNewException from utils to java_support - removed macro FORCE_CAST_O2P - removed get_struct_sip_msg - renamed parameter 'force_kam_cmd_exec' to 'force_cmd_exec' - updated docs caused parameter change
modules/app_java: README to README-draft, added actual README
modules/app_java: moved README, removed other formats except xml from doc directory.
modules/app_java: added documentation, removed *.class,*.jar
modules/sca: fix -Waddress warnings caused by static strs in SCA_STR_EMPTY
modules/sca: process BYE without Call-Info from shared line.
modules/outbound: Warn during mod_init() if STUN is not built or enabled
modules/outbound: free shared memory for flow-token key during shutdown
sca: reduce log level to DBG when replacing RURI when retrieving held call.
modules/outbound: Fixed bug in outbound mod_init
modules/outbound: The flow-token key is now automatically generated
---
Hi All,
I have written a module on Kamailio that would intercept all INVITE
Messages and reply with 3xx or 4xx based on rules set for subscriber. The
module is a perl script that would act on DB and return based on sbcr
preferences. When responding i need to edit the To header to strip off
country code from it.How do i do it?
i saw uac module has options to do it via
uac_replace_to(display,uri)<http://kamailio.org/docs/modules/stable/modules/uac.html#id2494560>
and
did the same in kamailio.cfg
but the message is still going with out changes?Any suggestions on the same
would be highly appreciated
Thanks in advance
Arav
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#270 - app_lua: add rpc reload command
User who did this - Daniel-Constantin Mierla (miconda)
----------
kmi internal lib does not seem used, you updated the Makefile to link against it.
It is not yet clear how you structured the global version per loaded script vs local version, probably I need more time to analyze the patch.
Anyhow, there are few things that need to be adjusted.
- you added a memset(), the last parameter has to be the same as the allocated size, not as 'size' variable (multiply with sizeof unsigned int)
- the index in the array of scripts is starting with 1, it should be from 0 -- reloading all scripts should be done different, either with no index parameter or maybe a negative value (e.g., -1), 1-based indexes are misleading in C
----------
More information can be found at the following URL:
https://sip-router.org/tracker/index.php?do=details&task_id=270#comment789
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.