If you want to use the NOTIFY approach. Like i said in my first answer you need to implement the proper call back in pjsip it it is not already there, to parse the NOTIFY and do whatever you want in this case the AA. The way i did this back in pjsip 1.0.3 was 1)add your callback into the cb structure from pjsua_config. say on_incoming_notify then you intialized when you create the user agent to your call back userAgentConfig.cb.on_notify = yourcallback; then you need to add the code in the stack i would follow on_incoming_call and do the same.... Ahh, dont forget to send a 200OK for the NOTIFY in pjsip to stop retransmissions. Cheers On Nov 8, 2010, at 10:13 AM, John Poseidon wrote: > Hi, > > First of all - Thanks for your answers, > I'm using a Yealink T28 phones and I have a desktop application that can make, hangup and answer calls is not a softphone - just a simple "phone management" application, when I press the answer button on my application the Yealink receive the Notify .. event: talk SIP request and automatically answers the call, > my intention is to do the same with my pjsip based softphone application instead of the Yealink phone. > > > Test 1 scenario : > Yealink login with user 3000 > myAppli login with the same user 3000 > > Calling 3000 ( from other phone or softphone), Yealink rings, myAppli also shows incoming call popup with the options : Answer, Reject > if a press the answer button Yealink automatically answers the call. > > Test 2 scenario : > mySoftphone login with user 3000 > myAppli login with the same user 3000 > > Calling 3000 ( from other phone or softphone), mySoftphone rings, myAppli also shows incoming call popup with the options : Answer, Reject > if a press the answer button in the PJSIP log file I see the incoming Notify event:talk request but nothing happens - mySoftphone continue ringing. > > > > Best regards > > > > > On Mon, Nov 8, 2010 at 3:17 PM, Alejandro Orellana <alejandro.orellana at savantav.com> wrote: > I agree . > you can add for example something like: > > Alert-Info : answer-after=0 ,or > Call-Info: <sip:domain>; answer-after=0 > > to the invite and you can use these to auto answer. > I use SNOM phones and that is the way i have implemented say , paging and intercom features. > On Nov 8, 2010, at 9:00 AM, Klaus Darilion wrote: > >> >> >> Am 08.11.2010 14:14, schrieb John Poseidon: >>> Hi, >>> >>> I'm trying to implement an invited auto answer function. >>> The SIP server sends NOTIFY *Event: talk* requests,what I need is to >>> create a callback for the incoming notify requests to catch the talk >>> event ( I'm not sure is one already exists for that purpose ) >> >> Basically, there must not be a NOTIFY without subscription. Therefore, if there is a function for generation of subscriptions, then this function should also offer the callback. >> >> IMO a NOTIFY is too complicated for auto-answer. You can do it much more easier with adding a certain attribute (e.g. a header) to the INVITE. This is for example what SNOM does. Just google for it, eg: >> >> http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+page >> http://asterisk.snom.com/index.php/Asterisk_1.4/Intercom >> http://www.voip-info.org/wiki/view/Polycom+auto-answer+config >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip at lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > ------ > Alejandro Orellana > Savant Systems, LLC > 770 Main Street > Osterville, Ma. 02655 > (508) 683-2547 (W) > (508) 683-2647 (F) > Alejandro.Orellana at savantav.com > > Statement of Confidentiality > The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. This transmission is sent in trust, and the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or at 508.683-2500 and delete this message and its attachments, if any. > > > > > Statement of Confidentiality > The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. This transmission is sent in trust, and the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or at 508.683.2500 and delete this message and its attachments, if any. > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org ------ Alejandro Orellana Savant Systems, LLC 770 Main Street Osterville, Ma. 02655 (508) 683-2547 (W) (508) 683-2647 (F) Alejandro.Orellana at savantav.com Statement of Confidentiality The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. This transmission is sent in trust, and the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or at 508.683-2500 and delete this message and its attachments, if any. Statement of Confidentiality The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. This transmission is sent in trust, and the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or at 508.683.2500 and delete this message and its attachments, if any. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20101108/11f0a0ff/attachment.html>