Dov Bigio wrote:
> Is it possible to add a SIPHeader (application AddSipHeader on Asterisk=
)
> when I make a call through asterisk-java, for example, using the
> OriginateAction?
> =20
> I want to make an application that Dials to a VoiceXML application,
> which would read parameters from the SIP header...
You can use a Local channel and run AddSipHeader in your dialplan.
This would look like:
Map<String, String> headers =3D new HashMap<String, String>();
headers.add("__HEADER1", "blah");
=2E..
originateToExtensionAsync("Local/123@default", "default", "456", 1,
10000L, null, parameters, null);
now you can use HEADER1 in your dialplan to configure extension 123 and
456 with AddSipHeader(${HEADER1}) and Dial() after that.
> (Or doesn't anyone have a better idea for sending parameters through a
> Dial...)
Depends on how your VoiceXML application is connected to Asterisk. If
its connected through SIP I think SIP headers are the best way to go.
=3DStefan
--=20
reuter network consulting
Neusser Str. 110
50760 Koeln
Germany
Telefon: +49 221 1305699-0
Telefax: +49 221 1305699-90
E-Mail: ste...@re...
Jabber: ste...@re...
Steuernummern 215/5140/1791 USt-IdNr. DE220701760
|