sam20008
11/07/2014, 23h02
bonjour j'ai du mal a faire cohabiter, vtiger 5.3 sur un serveur et asterisk 11.10 sur un serveur dedié le tout sur le meme reseau local.
sur la console le script : Asteriskclient.php fonctionne log ci dessous, j'ai tester un appel entre extension pour voir si le script tourne bien tout est ok mais quand je teste l'emission d'appel depuis vtiger prospect j'ai le popup qui me dit : Sélectionnez le poste pour composer le numéro
j'ai deja reverifier la config plusisurs fois et je ne vois rien de special si ququ'un à une idée.
en vous remerciant d'avance de tout aide.
root@serveur PBXManager]# php AsteriskClient.php
Connecting to asterisk server @ 2014-07-11 20:31:01
Connected successfully
Trying to login to asterisk
Logged in successfully to asterisk server
[root@serveur PBXManager]# php AsteriskClient.php
Connecting to asterisk server @ 2014-07-11 20:32:20
Connected successfully
Trying to login to asterisk
Logged in successfully to asterisk server
Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/1500
PeerStatus: Registered
Address: 192.168.2.10:5061
Event: Newchannel
Privilege: call,all
Channel: SIP/1000-00000001
ChannelState: 0
ChannelStateDesc: Down
CallerIDNum: 1000
CallerIDName: sipPC1
AccountCode:
Exten: 1500
Context: from-internal
Uniqueid: 1405110905.1
Event: Newstate
Privilege: call,all
Channel: SIP/1000-00000001
ChannelState: 4
ChannelStateDesc: Ring
CallerIDNum: 1000
CallerIDName: sipPC12
ConnectedLineNum:
ConnectedLineName:
Uniqueid: 1405110905.1
Event: NewCallerid
Privilege: call,all
Channel: SIP/1000-00000001
CallerIDNum: 1000
CallerIDName: sipPC12
Uniqueid: 1405110905.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: NewCallerid
Privilege: call,all
Channel: SIP/1000-00000001
CallerIDNum: 1000
CallerIDName: sipPC12
Uniqueid: 1405110905.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: NewCallerid
Privilege: call,all
Channel: SIP/1000-00000001
CallerIDNum: 1000
CallerIDName: sipPC12
Uniqueid: 1405110905.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newchannel
Privilege: call,all
Channel: SIP/1500-00000002
ChannelState: 0
ChannelStateDesc: Down
CallerIDNum: 1500
CallerIDName: sipPC1
AccountCode:
Exten:
Context: from-internal
Uniqueid: 1405110905.2
Event: Dial
Privilege: call,all
SubEvent: Begin
Channel: SIP/1000-00000001
Destination: SIP/1500-00000002
CallerIDNum: 1000
CallerIDName: sipPC12
ConnectedLineNum: 1500
ConnectedLineName: sipPC1
UniqueID: 1405110905.1
DestUniqueID: 1405110905.2
Dialstring: 1500
Event: ExtensionStatus
Privilege: call,all
Exten: 1500
Context: ext-local
Hint: SIP/1500&Custom:DND1500
Status: 8
Event: Newstate
Privilege: call,all
Channel: SIP/1500-00000002
ChannelState: 5
ChannelStateDesc: Ringing
CallerIDNum: 1500
CallerIDName: sipPC1
ConnectedLineNum: 1000
ConnectedLineName: sipPC12
Uniqueid: 1405110905.2
Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/1000
PeerStatus: Registered
Address: 192.168.2.18:49213
Event: ExtensionStatus
Privilege: call,all
Exten: 1000
Context: ext-local
Hint: SIP/1000&Custom:DND1000
Status: 1
Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/1000
PeerStatus: Reachable
Time: 95
Event: Newstate
Privilege: call,all
Channel: SIP/1500-00000002
ChannelState: 6
ChannelStateDesc: Up
CallerIDNum: 1500
CallerIDName: sipPC1
ConnectedLineNum: 1000
ConnectedLineName: Mmarane
Uniqueid: 1405110905.2
Event: Newstate
Privilege: call,all
Channel: SIP/1000-00000001
ChannelState: 6
ChannelStateDesc: Up
CallerIDNum: 1000
CallerIDName: sipPC12
ConnectedLineNum: 1500
ConnectedLineName: snegadi
Uniqueid: 1405110905.1
Event: NewAccountCode
Privilege: call,all
Channel: SIP/1500-00000002
Uniqueid: 1405110905.2
AccountCode:
OldAccountCode:
Event: Bridge
Privilege: call,all
Bridgestate: Link
Bridgetype: core
Channel1: SIP/1000-00000001
Channel2: SIP/1500-00000002
Uniqueid1: 1405110905.1
Uniqueid2: 1405110905.2
CallerID1: 1000
CallerID2: 1500
Event: ExtensionStatus
Privilege: call,all
Exten: 1500
Context: ext-local
Hint: SIP/1500&Custom:DND1500
Status: 1
Event: HangupRequest
Privilege: call,all
Channel: SIP/1000-00000001
Uniqueid: 1405110905.1
Event: Bridge
Privilege: call,all
Bridgestate: Unlink
Bridgetype: core
Channel1: SIP/1000-00000001
Channel2: SIP/1500-00000002
Uniqueid1: 1405110905.1
Uniqueid2: 1405110905.2
CallerID1: 1000
CallerID2: 1500
Event: ExtensionStatus
Privilege: call,all
Exten: 1500
Context: ext-local
Hint: SIP/1500&Custom:DND1500
Status: 0
Event: Hangup
Privilege: call,all
Channel: SIP/1500-00000002
Uniqueid: 1405110905.2
CallerIDNum: 1500
CallerIDName: sipPC1
ConnectedLineNum: 1000
ConnectedLineName: Mmarane
AccountCode:
Cause: 16
Cause-txt: Normal Clearing
Event: Dial
Privilege: call,all
SubEvent: End
Channel: SIP/1000-00000001
UniqueID: 1405110905.1
DialStatus: ANSWER
Event: SoftHangupRequest
Privilege: call,all
Channel: SIP/1000-00000001
Uniqueid: 1405110905.1
Cause: 16
Event: Hangup
Privilege: call,all
Channel: SIP/1000-00000001
Uniqueid: 1405110905.1
CallerIDNum: 1000
CallerIDName: sipPC12
ConnectedLineNum: 1500
ConnectedLineName: sipPC1
AccountCode:
Cause: 16
Cause-txt: Normal Clearing
Event: ExtensionStatus
Privilege: call,all
Exten: 1000
Context: ext-local
Hint: SIP/1000&Custom:DND1000
Status: 0
sur la console le script : Asteriskclient.php fonctionne log ci dessous, j'ai tester un appel entre extension pour voir si le script tourne bien tout est ok mais quand je teste l'emission d'appel depuis vtiger prospect j'ai le popup qui me dit : Sélectionnez le poste pour composer le numéro
j'ai deja reverifier la config plusisurs fois et je ne vois rien de special si ququ'un à une idée.
en vous remerciant d'avance de tout aide.
root@serveur PBXManager]# php AsteriskClient.php
Connecting to asterisk server @ 2014-07-11 20:31:01
Connected successfully
Trying to login to asterisk
Logged in successfully to asterisk server
[root@serveur PBXManager]# php AsteriskClient.php
Connecting to asterisk server @ 2014-07-11 20:32:20
Connected successfully
Trying to login to asterisk
Logged in successfully to asterisk server
Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/1500
PeerStatus: Registered
Address: 192.168.2.10:5061
Event: Newchannel
Privilege: call,all
Channel: SIP/1000-00000001
ChannelState: 0
ChannelStateDesc: Down
CallerIDNum: 1000
CallerIDName: sipPC1
AccountCode:
Exten: 1500
Context: from-internal
Uniqueid: 1405110905.1
Event: Newstate
Privilege: call,all
Channel: SIP/1000-00000001
ChannelState: 4
ChannelStateDesc: Ring
CallerIDNum: 1000
CallerIDName: sipPC12
ConnectedLineNum:
ConnectedLineName:
Uniqueid: 1405110905.1
Event: NewCallerid
Privilege: call,all
Channel: SIP/1000-00000001
CallerIDNum: 1000
CallerIDName: sipPC12
Uniqueid: 1405110905.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: NewCallerid
Privilege: call,all
Channel: SIP/1000-00000001
CallerIDNum: 1000
CallerIDName: sipPC12
Uniqueid: 1405110905.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: NewCallerid
Privilege: call,all
Channel: SIP/1000-00000001
CallerIDNum: 1000
CallerIDName: sipPC12
Uniqueid: 1405110905.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newchannel
Privilege: call,all
Channel: SIP/1500-00000002
ChannelState: 0
ChannelStateDesc: Down
CallerIDNum: 1500
CallerIDName: sipPC1
AccountCode:
Exten:
Context: from-internal
Uniqueid: 1405110905.2
Event: Dial
Privilege: call,all
SubEvent: Begin
Channel: SIP/1000-00000001
Destination: SIP/1500-00000002
CallerIDNum: 1000
CallerIDName: sipPC12
ConnectedLineNum: 1500
ConnectedLineName: sipPC1
UniqueID: 1405110905.1
DestUniqueID: 1405110905.2
Dialstring: 1500
Event: ExtensionStatus
Privilege: call,all
Exten: 1500
Context: ext-local
Hint: SIP/1500&Custom:DND1500
Status: 8
Event: Newstate
Privilege: call,all
Channel: SIP/1500-00000002
ChannelState: 5
ChannelStateDesc: Ringing
CallerIDNum: 1500
CallerIDName: sipPC1
ConnectedLineNum: 1000
ConnectedLineName: sipPC12
Uniqueid: 1405110905.2
Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/1000
PeerStatus: Registered
Address: 192.168.2.18:49213
Event: ExtensionStatus
Privilege: call,all
Exten: 1000
Context: ext-local
Hint: SIP/1000&Custom:DND1000
Status: 1
Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/1000
PeerStatus: Reachable
Time: 95
Event: Newstate
Privilege: call,all
Channel: SIP/1500-00000002
ChannelState: 6
ChannelStateDesc: Up
CallerIDNum: 1500
CallerIDName: sipPC1
ConnectedLineNum: 1000
ConnectedLineName: Mmarane
Uniqueid: 1405110905.2
Event: Newstate
Privilege: call,all
Channel: SIP/1000-00000001
ChannelState: 6
ChannelStateDesc: Up
CallerIDNum: 1000
CallerIDName: sipPC12
ConnectedLineNum: 1500
ConnectedLineName: snegadi
Uniqueid: 1405110905.1
Event: NewAccountCode
Privilege: call,all
Channel: SIP/1500-00000002
Uniqueid: 1405110905.2
AccountCode:
OldAccountCode:
Event: Bridge
Privilege: call,all
Bridgestate: Link
Bridgetype: core
Channel1: SIP/1000-00000001
Channel2: SIP/1500-00000002
Uniqueid1: 1405110905.1
Uniqueid2: 1405110905.2
CallerID1: 1000
CallerID2: 1500
Event: ExtensionStatus
Privilege: call,all
Exten: 1500
Context: ext-local
Hint: SIP/1500&Custom:DND1500
Status: 1
Event: HangupRequest
Privilege: call,all
Channel: SIP/1000-00000001
Uniqueid: 1405110905.1
Event: Bridge
Privilege: call,all
Bridgestate: Unlink
Bridgetype: core
Channel1: SIP/1000-00000001
Channel2: SIP/1500-00000002
Uniqueid1: 1405110905.1
Uniqueid2: 1405110905.2
CallerID1: 1000
CallerID2: 1500
Event: ExtensionStatus
Privilege: call,all
Exten: 1500
Context: ext-local
Hint: SIP/1500&Custom:DND1500
Status: 0
Event: Hangup
Privilege: call,all
Channel: SIP/1500-00000002
Uniqueid: 1405110905.2
CallerIDNum: 1500
CallerIDName: sipPC1
ConnectedLineNum: 1000
ConnectedLineName: Mmarane
AccountCode:
Cause: 16
Cause-txt: Normal Clearing
Event: Dial
Privilege: call,all
SubEvent: End
Channel: SIP/1000-00000001
UniqueID: 1405110905.1
DialStatus: ANSWER
Event: SoftHangupRequest
Privilege: call,all
Channel: SIP/1000-00000001
Uniqueid: 1405110905.1
Cause: 16
Event: Hangup
Privilege: call,all
Channel: SIP/1000-00000001
Uniqueid: 1405110905.1
CallerIDNum: 1000
CallerIDName: sipPC12
ConnectedLineNum: 1500
ConnectedLineName: sipPC1
AccountCode:
Cause: 16
Cause-txt: Normal Clearing
Event: ExtensionStatus
Privilege: call,all
Exten: 1000
Context: ext-local
Hint: SIP/1000&Custom:DND1000
Status: 0