- Code: Select all
exten => 100,1,Dial(PJSIP/alice,,b(pagehandler^addheader^1))
[pagehandler]
exten => addheader,1,Set(PJSIP_HEADER(add,Alert-Info)=<ring-answer>)
That works fine, but what if we have multiple phones registered to the alice line and are using
- Code: Select all
exten => 100,1,Dial(${PJSIP_DIAL_CONTACTS(alice)},,b(pagehandler^addheader^1))
[pagehandler]
exten => addheader,1,Set(PJSIP_HEADER(add,Alert-Info)=<ring-answer>)
That will only intercom with one of the phones. Is it possible to break out the PJSIP_DIAL_CONTACTS to add the header to each one? If so, I'm just not seeing how to do this.