Thread: [Asterisk-java-users] Add SipHeader using OriginateAction
Brought to you by:
srt
From: Daniele R. <dan...@gm...> - 2016-05-17 10:36:00
|
Hi, I'm using a OriginateAction to make a call using Asterisk Java. All works fine but I see there is no way to set the Sip Header. There is a way to do this without the need to create a locale channel? Thanks very much -- Daniele Renda |
From: Peter K. <pet...@ed...> - 2016-05-17 11:54:33
|
What do you mean exactly with set sip header ? i.A. P. Katzmann Senior Software Engineer EDAG Engineering GmbH Steinauer Straße 20 36100 Petersberg Tel.: +49 - (0)661 / 6000 - 9444 Fax: +49 - (0)661 / 6000 - 1116208 E-Mail: Pet...@ed... -----Ursprüngliche Nachricht----- Von: Daniele Renda <dan...@gm...> Gesendet: Die 17 Mai 2016 12:37 An: ast...@li... Betreff: [Asterisk-java-users] Add SipHeader using OriginateAction Hi, I'm using a OriginateAction to make a call using Asterisk Java. All works fine but I see there is no way to set the Sip Header. There is a way to do this without the need to create a locale channel? Thanks very much -- Daniele Renda ------------------------------------------------------------------------------ Mobile security can be enabling, not merely restricting. Employees who bring their own devices (BYOD) to work are irked by the imposition of MDM restrictions. Mobile Device Manager Plus allows you to control only the apps on BYO-devices by containerizing them, leaving personal data untouched! https://ad.doubleclick.net/ddm/clk/304595813;131938128;j _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users Mehr News und Informationen aus der Welt der EDAG Group können Sie in unserem interaktiven EMAG-Magazin (http://www.edag.de/de/services/corporate-services/newsletter.html) nachlesen! More news and information about the EDAG Group can be found in our interactive EMAG-Magazine (http://www.edag.de/en/services/corporate-services/newsletter.html)! ------------------------------------------------------------------------------ Registergericht/Court of jurisdiction: Amtsgericht Wiesbaden, HRB 28257 USt.-Id: DE 292 939 239 Geschäftsführung / Board of Managing Directors: Jörg Ohlsen (CEO), Harald Poeschke (COO), Jürgen Vogt (CFO) Aufsichtsratsvorsitzender / Chairman of the Supervisory Board: Thomas Eichelmann Hauptsitz/Headquarters: EDAG Engineering GmbH, Kreuzberger Ring 40, 65205 Wiesbaden Deutschland/Germany / www.edag.de This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. |
From: Daniele R. <dan...@gm...> - 2016-05-17 11:58:20
|
I have to add P-Asserted-Identity to sip header: exten =>_X,n,SipAddHeader(P-Asserted-Identity: <sip:${CALLERID(NUM)}>) Unfortunately this line should be added _before_ the DIAL action. Thanks 2016-05-17 13:36 GMT+02:00 Peter Katzmann <pet...@ed...>: > What do you mean exactly with set sip header ? > > > > i.A. P. Katzmann > Senior Software Engineer > > EDAG Engineering GmbH > Steinauer Straße 20 > 36100 Petersberg > > Tel.: +49 - (0)661 / 6000 - 9444 > Fax: +49 - (0)661 / 6000 - 1116208 > E-Mail: Pet...@ed... > > -----Ursprüngliche Nachricht----- > *Von:* Daniele Renda <dan...@gm...> > *Gesendet:* Die 17 Mai 2016 12:37 > *An:* ast...@li... > *Betreff:* [Asterisk-java-users] Add SipHeader using OriginateAction > > Hi, > I'm using a OriginateAction to make a call using Asterisk Java. All works > fine but I see there is no way to set the Sip Header. > > There is a way to do this without the need to create a locale channel? > > Thanks very much > > -- > Daniele Renda > > ------------------------------------------------------------------------------ > > Mobile security can be enabling, not merely restricting. Employees who > > bring their own devices (BYOD) to work are irked by the imposition of MDM > > restrictions. Mobile Device Manager Plus allows you to control only the > > apps on BYO-devices by containerizing them, leaving personal data untouched! > https://ad.doubleclick.net/ddm/clk/304595813;131938128;j > > _______________________________________________ > > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > Mehr News und Informationen aus der Welt der EDAG Group können Sie in > unserem interaktiven EMAG-Magazin > <http://www.edag.de/de/services/corporate-services/newsletter.html> > nachlesen! > More news and information about the EDAG Group can be found in our > interactive EMAG-Magazine > <http://www.edag.de/en/services/corporate-services/newsletter.html>! > ------------------------------ > > > Registergericht/Court of jurisdiction: Amtsgericht Wiesbaden, HRB 28257 > USt.-Id: DE 292 939 239 > Geschäftsführung / Board of Managing Directors: Jörg Ohlsen (CEO), Harald > Poeschke (COO), Jürgen Vogt (CFO) > Aufsichtsratsvorsitzender / Chairman of the Supervisory Board: Thomas > Eichelmann > Hauptsitz/Headquarters: EDAG Engineering GmbH, Kreuzberger Ring 40, 65205 > Wiesbaden Deutschland/Germany / www.edag.com > > This e-mail may contain confidential and/or privileged information. If you > are not the intended recipient (or have received this e-mail in error) > please notify the sender immediately and destroy this e-mail. Any > unauthorised copying, disclosure or distribution of the material in this > e-mail is strictly forbidden. > > > > > ------------------------------------------------------------------------------ > Mobile security can be enabling, not merely restricting. Employees who > bring their own devices (BYOD) to work are irked by the imposition of MDM > restrictions. Mobile Device Manager Plus allows you to control only the > apps on BYO-devices by containerizing them, leaving personal data > untouched! > https://ad.doubleclick.net/ddm/clk/304595813;131938128;j > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > -- Daniele Renda |
From: Peter K. <pet...@ed...> - 2016-05-17 12:19:32
|
originateAction.setVariable("SIPADDHEADER", "P-Asserted-Identity: <sip:${CALLERID(NUM)}>"); Should do it..... i.A. P. Katzmann Senior Software Engineer EDAG Engineering GmbH Steinauer Straße 20 36100 Petersberg Tel.: +49 - (0)661 / 6000 - 9444 Fax: +49 - (0)661 / 6000 - 1116208 E-Mail: Pet...@ed... -----Ursprüngliche Nachricht----- Von: Daniele Renda <dan...@gm...> Gesendet: Die 17 Mai 2016 13:59 An: ast...@li... Betreff: Re: [Asterisk-java-users] Add SipHeader using OriginateAction I have to add P-Asserted-Identity to sip header: exten =>_X,n,SipAddHeader(P-Asserted-Identity: <sip:${CALLERID(NUM)}>) Unfortunately this line should be added _before_ the DIAL action. Thanks 2016-05-17 13:36 GMT+02:00 Peter Katzmann <pet...@ed... <mailto:pet...@ed...> >: What do you mean exactly with set sip header ? i.A. P. Katzmann Senior Software Engineer EDAG Engineering GmbH Steinauer Straße 20 36100 Petersberg Tel.: +49 - (0)661 / 6000 - 9444 Fax: +49 - (0)661 / 6000 - 1116208 E-Mail: Pet...@ed... <mailto:Pet...@ed...> -----Ursprüngliche Nachricht----- Von: Daniele Renda <dan...@gm... <mailto:dan...@gm...> > Gesendet: Die 17 Mai 2016 12:37 An: ast...@li... <mailto:ast...@li...> Betreff: [Asterisk-java-users] Add SipHeader using OriginateAction Hi, I'm using a OriginateAction to make a call using Asterisk Java. All works fine but I see there is no way to set the Sip Header. There is a way to do this without the need to create a locale channel? Thanks very much -- Daniele Renda ------------------------------------------------------------------------------ Mobile security can be enabling, not merely restricting. Employees who bring their own devices (BYOD) to work are irked by the imposition of MDM restrictions. Mobile Device Manager Plus allows you to control only the apps on BYO-devices by containerizing them, leaving personal data untouched! https://ad.doubleclick.net/ddm/clk/304595813;131938128;j _______________________________________________ Asterisk-java-users mailing list Ast...@li... <mailto:Ast...@li...> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users Mehr News und Informationen aus der Welt der EDAG Group können Sie in unserem interaktiven EMAG-Magazin <http://www.edag.de/de/services/corporate-services/newsletter.html> nachlesen! More news and information about the EDAG Group can be found in our interactive EMAG-Magazine <http://www.edag.de/en/services/corporate-services/newsletter.html> ! -------------------------------- Registergericht/Court of jurisdiction: Amtsgericht Wiesbaden, HRB 28257 USt.-Id: DE 292 939 239 Geschäftsführung / Board of Managing Directors: Jörg Ohlsen (CEO), Harald Poeschke (COO), Jürgen Vogt (CFO) Aufsichtsratsvorsitzender / Chairman of the Supervisory Board: Thomas Eichelmann Hauptsitz/Headquarters: EDAG Engineering GmbH, Kreuzberger Ring 40, 65205 Wiesbaden Deutschland/Germany / www.edag.com <http://www.edag.com> This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ------------------------------------------------------------------------------ Mobile security can be enabling, not merely restricting. Employees who bring their own devices (BYOD) to work are irked by the imposition of MDM restrictions. Mobile Device Manager Plus allows you to control only the apps on BYO-devices by containerizing them, leaving personal data untouched! https://ad.doubleclick.net/ddm/clk/304595813;131938128;j _______________________________________________ Asterisk-java-users mailing list Ast...@li... <mailto:Ast...@li...> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users -- Daniele Renda ------------------------------------------------------------------------------ Mobile security can be enabling, not merely restricting. Employees who bring their own devices (BYOD) to work are irked by the imposition of MDM restrictions. Mobile Device Manager Plus allows you to control only the apps on BYO-devices by containerizing them, leaving personal data untouched! https://ad.doubleclick.net/ddm/clk/304595813;131938128;j _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users Mehr News und Informationen aus der Welt der EDAG Group können Sie in unserem interaktiven EMAG-Magazin (http://www.edag.de/de/services/corporate-services/newsletter.html) nachlesen! More news and information about the EDAG Group can be found in our interactive EMAG-Magazine (http://www.edag.de/en/services/corporate-services/newsletter.html)! ------------------------------------------------------------------------------ Registergericht/Court of jurisdiction: Amtsgericht Wiesbaden, HRB 28257 USt.-Id: DE 292 939 239 Geschäftsführung / Board of Managing Directors: Jörg Ohlsen (CEO), Harald Poeschke (COO), Jürgen Vogt (CFO) Aufsichtsratsvorsitzender / Chairman of the Supervisory Board: Thomas Eichelmann Hauptsitz/Headquarters: EDAG Engineering GmbH, Kreuzberger Ring 40, 65205 Wiesbaden Deutschland/Germany / www.edag.de This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. |
From: Daniele R. <dan...@gm...> - 2016-05-17 13:11:03
|
Yeah, you're right. I replaced ${CALLERID(NUM)} with the value of the called id but your suggestion works well! Thanks very much! 2016-05-17 14:19 GMT+02:00 Peter Katzmann <pet...@ed...>: > originateAction.setVariable("SIPADDHEADER", "P-Asserted-Identity: > <sip:${CALLERID(NUM)}>"); > > > Should do it..... > > > > i.A. P. Katzmann > Senior Software Engineer > > EDAG Engineering GmbH > Steinauer Straße 20 > 36100 Petersberg > > Tel.: +49 - (0)661 / 6000 - 9444 > Fax: +49 - (0)661 / 6000 - 1116208 > E-Mail: Pet...@ed... > > -----Ursprüngliche Nachricht----- > *Von:* Daniele Renda <dan...@gm...> > *Gesendet:* Die 17 Mai 2016 13:59 > *An:* ast...@li... > *Betreff:* Re: [Asterisk-java-users] Add SipHeader using OriginateAction > > I have to add P-Asserted-Identity to sip header: > > exten =>_X,n,SipAddHeader(P-Asserted-Identity: <sip:${CALLERID(NUM)}>) > > Unfortunately this line should be added _before_ the DIAL action. > > Thanks > > 2016-05-17 13:36 GMT+02:00 Peter Katzmann <pet...@ed...>: > >> What do you mean exactly with set sip header ? >> >> >> >> i.A. P. Katzmann >> Senior Software Engineer >> >> EDAG Engineering GmbH >> Steinauer Straße 20 >> 36100 Petersberg >> >> Tel.: +49 - (0)661 / 6000 - 9444 >> Fax: +49 - (0)661 / 6000 - 1116208 >> E-Mail: Pet...@ed... >> >> -----Ursprüngliche Nachricht----- >> *Von:* Daniele Renda <dan...@gm...> >> *Gesendet:* Die 17 Mai 2016 12:37 >> *An:* ast...@li... >> *Betreff:* [Asterisk-java-users] Add SipHeader using OriginateAction >> >> Hi, >> I'm using a OriginateAction to make a call using Asterisk Java. All works >> fine but I see there is no way to set the Sip Header. >> >> There is a way to do this without the need to create a locale channel? >> >> Thanks very much >> >> -- >> Daniele Renda >> >> ------------------------------------------------------------------------------ >> >> Mobile security can be enabling, not merely restricting. Employees who >> >> bring their own devices (BYOD) to work are irked by the imposition of MDM >> >> restrictions. Mobile Device Manager Plus allows you to control only the >> >> apps on BYO-devices by containerizing them, leaving personal data untouched! >> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j >> >> _______________________________________________ >> >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> >> >> >> Mehr News und Informationen aus der Welt der EDAG Group können Sie in >> unserem interaktiven EMAG-Magazin >> <http://www.edag.de/de/services/corporate-services/newsletter.html> >> nachlesen! >> More news and information about the EDAG Group can be found in our >> interactive EMAG-Magazine >> <http://www.edag.de/en/services/corporate-services/newsletter.html>! >> ------------------------------ >> >> >> Registergericht/Court of jurisdiction: Amtsgericht Wiesbaden, HRB 28257 >> USt.-Id: DE 292 939 239 >> Geschäftsführung / Board of Managing Directors: Jörg Ohlsen (CEO), Harald >> Poeschke (COO), Jürgen Vogt (CFO) >> Aufsichtsratsvorsitzender / Chairman of the Supervisory Board: Thomas >> Eichelmann >> Hauptsitz/Headquarters: EDAG Engineering GmbH, Kreuzberger Ring 40, 65205 >> Wiesbaden Deutschland/Germany / www.edag.com >> >> This e-mail may contain confidential and/or privileged information. If >> you are not the intended recipient (or have received this e-mail in error) >> please notify the sender immediately and destroy this e-mail. Any >> unauthorised copying, disclosure or distribution of the material in this >> e-mail is strictly forbidden. >> >> >> >> >> ------------------------------------------------------------------------------ >> Mobile security can be enabling, not merely restricting. Employees who >> bring their own devices (BYOD) to work are irked by the imposition of MDM >> restrictions. Mobile Device Manager Plus allows you to control only the >> apps on BYO-devices by containerizing them, leaving personal data >> untouched! >> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> >> > > > -- > Daniele Renda > > ------------------------------------------------------------------------------ > > Mobile security can be enabling, not merely restricting. Employees who > > bring their own devices (BYOD) to work are irked by the imposition of MDM > > restrictions. Mobile Device Manager Plus allows you to control only the > > apps on BYO-devices by containerizing them, leaving personal data untouched! > https://ad.doubleclick.net/ddm/clk/304595813;131938128;j > > _______________________________________________ > > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > Mehr News und Informationen aus der Welt der EDAG Group können Sie in > unserem interaktiven EMAG-Magazin > <http://www.edag.de/de/services/corporate-services/newsletter.html> > nachlesen! > More news and information about the EDAG Group can be found in our > interactive EMAG-Magazine > <http://www.edag.de/en/services/corporate-services/newsletter.html>! > ------------------------------ > > > Registergericht/Court of jurisdiction: Amtsgericht Wiesbaden, HRB 28257 > USt.-Id: DE 292 939 239 > Geschäftsführung / Board of Managing Directors: Jörg Ohlsen (CEO), Harald > Poeschke (COO), Jürgen Vogt (CFO) > Aufsichtsratsvorsitzender / Chairman of the Supervisory Board: Thomas > Eichelmann > Hauptsitz/Headquarters: EDAG Engineering GmbH, Kreuzberger Ring 40, 65205 > Wiesbaden Deutschland/Germany / www.edag.com > > This e-mail may contain confidential and/or privileged information. If you > are not the intended recipient (or have received this e-mail in error) > please notify the sender immediately and destroy this e-mail. Any > unauthorised copying, disclosure or distribution of the material in this > e-mail is strictly forbidden. > > > > > ------------------------------------------------------------------------------ > Mobile security can be enabling, not merely restricting. Employees who > bring their own devices (BYOD) to work are irked by the imposition of MDM > restrictions. Mobile Device Manager Plus allows you to control only the > apps on BYO-devices by containerizing them, leaving personal data > untouched! > https://ad.doubleclick.net/ddm/clk/304595813;131938128;j > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > -- Daniele Renda |