blak3r / yaai

SugarCRM Asterisk integration
http://www.sugarforge.org/projects/yaai
GNU General Public License v3.0
84 stars 85 forks source link

Help Needed Please #225

Open deaity opened 8 years ago

deaity commented 8 years ago

I have the YAAI module successfully connecting and waiting for calls.

However, magic dial buttons or pop-up's don't work.

I have used this before (maybe two years ago) and had it working. From memory I could not have the PBX and SUGAR servers on the same internal network for it to work for some reason.

Anyways. Here are some logs - if anyone could help it would be great. Maybe I have the prefix's wrong or something.

Set up: SugarCRM community v7.
Callinize - community Edition module 3.6.10 (from module loader info)

Here is the asterisk log. Let me know if any other info is needed. From this log info could someone please also advise what my:

  1. Dial Context should be
  2. Dialpattern for inbound/outbound matching [?]:
  3. Dialout Channel [?]:
  4. Custom User Ext Match Regex etc...

Asterisk Log Info: root@crm ~]# tail -f /var/www/html/website1/log/asterisk/asterisk.log ! Privilege --> call,all ! Device --> PJSIP/2Talk ! State --> NOT_INUSE ! --------------------------------------------------------------------- [2016-09-18 23:24:55] Patiently Waiting...! (mem_used: 16871136) [2016-09-18 23:25:55] Patiently Waiting...! (mem_used: 16871464) [2016-09-18 23:26:55] Patiently Waiting...! (mem_used: 16871640) [2016-09-18 23:27:55] Patiently Waiting...! (mem_used: 16871816) [2016-09-18 23:28:55] Patiently Waiting...! (mem_used: 16872000) [2016-09-18 23:29:55] Patiently Waiting...! (mem_used: 16872184) [2016-09-18 23:23:46] ! --- Event ----------------------------------------------------------- ! Event --> NewConnectedLine ! Privilege --> call,all ! Channel --> SIP/1000-0000000d ! ChannelState --> 0 ! ChannelStateDesc --> Down ! CallerIDNum --> 1000 ! CallerIDName --> Daryn ! ConnectedLineNum --> 0274499841 ! ConnectedLineName --> 64274499841 ! Language --> en ! AccountCode --> ! Context --> from-internal ! Exten --> 1000 ! Priority --> 1 ! Uniqueid --> 1474241026.26 ! Linkedid --> 1474241025.25 ! --------------------------------------------------------------------- ! AMI Event 'Newexten suppressed. ! AMI Event 'Newexten suppressed. ! AMI Event 'Newexten suppressed. ! AMI Event 'Newexten suppressed. [2016-09-18 23:23:46] ! --- Event ----------------------------------------------------------- ! Event --> DeviceStateChange ! Privilege --> call,all ! Device --> SIP/1000 ! State --> RINGING ! --------------------------------------------------------------------- [2016-09-18 23:23:46] ! --- Event ----------------------------------------------------------- ! Event --> DialBegin ! Privilege --> call,all ! Channel --> PJSIP/2Talk-0000000c ! ChannelState --> 4 ! ChannelStateDesc --> Ring ! CallerIDNum --> 0274499841 ! CallerIDName --> 64274499841 ! ConnectedLineNum --> ! ConnectedLineName --> ! Language --> en ! AccountCode --> ! Context --> macro-dial-one ! Exten --> s ! Priority --> 48 ! Uniqueid --> 1474241025.25 ! Linkedid --> 1474241025.25 ! DestChannel --> SIP/1000-0000000d ! DestChannelState --> 0 ! DestChannelStateDesc --> Down ! DestCallerIDNum --> 1000 ! DestCallerIDName --> Daryn ! DestConnectedLineNum --> 0274499841 ! DestConnectedLineName --> 64274499841 ! DestLanguage --> en ! DestAccountCode --> ! DestContext --> func-apply-sipheaders ! DestExten --> s ! DestPriority --> 8 ! DestUniqueid --> 1474241026.26 ! DestLinkedid --> 1474241025.25 ! DialString --> 1000 ! --------------------------------------------------------------------- [2016-09-18 23:23:46] ! --- Event ----------------------------------------------------------- ! Event --> DeviceStateChange ! Privilege --> call,all ! Device --> PJSIP/2Talk ! State --> INUSE ! --------------------------------------------------------------------- ! AMI Event 'Newstate suppressed. ! AMI Event 'Newexten suppressed. [2016-09-18 23:23:55] ! --- Event ----------------------------------------------------------- ! Event --> HangupRequest ! Privilege --> call,all ! Channel --> PJSIP/2Talk-0000000c ! ChannelState --> 4 ! ChannelStateDesc --> Ring ! CallerIDNum --> 0274499841 ! CallerIDName --> 64274499841 ! ConnectedLineNum --> ! ConnectedLineName --> ! Language --> en ! AccountCode --> ! Context --> macro-dial-one ! Exten --> s ! Priority --> 48 ! Uniqueid --> 1474241025.25 ! Linkedid --> 1474241025.25 ! Cause --> 127 ! --------------------------------------------------------------------- [2016-09-18 23:23:55] ! --- Event ----------------------------------------------------------- ! Event --> DialEnd ! Privilege --> call,all ! Channel --> PJSIP/2Talk-0000000c ! ChannelState --> 4 ! ChannelStateDesc --> Ring ! CallerIDNum --> 0274499841 ! CallerIDName --> 64274499841 ! ConnectedLineNum --> ! ConnectedLineName --> ! Language --> en ! AccountCode -[2016-09-18 23:30:55] Patiently Waiting...! (mem_used: 16872496) [2016-09-18 23:31:55] Patiently Waiting...! (mem_used: 16872672) [2016-09-18 23:32:55] Patiently Waiting...! (mem_used: 16872856)