[asterisk-users] Add SIP diversion header in originate from AMI?

Tobias Steen tobias.steen at s2.se
Fri Oct 7 10:03:04 CDT 2011


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111007/14846bcc/attachment.htm>


More information about the asterisk-users mailing list