[Freeswitch-users] Behavior of deflect

Andy Spitzer woof at nortel.com
Thu Nov 20 12:33:13 PST 2008


Woof!

On Thu, 20 Nov 2008 15:14:52 -0500, Anthony Minessale <anthony.minessale at gmail.com> wrote:

> how were you calling the deflect the way that had no change?
> every time i tried it sofia has taken down the channel once it completed.

Hmm...

dialplan:
  <extension name="IVR">
    <condition field="destination_number" expression="^IVR$">
      <action application="socket" data="127.0.0.1:8084 async full"/>
    </condition>
  </extension>

Call from "207" to "IVR at ..."
Answer IVR via socket outbound.
Use "deflect" to redirect call to 206
Answer call on 206

socket outbound:
  nc -vl localhost 8084

  Connection from 127.0.0.1 port 8084 [tcp/*] accepted
  connect

  myevents

  sendmsg
  call-command: execute
  execute-app-name: answer

  Channel-Username: 207
  Channel-Dialplan: XML
  Channel-Caller-ID-Name: 207
  Channel-Caller-ID-Number: 207
  Channel-Network-Addr: 47.16.90.233
  Channel-Destination-Number: IVR
  Channel-Unique-ID: bed03a04-46b6-4adb-bf3d-e36fafd18504
  ...

  sendmsg
  call-command: execute
  execute-app-name: deflect
  execute-app-arg: sip:206 at woof.us.nortel.com 

  Content-Type: command/reply
  Reply-Text: +OK

  Content-Length: 1578
  Content-Type: text/event-plain

  Channel-State: CS_EXECUTE
  Channel-State-Number: 4
  Channel-Name: sofia/woof.us.nortel.com/207%40woof.us.nortel.com
  Unique-ID: bed03a04-46b6-4adb-bf3d-e36fafd18504
  ...
  Event-Name: CHANNEL_EXECUTE
  ...

  Content-Length: 1587
  Content-Type: text/event-plain

  Channel-State: CS_EXECUTE
  Channel-State-Number: 4
  Channel-Name: sofia/woof.us.nortel.com/207%40woof.us.nortel.com
  Unique-ID: bed03a04-46b6-4adb-bf3d-e36fafd18504
  ...
  Event-Name: CHANNEL_EXECUTE_COMPLETE

(socket just sits here until 207 hangs up)

SIP signalling looks fine, except for no BYE after the NOTIFY with the 200 OK fragment.


--Woof!




More information about the FreeSWITCH-users mailing list