Hi,
I'm not talking about any version in particular, you can find this statement in the latest SRND for 11.0 or 12.0 but also if you look back in 9.1 and I believe earlier versions too.
I don't think the number of nodes is relevant to my question, and I do not have any setup in particular, so this is a general question.
Regards,
Carlos
... View more
Hi everyone,
Does anyone know if the limit for gateways and trunks in CUCM cluster apples as well if this is an SME deployment?
From the SRND we can see that:
Maximum of 2,100 gateways and trunks (that is, the total number of H.323 gateways, H.323 trunks, digital MGCP devices, and SIP trunks) per Unified CM cluster.
I wonder whether this limitations is due to a table in the database that would be applicable for SME or just on a node load basis, that for SME could be increased.
Thanks in advance.
Regards,
Carlos M.
... View more
Hi Sreekanth (and all),
I was trying to passthrouhg the SDP for an incoming 200 OK (answer to an INVITE). Curretnly we have an incoming 200 OK with SDP that is being sent as 200 OK without SDP to an IP Phone, I wanted to copy this SDP and add it to the 200 that goes to the phone.
Whenever the script start executing there is an error:
30547889.006 |16:15:53.425 |AppInfo |SIPNormalizationScriptError - A script error occurred Device Name:CUST20-CL1-AGGR-Leganes-TRK Script Name:LUA_AGG.v1.4.3.3 Script Function:M.inbound_200_INVITE Script Type:Custom Error Code:3 Error Code Text:Execution Error Error Message:LUA_AGG.v1.4.3.3 at line 73: attempt to pass through SDP Configured Action:Rollback Only Resulting Action:Rollback Only In Use Memory:27234 Memory Threshold:102400 In Use Lua Instructions:0 Lua Instruction Threshold:2000 App ID:Cisco CallManager Cluster ID:C20-EU-CL1 Node ID:CLUSTERID
Do you know if there is any restriction?
Thanks in advance.
Carlos.
... View more
Hi James,
You actually can change the right-hand side of the script as you want. What you would need to do is to copy the vcs-interop and paste it in a new one (the one by default cannot be modified) and then add the part of code to change the directory number. There is actually a function that already interoperates whit the left-hand side so, it shouldn't be complicate to add manipulations for the right part and make it to be called when required.
The key thing here is about scalability, if you just want to change all calls using that script from a number to VideoRoom it is easy to get it, the problem is if you have several numbers to be matched to different names it may not be that easier.
For instance this would change the reight side of the from URI to a uri-name added via parameter script (this is some add-on to the original script where uri-name is teh name of the room):
M = {} local uri_name = scriptParameters.getValue("uri-name") local function modify_lhs_of_uri(msg, header, lhs) local value = msg:getHeader(header) if value and lhs then local position_of_uri = string.find (value, "<") local position_of_domain = string.find (value, "@", position_of_uri+1) local fulldn = string.sub (value, position_of_uri+5, position_of_domain-1) local dn_pattern = string.gsub (fulldn, "%+", "%%+") local newfrom = string.gsub(value, dn_pattern, uri_name) end end local function modify_lhs_of_uri_for_calling_party(msg) if not uri_name then return end modify_lhs_of_uri(msg, "From", uri_name) end local function process_outbound_request(msg, isInvite) modify_lhs_of_uri_for_calling_party(msg) end M.outbound_INVITE = function(msg) process_outbound_request(msg, true) end return M
What your case here?
Regards,
Carlos M.
... View more
Hi Louis-Philippe,
The problem is when adding the hyphon in the pattern of the string.gsub it behaves as a magic character, so it needs to be escaped. What you can do is to edit the target and add it an %, the following example may be appropiate:
from = '"Louis-Philippe Descamps"<sip:4920000@192.168.1.254:5060>;tag=E3ntppq' -- string
local start = string.find (from, "\"") --find the 1st quote local finish = string.find (from, "\"", start+1) --find the last quote. start+1 to include the quote local target = string.sub (from, start, finish) --display the word we want to replace local targetPattern = string.gsub (target, "%-", "%%-") local newfrom = string.gsub(from, targetPattern, '"Global Service Desk"')
This is quite simple, and it may not be applicable to a generic script, but it should work for your case.
PS: Note that I have add it '' to the Global Service desk, so it will go between "" in the output.
Let me know if this works for you.
... View more
Hi Solomon,
According to the SIP Normalization Developer guide, REFER and associated responses are not supported for SIP Transparency.
Moreover, in thte outbound.INVITE function you are using rfchange, which is a local variable in the inbound function, so I don't expect to be usable out of it.
Regards,
Carlos
... View more
Hi Elden, This is quite old question, I believe you may have been able to solve it, right? If not I believe this error points to the device load, and not to the device model itself. Regards, Carlos M.
... View more
Hi Sreekanth, I find this thread very useful, but i have a question, do you know if there is any recommendations for the Memory and LUA instructions thresholds? I assume it may be dependant on the load of the server or even on the size of the script. Thanks in advance. Carlos M.
... View more