Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] CEL for attented transfer


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
jd.girard at sysnux.pf
Guest





PostPosted: Mon Nov 18, 2013 12:04 am    Post subject: [asterisk-users] CEL for attented transfer Reply with quote

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,

I'm trying to use CEL to display channel information in real time. It
works fine for simple calls, blind transfers, or SIP attended transfers
(initiated from the SIP phone). My problem is for Asterisk attended
transfers (atxfer as configured in features.conf).

The scenario is:
. phone 107 calls phone 100,
. 100 dials the atxfer code,
. 107 is on hold, and 100 hears the transfer message,
. 100 dials phone 103,
. 103 answers,
. 100 hangups,
. 107 and 103 are connected,
. 107 hangups.

CEL is configured with apps=all and events=ALL, and events are stored in
a database via cel_pgsql.

This is the list of events in the database for this call:

eventtype | channame | peer
-
-----------------+--------------------------------+-------------------------------
CHAN_START | SIP/107-0274 |
CHAN_START | SIP/100-0275 |
ANSWER | SIP/100-0275 |
ANSWER | SIP/107-0274 |
BRIDGE_START | SIP/107-0274 | SIP/100-0275
CHAN_START | Local/103@100-0042;1 |
CHAN_START | Local/103@100-0042;2 |
CHAN_START | SIP/103-0276 |
ANSWER | SIP/103-0276 |
ANSWER | Local/103@100-0042;2 |
BRIDGE_START | Local/103@100-0042;2 | SIP/103-0276
ANSWER | Local/103@100-0042;1 |
BRIDGE_START | SIP/100-0275 | Local/103@100-0042;1
BRIDGE_END | SIP/100-0275 | Local/103@100-0042;1
ATTENDEDTRANSFER | SIP/107-0274 | Local/103@100-0042;1
CHAN_START | Transfered/SIP/107-0274 |
BRIDGE_END | Transfered/SIP/107-0274<ZOMBIE>| SIP/100-0275
BRIDGE_START | SIP/107-0274 | Local/103@100-0042;1
HANGUP | SIP/100-0275 |
CHAN_END | SIP/100-0275 |
HANGUP | Transfered/SIP/107-0274<ZOMBIE>|
CHAN_END | Transfered/SIP/107-0274<ZOMBIE>|
BRIDGE_END | SIP/107-0274 | Local/103@100-0042;1
HANGUP | Local/103@100-0042;1 |
CHAN_END | Local/103@100-0042;1 |
HANGUP | SIP/107-0274 |
CHAN_END | SIP/107-0274 |
BRIDGE_END | Local/103@100-0042;2 | SIP/103-0276
HANGUP | SIP/103-0276 |
CHAN_END | SIP/103-0276 |
HANGUP | Local/103@100-0042;2 |
CHAN_END | Local/103@100-0042;2 |
LINKEDID_END | Local/103@100-0042;2 |
(33 lignes)

How should these events be interpreted?


Asterisk version is 11.6.0.


Thanks,
- --
Jean-Denis Girard

SysNux Systèmes Linux en Polynésie française
http://www.sysnux.pf/ Tél: +689 50 10 40 / GSM: +689 79 75 27
-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAlKJn7EACgkQuu7Rv+oOo/gM+wCeMuUit/qQDBH3ymnxkngZAPUs
FKUAn3wYVXKqtyd/xEZQM5u4tVqAwyZ9
=6SQH
-----END PGP SIGNATURE-----

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
jd.girard at sysnux.pf
Guest





PostPosted: Mon Nov 18, 2013 11:35 pm    Post subject: [asterisk-users] CEL for attented transfer Reply with quote

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nobody, really?


Thanks,
- --
Jean-Denis Girard

SysNux Systèmes Linux en Polynésie française
http://www.sysnux.pf/ Tél: +689 50 10 40 / GSM: +689 79 75 27

Le 17/11/2013 19:03, Jean-Denis Girard a écrit :
Quote:
Hi list,

I'm trying to use CEL to display channel information in real time. It
works fine for simple calls, blind transfers, or SIP attended transfers
(initiated from the SIP phone). My problem is for Asterisk attended
transfers (atxfer as configured in features.conf).

The scenario is:
. phone 107 calls phone 100,
. 100 dials the atxfer code,
. 107 is on hold, and 100 hears the transfer message,
. 100 dials phone 103,
. 103 answers,
. 100 hangups,
. 107 and 103 are connected,
. 107 hangups.

CEL is configured with apps=all and events=ALL, and events are stored in
a database via cel_pgsql.

This is the list of events in the database for this call:

eventtype | channame | peer
-
-----------------+--------------------------------+-------------------------------
CHAN_START | SIP/107-0274 |
CHAN_START | SIP/100-0275 |
ANSWER | SIP/100-0275 |
ANSWER | SIP/107-0274 |
BRIDGE_START | SIP/107-0274 | SIP/100-0275
CHAN_START | Local/103@100-0042;1 |
CHAN_START | Local/103@100-0042;2 |
CHAN_START | SIP/103-0276 |
ANSWER | SIP/103-0276 |
ANSWER | Local/103@100-0042;2 |
BRIDGE_START | Local/103@100-0042;2 | SIP/103-0276
ANSWER | Local/103@100-0042;1 |
BRIDGE_START | SIP/100-0275 | Local/103@100-0042;1
BRIDGE_END | SIP/100-0275 | Local/103@100-0042;1
ATTENDEDTRANSFER | SIP/107-0274 | Local/103@100-0042;1
CHAN_START | Transfered/SIP/107-0274 |
BRIDGE_END | Transfered/SIP/107-0274<ZOMBIE>| SIP/100-0275
BRIDGE_START | SIP/107-0274 | Local/103@100-0042;1
HANGUP | SIP/100-0275 |
CHAN_END | SIP/100-0275 |
HANGUP | Transfered/SIP/107-0274<ZOMBIE>|
CHAN_END | Transfered/SIP/107-0274<ZOMBIE>|
BRIDGE_END | SIP/107-0274 | Local/103@100-0042;1
HANGUP | Local/103@100-0042;1 |
CHAN_END | Local/103@100-0042;1 |
HANGUP | SIP/107-0274 |
CHAN_END | SIP/107-0274 |
BRIDGE_END | Local/103@100-0042;2 | SIP/103-0276
HANGUP | SIP/103-0276 |
CHAN_END | SIP/103-0276 |
HANGUP | Local/103@100-0042;2 |
CHAN_END | Local/103@100-0042;2 |
LINKEDID_END | Local/103@100-0042;2 |
(33 lignes)

How should these events be interpreted?


Asterisk version is 11.6.0.


Thanks,

-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAlKK6p0ACgkQuu7Rv+oOo/heAACeN0eMR1qwRLcdV+Tsgn9fA+6c
RKcAn246hmNUU2dxivPFEziueHYRTWcS
=q196
-----END PGP SIGNATURE-----

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
jairomolinajr at gmail...
Guest





PostPosted: Tue Nov 19, 2013 6:37 am    Post subject: [asterisk-users] CEL for attented transfer Reply with quote

Hi Jean, you mean what each event indicates? As this link explain?

https://wiki.asterisk.org/wiki/display/AST/CEL+Events+and+Fields






2013/11/19 Jean-Denis Girard <jd.girard@sysnux.pf (jd.girard@sysnux.pf)>
Quote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Nobody, really?


Thanks,
- --
Jean-Denis Girard

SysNux                  Systèmes  Linux  en Polynésie française
http://www.sysnux.pf/   Tél: [url=tel:%2B689%2050%2010%2040]+689 50 10 40[/url] / GSM: [url=tel:%2B689%2079%2075%2027]+689 79 75 27[/url]


Le 17/11/2013 19:03, Jean-Denis Girard a écrit :
Quote:
Hi list,

I'm trying to use CEL to display channel information in real time. It
works fine for simple calls, blind transfers, or SIP attended transfers
(initiated from the SIP phone). My problem is for Asterisk attended
transfers (atxfer as configured in features.conf).

The scenario is:
 . phone 107 calls phone 100,
 . 100 dials the atxfer code,
 . 107 is on hold, and 100 hears the transfer message,
 . 100 dials phone 103,
 . 103 answers,
 . 100 hangups,
 . 107 and 103 are connected,
 . 107 hangups.

CEL is configured with apps=all and events=ALL, and events are stored in
a database via cel_pgsql.

This is the list of events in the database for this call:

   eventtype     |            channame            | peer
-
-----------------+--------------------------------+-------------------------------
CHAN_START       | SIP/107-0274                   |
CHAN_START       | SIP/100-0275                   |
ANSWER           | SIP/100-0275                   |
ANSWER           | SIP/107-0274                   |
BRIDGE_START     | SIP/107-0274                   | SIP/100-0275
CHAN_START       | Local/103@100-0042;1           |
CHAN_START       | Local/103@100-0042;2           |
CHAN_START       | SIP/103-0276                   |
ANSWER           | SIP/103-0276                   |
ANSWER           | Local/103@100-0042;2           |
BRIDGE_START     | Local/103@100-0042;2           | SIP/103-0276
ANSWER           | Local/103@100-0042;1           |
BRIDGE_START     | SIP/100-0275                   | Local/103@100-0042;1
BRIDGE_END       | SIP/100-0275                   | Local/103@100-0042;1
ATTENDEDTRANSFER | SIP/107-0274                   | Local/103@100-0042;1
CHAN_START       | Transfered/SIP/107-0274        |
BRIDGE_END       | Transfered/SIP/107-0274<ZOMBIE>| SIP/100-0275
BRIDGE_START     | SIP/107-0274                   | Local/103@100-0042;1
HANGUP           | SIP/100-0275                   |
CHAN_END         | SIP/100-0275                   |
HANGUP           | Transfered/SIP/107-0274<ZOMBIE>|
CHAN_END         | Transfered/SIP/107-0274<ZOMBIE>|
BRIDGE_END       | SIP/107-0274                   | Local/103@100-0042;1
HANGUP           | Local/103@100-0042;1           |
CHAN_END         | Local/103@100-0042;1           |
HANGUP           | SIP/107-0274                   |
CHAN_END         | SIP/107-0274                   |
BRIDGE_END       | Local/103@100-0042;2           | SIP/103-0276
HANGUP           | SIP/103-0276                   |
CHAN_END         | SIP/103-0276                   |
HANGUP           | Local/103@100-0042;2           |
CHAN_END         | Local/103@100-0042;2           |
LINKEDID_END     | Local/103@100-0042;2           |
(33 lignes)

How should these events be interpreted?


Asterisk version is 11.6.0.


Thanks,



-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAlKK6p0ACgkQuu7Rv+oOo/heAACeN0eMR1qwRLcdV+Tsgn9fA+6c
RKcAn246hmNUU2dxivPFEziueHYRTWcS
=q196
-----END PGP SIGNATURE-----

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Back to top
jd.girard at sysnux.pf
Guest





PostPosted: Tue Nov 19, 2013 11:04 am    Post subject: [asterisk-users] CEL for attented transfer Reply with quote

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Jairo,

Le 19/11/2013 01:36, Jairo a écrit :
Quote:
https://wiki.asterisk.org/wiki/display/AST/CEL+Events+and+Fields

Thanks for your reply, but I have read this page of the wiki, I know
what the fields mean.

What I don't understand is how the events in my example can be used to
determine 107 was attended transferred to 103 by 100.

Or I do know that Local/103@100-0042;1 and Local/103@100-0042;2 were
created by asterisk when SIP/100-0275 asked for atxfer?

How does the event ATTENDEDTRANSFER/ SIP/107-0274/ Local/103@100-0042;1
show that 107 is transferred to 103?


Thanks,
- --
Jean-Denis Girard

SysNux Systèmes Linux en Polynésie française
http://www.sysnux.pf/ Tél: +689 50 10 40 / GSM: +689 79 75 27
-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAlKLi74ACgkQuu7Rv+oOo/hbXQCfbznLU4gcYBlz2OTATRQxrZlv
0DoAoLLYF+ykKuQtRPusTsVOrk/BcQQI
=eO3S
-----END PGP SIGNATURE-----

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
jairomolinajr at gmail...
Guest





PostPosted: Wed Nov 20, 2013 12:16 pm    Post subject: [asterisk-users] CEL for attented transfer Reply with quote

Hi Jean.

I am not sure but believe the sequence of CEL events should be considered for a more detailed understanding of a call.


Replicating the case you described I got this CEL event and fields:


*************************** 17. row ***************************
         id: 27984
  eventtype: ATTENDEDTRANSFER
  eventtime: 2013-11-20 15:05:33
userdeftype:
   cid_name: Jairo desktop
    cid_num: 311
    cid_ani: 311
  cid_rdnis:
   cid_dnid: 310
      exten: 310
    context: entrada-canal
   channame: SIP/311-351096-0000048d
    appname: Dial
    appdata: SIP/310-777940,40,kKtT
   amaflags: 3
accountcode:
peeraccount:
   uniqueid: 1384967109.1184
   linkedid: 1384967109.1184
  userfield:
       peer: Local/321@entrada-canal-00000001;1



The 3 extensions can be found in the event. Does it help?



2013/11/19 Jean-Denis Girard <jd.girard@sysnux.pf (jd.girard@sysnux.pf)>
Quote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi Jairo,

Le 19/11/2013 01:36, Jairo a écrit :
Quote:
https://wiki.asterisk.org/wiki/display/AST/CEL+Events+and+Fields

Thanks for your reply, but I have read this page of the wiki, I know
what the fields mean.

What I don't understand is how the events in my example can be used to
determine 107 was attended transferred to 103 by 100.

Or I do know that Local/103@100-0042;1 and Local/103@100-0042;2 were
created by asterisk when SIP/100-0275 asked for atxfer?

How does the event ATTENDEDTRANSFER/ SIP/107-0274/ Local/103@100-0042;1
show that 107 is transferred to 103?


Thanks,
- --
Jean-Denis Girard

SysNux                  Systèmes  Linux  en Polynésie française
http://www.sysnux.pf/   Tél: [url=tel:%2B689%2050%2010%2040]+689 50 10 40[/url] / GSM: [url=tel:%2B689%2079%2075%2027]+689 79 75 27[/url]

-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAlKLi74ACgkQuu7Rv+oOo/hbXQCfbznLU4gcYBlz2OTATRQxrZlv
0DoAoLLYF+ykKuQtRPusTsVOrk/BcQQI
=eO3S
-----END PGP SIGNATURE-----

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Back to top
paul.belanger at polyb...
Guest





PostPosted: Wed Nov 20, 2013 2:04 pm    Post subject: [asterisk-users] CEL for attented transfer Reply with quote

On 13-11-19 11:03 AM, Jean-Denis Girard wrote:
Quote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Jairo,

Le 19/11/2013 01:36, Jairo a écrit :
Quote:
https://wiki.asterisk.org/wiki/display/AST/CEL+Events+and+Fields

Thanks for your reply, but I have read this page of the wiki, I know
what the fields mean.

Well, it is a way lot harder to figure out because you used
features.conf. Because of this, local channels are involved.

Quote:
What I don't understand is how the events in my example can be used to
determine 107 was attended transferred to 103 by 100.

Or I do know that Local/103@100-0042;1 and Local/103@100-0042;2 were
created by asterisk when SIP/100-0275 asked for atxfer?

How does the event ATTENDEDTRANSFER/ SIP/107-0274/ Local/103@100-0042;1
show that 107 is transferred to 103?

Specifically, you are going to have to track the channel IDs and look at
the sequence of events. Then make an educated guess about what is
happening.

--
Paul Belanger | PolyBeacon, Inc.
Jabber: paul.belanger@polybeacon.com | IRC: pabelanger (Freenode)
Github: https://github.com/pabelanger | Twitter:
https://twitter.com/pabelanger

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
jd.girard at sysnux.pf
Guest





PostPosted: Wed Nov 20, 2013 8:17 pm    Post subject: [asterisk-users] CEL for attented transfer Reply with quote

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Jairo,

Le 20/11/2013 07:15, Jairo a écrit :
Quote:
peer: Local/321@entrada-canal-00000001;1

How do you link Local/321@entrada-canal-00000001;1 to the real original
(physical) channel ?


Thanks,
- --
Jean-Denis Girard

SysNux Systèmes Linux en Polynésie française
http://www.sysnux.pf/ Tél: +689 50 10 40 / GSM: +689 79 75 27
-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAlKNXwoACgkQuu7Rv+oOo/iT+QCeIBPQZSr6urbiwUMiMZOzE5tJ
Mu0Anjp/v33dPi+CZtTnEQR1JbxlUS13
=rb3h
-----END PGP SIGNATURE-----

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
jd.girard at sysnux.pf
Guest





PostPosted: Wed Nov 20, 2013 10:08 pm    Post subject: [asterisk-users] CEL for attented transfer Reply with quote

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Paul,

Le 20/11/2013 09:04, Paul Belanger a écrit :
Quote:
Well, it is a way lot harder to figure out because you used
features.conf. Because of this, local channels are involved.

Right, but this is sometimes necessary, and it's an asterisk feature.

Quote:
Specifically, you are going to have to track the channel IDs and look at
the sequence of events. Then make an educated guess about what is
happening.

ok, but it could be so much easier (and reliable) if we had a CEL (or
AMI event) that tracks the requested atxfer, like the CLI debug message:

[Nov 20 13:09:28] DEBUG[12002][C-00000174]: features.c:2701
builtin_atxfer: Executing Attended Transfer SIP/CROcqu0s-000002b5,
SIP/ngqckJos-000002b6 (sense=2)

Or adding the physical channel in the extra field of the CEL when
CHAN_START event is fired for Local channels.


Thanks,
- --
Jean-Denis Girard

SysNux Systèmes Linux en Polynésie française
http://www.sysnux.pf/ Tél: +689 50 10 40 / GSM: +689 79 75 27
-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAlKNeQoACgkQuu7Rv+oOo/isFQCeMTifSJNZ4IKS469dQFIkb+ti
FNEAnR2pRTbNcCAIbOp5FS83/gGq1Fk9
=O7tw
-----END PGP SIGNATURE-----

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services