Re: [OpenSIPS-Users] variables not working as expected

2024-03-23 Thread Stefan Carlsson
https://www.oreilly.com/library/view/building-telephony-systems/9781785280610/ Excellent Regards_ Stefan From: Prathibha B Sent: Saturday, 23 March 2024 12:26 To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] variables not working as expected

Re: [OpenSIPS-Users] variables not working as expected

2024-03-23 Thread Prathibha B
unable to access the script variable in the route block On Sat, 23 Mar 2024 at 15:39, Prathibha B wrote: > if ( !create_dialog("B") ) { > send_reply(500,"Internal Server Error"); > exit; > } > else > dlg_on_answer("dlg_answered"); > > > route[

[OpenSIPS-Users] variables not working as expected

2024-03-23 Thread Prathibha B
if ( !create_dialog("B") ) { send_reply(500,"Internal Server Error"); exit; } else dlg_on_answer("dlg_answered"); route[dlg_answered] { $var(payload) = "{'type':'ANSWERED', 'from':" + $fU +", 'to':" + $tU+ "}"; } *Result:* {'type':'ANSW

[OpenSIPS-Users] Variables as parameters to rtpproxy

2019-09-06 Thread Mark Farmer
Hi all I have been trying to pass script variables as parameters to rtpproxy_offer() & rtpproxy_answer() but they do not seem to work. Is this possible? EG: if (isflagset(R_LOCAL_TO_LOCAL)) { xlog("CUSTOM_LOG: Processing Flag: R_LOCAL_TO_LOCAL"); $var(rtpreplyflags

Re: [OpenSIPS-Users] variables

2014-03-11 Thread Mike Claudi Pedersen
thx.. i think you provided the information i needed 2014-03-11 11:50 GMT+01:00 Răzvan Crainea : > Hi, Mike! > > You can find here[1] the core pseudo variables for OpenSIPS 1.8. Each > module has it's own variable, for example[2]. If you need a variable from a > module, you should search in that

Re: [OpenSIPS-Users] variables

2014-03-11 Thread Răzvan Crainea
Hi, Mike! You can find here[1] the core pseudo variables for OpenSIPS 1.8. Each module has it's own variable, for example[2]. If you need a variable from a module, you should search in that module's documentation page. For example, if you need the number of onging calls, you should look in th

Re: [OpenSIPS-Users] variables

2014-03-11 Thread Mike Claudi Pedersen
Hi fellow sippers can anyone point me to documentation on what kind of variables you are able to use to define which part of the sip you want to look at. like TO, FROM, URI i cant seem to find any documentation on this ? 2014-03-11 11:09 GMT+01:00 Mike Claudi Pedersen : > Hi fellow sip

[OpenSIPS-Users] variables

2014-03-11 Thread Mike Claudi Pedersen
Hi fellow sippers can anyone point me to documentation on what kind of variables you are able to use to define which part of the sip you want to look at. like TO, FROM, URI i cant seem to find any documentation on this ? ___ Users mailing list Users@list

[OpenSIPS-Users] Variables related question

2010-08-09 Thread Jayesh Nambiar
Hi, I have a few questions related to the variables in opensips and would really appreciate if someone can help me clear these doubts: 1) Is it possible to fetch unsigned integers from the DB and store it in the AVP? For eg, fetching a negative value from the DB. 2) Is it possible to fetch floating

[OpenSIPS-Users] "Variables in OpenSIPS scripting" is the next webinar

2010-03-22 Thread Bogdan-Andrei Iancu
Next webinar is scheduled for 30th of March 2010. The topic is "Variables in OpenSIPS scripting" - explaining the types of variables in OpenSIPS routing script, how to use them and which are the particularities of each type of variable. Free registration at http://www.opensips.org/Training/Web