| CCXML 1.0-W3C Development Guide | Home | Frameset Home |
|
<transition event="connection.alerting">
<assign name="ANI" expr="event$.connection.protocol.sip.headers['x-sbc-p-charge-info']"/>
<log expr="'*** ANI = ' + ANI"/>
</transition>
<transition event="connection.alerting">
<log expr="'*** Caller ID via SIP header = ' + event$.connection.protocol.sip.headers.From"/>
<log expr="'*** Caller ID via connection object = ' + event$.connection.remote"/>
</transition>
<createcall dest="'tel:+12223334444'" callerid="'1111111111'"/>
If you want to use variables, here's how you can do it:
<var name="phoneNumber" expr="'4071234455'"/>
<var name="cid" expr="'4075551234'"/>
..
<createcall dest="'tel:+1' + phoneNumber" callerid="cid"/>
tel:+[country code][number]tel:+4402071112222| ANNOTATIONS: EXISTING POSTS |
konrad.garus
|
|
| In the second example, should it be:
<createcall dest="'tel:+1' + phoneNumber" callerid="cid"/> Rather than: <createcall dest="'tel:+1' + phoneNumber + 'callerid=' + cid"/> |
|
voxeoJeffK
|
|
| Hello,
Yes, you are correct. Thank you for noticing that error. I have altered the documentation source, and changes will be pushed live when the documentation build is nest performed. Regards, Jeff Kustermann Voxeo Support |
|
kakeakeai
|
|
| My ccxml application has multiple phone numbers to call in with. The 800 number, the standard phone number. I can access the ANI of the phone placing the call using
event$.connection.protocol.sip.headers['x-sbc-p-charge-info'] I can not find anything about accessing the number being dialed. Say my application has 2 phone numbers: (912) 123 1234 (123) 152 1234 How would I get which number was dialed? |
|
kakeakeai
|
|
| Answer to my post above:
the calledid (the number the caller dialed) is in: event$.connection.local |
| login |
|