[Freeswitch-users] Intercom
Brian West
brian.west at mac.com
Tue Mar 11 15:03:35 EDT 2008
The Alert-Info header you posted is invalid, But that looks like
you're doing it for Polycom for what I can tell. sip_auto_answer=true
Already covers the polycom auto answer case.
<extension name="extension-intercom">
<!-- <condition field="${sip_to_params}" expression="intercom
\=true"/> -->
<condition field="destination_number" expression="^8(10[01]
[0-9])$">
<action application="set" data="dialed_ext=$1"/>
<action application="export"><![CDATA[alert_info=<sip:$$
{domain}>;Ring;Answer]]></action>
<action application="export"><![CDATA[sip_h_Call-Info=<sip:$$
{domain}>;answer-after=0]]></action>
<action application="export"
data="sip_invite_params=intercom=true"/>
<action application="export" data="sip_auto_answer=true"/>
<action application="bridge" data="user/${dialed_ext}@$$
{domain}"/>
</condition>
</extension>
Results in:
INVITE sip:1006 at 10.0.1.243:5060;line=3qv5fmo7;intercom=true SIP/2.0
Via: SIP/2.0/UDP 10.0.1.250;rport;branch=z9hG4bK2aNeH73tmDgXr
Max-Forwards: 69
From: "Extension 1005" <sip:1005 at 10.0.1.250>;tag=DBBXpKetaF30g
To: <sip:1006 at 10.0.1.243:5060>;line=3qv5fmo7;intercom=true
Call-ID: 8d4cb73c-6a40-122b-69b5-001a923f6a0f
CSeq: 96512741 INVITE
Contact: <sip:mod_sofia at 10.0.1.250:5060>
Call-Info: <sip:10.0.1.250>;answer-after=0
User-Agent: FreeSWITCH-mod_sofia/1.0.pre3-7859
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE,
NOTIFY, REFER, UPDATE, REGISTER, INFO
Supported: 100rel, precondition, timer
Min-SE: 120
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 391
Alert-Info: <sip:10.0.1.250>;Ring;Answer
Remote-Party-ID: "Extension 1005" <sip:
1005 at 10.0.1.250>;screen=yes;privacy=off
v=0
o=FreeSWITCH 8808205667775464136 7669511189123673614 IN IP4 10.0.1.250
s=FreeSWITCH
c=IN IP4 10.0.1.250
t=0 0
a=sendrecv
m=audio 17162 RTP/AVP 9 0 8 3 101 13
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=rtpmap:13 CN/8000
a=ptime:20
m=video 26898 RTP/AVP 34
a=rtpmap:34 H263/90000
/b
On Mar 6, 2008, at 8:21 PM, andrew wrote:
> Alert-Info: Ring Answer
More information about the Freeswitch-users
mailing list