<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Nevermind, this fixed it:<br>
<br>
&lt;action application=&quot;conference_set_auto_outcall&quot; data=&quot;{alert_info=sipXpage}sofia/custom_dialplan/7001@sipxpbx.bc.local;sipx-noroute=VoiceMail;sipx-userforward=false&quot;/&gt;<br>
<br>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF682015"><font color="#000000" size="2" face="Tahoma"><b>From:</b> freeswitch-users-bounces@lists.freeswitch.org [freeswitch-users-bounces@lists.freeswitch.org] on behalf of Josh M. Patten [jpatten@co.brazos.tx.us]<br>
<b>Sent:</b> Saturday, May 07, 2011 1:18 AM<br>
<b>To:</b> freeswitch-users@lists.freeswitch.org<br>
<b>Subject:</b> [Freeswitch-users] Add Call-Info header<br>
</font><br>
</div>
<div></div>
<div>
<div style="direction: ltr; font-family: Tahoma; color: rgb(0, 0, 0); font-size: 10pt;">
Hi there<br>
<br>
I'm trying to add add a Call-Info parameter to perform an auto-answer for phones that are not directly registered to FreeSWITCH (they are registered on a sipXecs server). None of the normal methods of auto-answer seem to work so I am attempting to copy the
 method that sipXecs uses to force phones to auto-answer. Upon analysis of how sipXecs performs an auto-answer, I find the following information in the SIP headers:<br>
<br>
Call-Info: &lt;sip:7012@sipxpbx.bc.local;sipx-noroute=VoiceMail;sipx-userforward=false&gt;;answer-after=0<br>
<br>
The key here is the answer-after=0 part. What I've done in my dialplan is to add the following (In this example 7003 is initiating a call to a conference bridge which is then outcalling 7001):<br>
<br>
&lt;action application=&quot;set&quot; data=&quot;sip_h_Call-Info=answer-after=0&quot;/&gt;<br>
&lt;action application=&quot;conference_set_auto_outcall&quot; data=&quot;sofia/custom_dialplan/7001@sipxpbx.bc.local;sipx-noroute=VoiceMail;sipx-userforward=false&quot;/&gt;<br>
<br>
However in analysis of the SIP messages I never see any Call-Info header being set, though FreeSWITCH processes the entry:<br>
EXECUTE sofia/custom_dialplan/7003@sipxpbx.bc.local set(sip_h_Call-Info=answer-after=0)<br>
2011-05-07 00:56:46.563506 [DEBUG] mod_dptools.c:1059 sofia/custom_dialplan/7003@sipxpbx.bc.local SET [sip_h_Call-Info]=[answer-after=0]<br>
<br>
However as you can see in the following SIP message, the header just isn't there:<br>
<br>
&nbsp;&nbsp; ------------------------------------------------------------------------<br>
&nbsp;&nbsp; INVITE sip:7001@sipxpbx.bc.local;sipx-noroute=VoiceMail;sipx-userforward=false SIP/2.0<br>
&nbsp;&nbsp; Via: SIP/2.0/UDP 10.200.129.102;rport;branch=z9hG4bK7aF5c90Dmecce<br>
&nbsp;&nbsp; Max-Forwards: 70<br>
&nbsp;&nbsp; From: &quot;FreeSWITCH&quot; &lt;sip:0000000000@10.200.129.102&gt;;tag=D3Q2t45cZvcar<br>
&nbsp;&nbsp; To: &lt;sip:7001@sipxpbx.bc.local;sipx-noroute=VoiceMail;sipx-userforward=false&gt;<br>
&nbsp;&nbsp; Call-ID: 308e7013-f311-122e-448b-463bb5d10d94<br>
&nbsp;&nbsp; CSeq: 12037743 INVITE<br>
&nbsp;&nbsp; Contact: &lt;sip:mod_sofia@10.200.129.102:5060&gt;<br>
&nbsp;&nbsp; User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-bfd0ba9 2011-03-07 13-02-41 -0600<br>
&nbsp;&nbsp; Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE<br>
&nbsp;&nbsp; Supported: timer, precondition, path, replaces<br>
&nbsp;&nbsp; Allow-Events: talk, hold, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer<br>
&nbsp;&nbsp; Content-Type: application/sdp<br>
&nbsp;&nbsp; Content-Disposition: session<br>
&nbsp;&nbsp; Content-Length: 239<br>
&nbsp;&nbsp; X-FS-Support: update_display<br>
&nbsp;&nbsp; Remote-Party-ID: &quot;FreeSWITCH&quot; &lt;sip:0000000000@10.200.129.102&gt;;party=calling;screen=yes;privacy=off<br>
<br>
&nbsp;&nbsp; v=0<br>
&nbsp;&nbsp; o=FreeSWITCH 1304728354 1304728355 IN IP4 10.200.129.102<br>
&nbsp;&nbsp; s=FreeSWITCH<br>
&nbsp;&nbsp; c=IN IP4 10.200.129.102<br>
&nbsp;&nbsp; t=0 0<br>
&nbsp;&nbsp; m=audio 19452 RTP/AVP 9 0 8 98 10 101 13<br>
&nbsp;&nbsp; a=rtpmap:98 SPEEX/8000<br>
&nbsp;&nbsp; a=rtpmap:101 telephone-event/8000<br>
&nbsp;&nbsp; a=fmtp:101 0-16<br>
&nbsp;&nbsp; a=ptime:20<br>
&nbsp;&nbsp; ------------------------------------------------------------------------<br>
<br>
Thanks for your help :-)<br>
<br>
</div>
</div>
</div>
</div>
</body>
</html>