At the moment i have such configuration mostly in Twilio environment.
The sip trunk seems to be properly configured between Twilio and Asterisk - origination sip URI like sip:77.79.xxx.yyy - i have number associated with this trunk 48123455555
When i call directly 48123455555 i am connected with Asterisk extension.
What i want to achieve is to forward calls incoming to my others numbers in Twilio to 48123455555 so calls would be answered on external asterisks, but i need to send custom parameters in sip header.
I've tried to set up twiMLbean on my numbers (48123456789 48123456788 48123456787)
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Dial>
<Sip>sip:[email protected]?X-customParameter=test1;</Sip>
</Dial>
</Response>
Unfortunately i am disconnected.
Any suggestion how this TwiML bin should looks like to forward calls from PSTN to asterisk using this sip trunk?
TIA Tomek
sip:[email protected]?customParameter=test1
it will change it to an "X-customParameter" header. You should be able to see what is passed in your Twilio console logs – Andy