July 2017
Intermediate to advanced
434 pages
12h 59m
English
Sometimes you need to pass variables to other SIP entities in your own or in remote networks. This is typically sought for accounting or authorization or operational purposes.
You can add arbitrary headers to FreeSWITCH generated SIP messages by setting or exporting channel variables which names begin with "sip_h_". If you are setting nonstandard SIP headers (you better not use standard headers) you can follow the popular convention of naming the header "X-Something", so your variable would be "sip_h_X-Something"
<extension name="bridge_test_05"> <condition field="destination_number" expression="^2912$"> <action application="set" data="sip_h_X-AccountCode=4321"/> <action application="bridge" ...
Read now
Unlock full access