Using PJSIP_HEADER for auto-answer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings,
I am attempting to use PJSIP_HEADER to force an auto-answer on a Linksys SPA942 hardphone. I am not having any luck. I've tried a number of permutations using Call-Info (and Alert-Info, even though I don't think that will work) but I am not having any luck. I am using Asterisk 13.4.0.
In my extensions.conf file, I have tried to do this as follows:
[pjsip-auto-answer-header]exten => addheader,1,Set(PJSIP_HEADER(add,Call-Info)=\;answer-after=0)
; doing some stuff to set up the PAGE_LIST
same => n,Page(${PAGE_LIST},,b(pjsip-auto-answer-header^addheader^1));
I got this from doing some web searches but I don't see any evidence that this is working. Maybe I am on the wrong path?
So, I have two questions:1) Is this the correct way to use PJSIP_HEADER? I know for certain that the following works when using SIP: same => n,SIPAddHeader(Call-Info:\;answer-after=0)
I want to accomplish the same thing using PJSIP instead, but so far I haven't figured it out.
2) Will I be able to see the added PJSIP header (assuming I do it right) on Wireshark? I have been checking the INVITE message from the Asterisk server but see no evidence that my added SIP header is ever included. 
Thanks for your help!
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20150715/d3ae0e1b/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux