[asterisk-users] Add SIP diversion header in originate from AMI?
Hello! I want to thank everyone who helped me out with tips for load balancing asterisk machines in a cluster. I have encountered a new problem that is related to SIP diversion headers in the INVITE. I make calls through the manager interface and now want to add a SIP-Diversion header that changes the CallerID of a number that is not available on the trunk, the CallerID to be visible externally is connected to an external customer service hired by another company. My question: How can I add this header in a originateaction call via AMI? Does the originated calls go through any context where I can add this header with dialplan functions like AddSipHeader() or is it possible to do this directly in the OriginateAction through AMI? Example from voip-info: [macro-diversion-header] exten = s,1,SIPAddHeader(Diversion: tel:+{ARG1}\;reason=user=busy\;screen=no\;privacy=off) Best regards Tobias -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Add SIP diversion header in originate from AMI?
Try run your outbound leg through a Local channel. -- This message was painstakingly thumbed out on my mobile, so apologies for brevity, errors, and general sloppiness. Alex Balashov - Principal Evariste Systems LLC 260 Peachtree Street NW Suite 2200 Atlanta, GA 30303 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/ On Oct 7, 2011, at 11:03 AM, Tobias Steen tobias.st...@s2.se wrote: Hello! I want to thank everyone who helped me out with tips for load balancing asterisk machines in a cluster. I have encountered a new problem that is related to SIP diversion headers in the INVITE. I make calls through the manager interface and now want to add a SIP-Diversion header that changes the CallerID of a number that is not available on the trunk, the CallerID to be visible externally is connected to an external customer service hired by another company. My question: How can I add this header in a originateaction call via AMI? Does the originated calls go through any context where I can add this header with dialplan functions like AddSipHeader() or is it possible to do this directly in the OriginateAction through AMI? Example from voip-info: [macro-diversion-header] exten = s,1,SIPAddHeader(Diversion: tel:+{ARG1}\;reason=user=busy\;screen=no\;privacy=off) Best regards Tobias -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Add SIP diversion header in originate from AMI?
You can dial a local channel which executes a dial plan that does what you want. Channel: Local/dial_number@cfmc_cdi_private This will use exten dial_number in the cfmc_cdi_private context. If you add something like this to the originate packet Variable: CfMC_Use_CID=5419712513 You can use ${CfMC_Use_CID} to get the value. -- Jim Dickenson mailto:dicken...@cfmc.com CfMC http://www.cfmc.com/ On Oct 7, 2011, at 8:03 AM, Tobias Steen wrote: Hello! I want to thank everyone who helped me out with tips for load balancing asterisk machines in a cluster. I have encountered a new problem that is related to SIP diversion headers in the INVITE. I make calls through the manager interface and now want to add a SIP-Diversion header that changes the CallerID of a number that is not available on the trunk, the CallerID to be visible externally is connected to an external customer service hired by another company. My question: How can I add this header in a originateaction call via AMI? Does the originated calls go through any context where I can add this header with dialplan functions like AddSipHeader() or is it possible to dothis directly in the OriginateAction through AMI? Example from voip-info: [macro-diversion-header] exten = s,1,SIPAddHeader(Diversion: tel:+{ARG1}\;reason=user=busy\;screen=no\;privacy=off) Best regards Tobias -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users