| CCXML 1.0-W3C Development Guide | Home | Frameset Home |
|
<createcall>
<!-- declaring a user variable -->
<var name="author" expr="'matthew henry'"/>
<log expr="'***** AUTHOR = ' + author"/>
<!-- assigning the user variable Application scope -->
<assign name="application.author" expr="'steve sax'"/>
<log expr="'***** AUTHOR = ' + author"/>
<log expr="'***** APPLICATION.AUTHOR = ' + application.author"/>
<!-- declaring a new Object -->
<assign name="application.myObject" expr="new Object()"/>
<!-- assigning application scoped properties to the Object -->
<assign name="application.myObject.prop1" expr="'rob green'"/>
<assign name="application.myObject.prop2" expr="'eric simpson'"/>
<log expr="'***** APPLICATION.MYOBJECT.PROP1 = ' + application.myObject.prop1"/>
<log expr="'***** APPLICATION.MYOBJECT.PROP2 = ' + application.myObject.prop2"/>
| ANNOTATIONS: EXISTING POSTS |
ctorkelson
|
|
|
There seems to be an error in the declaration of the new object in this example. It seems that <var> should be <assign> as discussed here http://lists.w3.org/Archives/Public/www-voice/2009OctDec/0022.html Could this page be updated with a working example that shows how to read property values in one CCXML file that were assigned in another CCXML file? |
|
voxeojeremyr
|
|
| Hello,
Thank you for the heads up on the update to the specification. I have notified our documentation team of the change and we should have that fixed in a few days. As far as your question regarding a "working example that shows how to read property values in one CCXML file that were assigned in another CCXML file", can you give us any more details? Are you looking to pass variables from a parent CCXML document to a child document? Standing by, Jeremy Richmond Voxeo Support |
|
gayatripawar
|
|
| Hi..,
Thanks for your documentation, it helps us a lot in developing our application. Actually I have a doubt : when session.callerid is restricted then the error is in application or at the server? Please reply me on gayatri.pawar@sumasoft.net |
|
VoxeoDustin
|
|
| Hey Gayatri,
If the caller ID value is returned as 'restricted', this is from the carrier as the caller has requested their number be restricted. Regards, Dustin |
| login |
|