<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>
<action application="conference_set_auto_outcall" data="{alert_info=sipXpage}sofia/custom_dialplan/7001@sipxpbx.bc.local;sipx-noroute=VoiceMail;sipx-userforward=false"/><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: <sip:7012@sipxpbx.bc.local;sipx-noroute=VoiceMail;sipx-userforward=false>;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>
<action application="set" data="sip_h_Call-Info=answer-after=0"/><br>
<action application="conference_set_auto_outcall" data="sofia/custom_dialplan/7001@sipxpbx.bc.local;sipx-noroute=VoiceMail;sipx-userforward=false"/><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>
------------------------------------------------------------------------<br>
INVITE sip:7001@sipxpbx.bc.local;sipx-noroute=VoiceMail;sipx-userforward=false SIP/2.0<br>
Via: SIP/2.0/UDP 10.200.129.102;rport;branch=z9hG4bK7aF5c90Dmecce<br>
Max-Forwards: 70<br>
From: "FreeSWITCH" <sip:0000000000@10.200.129.102>;tag=D3Q2t45cZvcar<br>
To: <sip:7001@sipxpbx.bc.local;sipx-noroute=VoiceMail;sipx-userforward=false><br>
Call-ID: 308e7013-f311-122e-448b-463bb5d10d94<br>
CSeq: 12037743 INVITE<br>
Contact: <sip:mod_sofia@10.200.129.102:5060><br>
User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-bfd0ba9 2011-03-07 13-02-41 -0600<br>
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE<br>
Supported: timer, precondition, path, replaces<br>
Allow-Events: talk, hold, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer<br>
Content-Type: application/sdp<br>
Content-Disposition: session<br>
Content-Length: 239<br>
X-FS-Support: update_display<br>
Remote-Party-ID: "FreeSWITCH" <sip:0000000000@10.200.129.102>;party=calling;screen=yes;privacy=off<br>
<br>
v=0<br>
o=FreeSWITCH 1304728354 1304728355 IN IP4 10.200.129.102<br>
s=FreeSWITCH<br>
c=IN IP4 10.200.129.102<br>
t=0 0<br>
m=audio 19452 RTP/AVP 9 0 8 98 10 101 13<br>
a=rtpmap:98 SPEEX/8000<br>
a=rtpmap:101 telephone-event/8000<br>
a=fmtp:101 0-16<br>
a=ptime:20<br>
------------------------------------------------------------------------<br>
<br>
Thanks for your help :-)<br>
<br>
</div>
</div>
</div>
</div>
</body>
</html>