Adhearsion application not recieving calls from asterisk

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Adhearsion application not recieving calls from asterisk

tal weissler
I'm trying to connect to adhearsion via asterisk. Adhearsion connected successfully and when I place a call, asterisk shows that it was sent to adhearsion. Yet there is no response from adhearsion or any debug logs.
 
Any thoughts on what I'm doing wrong?

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Adhearsion application not recieving calls from asterisk

Ben Klang-2

Il giorno 12 mar 2017, alle ore 12:03, tal weissler <[hidden email]> ha scritto:

I'm trying to connect to adhearsion via asterisk. Adhearsion connected successfully and when I place a call, asterisk shows that it was sent to adhearsion. Yet there is no response from adhearsion or any debug logs.
 
Any thoughts on what I'm doing wrong?

Hi Tal,

We’ll need more information than that to help you.

First, have you followed the getting started documentation: http://adhearsion.com/docs/getting-started/asterisk

Second, if you still have trouble, showing us code and logs would make it a lot easier to help.

/BAK/


--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

signature.asc (858 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Adhearsion application not recieving calls from asterisk

Luca Pradovera
In reply to this post by tal weissler
Hello,
the easiest thing to start from to help you is an Asterisk and Adhearsion log at trace level, as you probably have some misconfiguration going on.

Best regards,

Luca

On Sun, Mar 12, 2017 at 5:03 PM, tal weissler <[hidden email]> wrote:
I'm trying to connect to adhearsion via asterisk. Adhearsion connected successfully and when I place a call, asterisk shows that it was sent to adhearsion. Yet there is no response from adhearsion or any debug logs.
 
Any thoughts on what I'm doing wrong?

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Adhearsion application not recieving calls from asterisk

tal weissler
In reply to this post by tal weissler


On Sunday, March 12, 2017 at 6:26:56 PM UTC+2, tal weissler wrote:
I'm trying to connect to adhearsion via asterisk. Adhearsion connected successfully and when I place a call, asterisk shows that it was sent to adhearsion. Yet there is no response from adhearsion or any debug logs.
 
Any thoughts on what I'm doing wrong?


Hi,

I did follow the adhearsion documentation:

extensions.conf:
[adhearsion]
exten => _X.,1,AGI(agi:async)
[adhearsion-redirect]
exten => 1,1,AGI(agi:async)

sip.conf:
[green]
type=friend
secret=*****
qualify=yes  
nat=yes     
host=dynamic 
canreinvite=no 
context=adhearsion

This is the log I get when I connect to adhearsion. I don't get any more logs when I place a call. (the call is placed but doesn't connect to the adhearsion code we wrote)

591c30f10508_appcore_asterisk_1 | XSLT support not found. XML documentation may be incomplete.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] NOTICE[1]: cdr.c:4163 cdr_toggle_runtime_options: CDR simple logging enabled.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] NOTICE[1]: loader.c:1443 load_modules: 303 modules will be loaded.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: res_odbc.c:526 load_odbc_config: The 'pooling', 'shared_connections', 'limit', and 'idlecheck' options were replaced by 'max_connections'.  See res_odbc.conf.sample.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: res_odbc.c:526 load_odbc_config: The 'pooling', 'shared_connections', 'limit', and 'idlecheck' options were replaced by 'max_connections'.  See res_odbc.conf.sample.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] NOTICE[1]: res_odbc.c:1089 load_module: res_odbc loaded.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: res_phoneprov.c:1231 get_defaults: Unable to find a valid server address or name.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: res_config_mysql.c:1223 load_mysql_config: MySQL RealTime: No database user found, using 'asterisk' as default.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: res_config_mysql.c:1229 load_mysql_config: MySQL RealTime: No database password found, using 'asterisk' as default.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: res_config_mysql.c:1235 load_mysql_config: MySQL RealTime: No database host found, using localhost via socket.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: res_config_mysql.c:1241 load_mysql_config: MySQL RealTime: No database name found, using 'asterisk' as default.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: res_config_mysql.c:1247 load_mysql_config: MySQL RealTime: No database port found, using 3306 as default.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: res_config_mysql.c:1264 load_mysql_config: MySQL RealTime: No database socket found (and unable to detect a suitable path).
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] NOTICE[1]: chan_skinny.c:8418 config_load: Configuring skinny from skinny.conf
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: sip/config_parser.c:819 sip_parse_nat_option: nat=yes is deprecated, use nat=force_rport,comedia instead
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: chan_sip.c:31828 display_nat_warning: !!! PLEASE NOTE: Setting 'nat' for a peer/user that differs from the  global setting can make
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: chan_sip.c:31829 display_nat_warning: !!! the name of that peer/user discoverable by an attacker. Replies for non-existent peers/users
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: chan_sip.c:31830 display_nat_warning: !!! will be sent to a different port than replies for an existing peer/user. If at all possible,
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: chan_sip.c:31831 display_nat_warning: !!! use the global 'nat' setting and do not set 'nat' per peer/user.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: chan_sip.c:31832 display_nat_warning: !!! (config category='green' global force_rport='No' peer/user force_rport='Yes')
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] NOTICE[55]: chan_sip.c:24442 handle_response_peerpoke: Peer 'green' is now Reachable. (1ms / 2000ms)
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:48] NOTICE[1]: confbridge/conf_config_parser.c:2094 verify_default_profiles: Adding default_menu menu to app_confbridge
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:48] NOTICE[1]: cel_custom.c:97 load_config: No mappings found in cel_custom.conf. Not logging CEL to custom CSVs.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:48] WARNING[1]: app_voicemail.c:5775 inboxcount2: Failed to obtain database object for 'asterisk'!
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:48] WARNING[1]: app_voicemail.c:5775 inboxcount2: Failed to obtain database object for 'asterisk'!
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:48] WARNING[88]: pbx.c:6991 add_priority: Unable to register extension '1' priority 1 in 'adhearsion-redirect', already in use
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:48] WARNING[87]: pbx.c:6991 add_priority: Unable to register extension '1' priority 1 in 'adhearsion-redirect', already in use
api_1       |  Adhearsion server at /srv/app
api_1       | [2017-03-13 07:09:04.195] INFO  Adhearsion::Console: Launching Adhearsion Console
api_1       | [2017-03-13 07:09:04.207] INFO  Adhearsion::Initializer: Setting RAILS_ENV to "development"
AHN> [2017-03-13 07:09:04.381] DEBUG Punchblock::Connection::Asterisk: Starting up...
api_1       | [2017-03-13 07:09:04.420] INFO  Adhearsion::PunchblockPlugin::Initializer: Starting connection to server
591c30f10508_appcore_asterisk_1 | [Mar 13 07:09:04] WARNING[89]: pbx.c:6991 add_priority: Unable to register extension '1' priority 1 in 'adhearsion-redirect', already in use
api_1       | [2017-03-13 07:09:04.504] INFO  Adhearsion::PunchblockPlugin::Initializer: Connected to Punchblock server
api_1       | [2017-03-13 07:09:04.523] WARN  Punchblock::Translator::Asterisk: Recordings directory /var/punchblock/record does not exist. Recording might not work. This warning can be ignored if Adhearsion is running on a separate machine than Asterisk. See http://adhearsion.com/docs/call-controllers#recording
api_1       | [2017-03-13 07:09:04.535] INFO  Adhearsion::Process: Transitioning from booting to running with 0 active calls due to booted event.
api_1       | [2017-03-13 07:09:04.540] INFO  Adhearsion::Initializer: Adhearsion v2.6.3 initialized in "development"!

I should say that if I don't use adhearsion, the call does follow asterisk dialplan as expected.

Thanks! 
Tal 

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Adhearsion application not recieving calls from asterisk

Luca Pradovera
Hello,
there is no Asterisk log of the actual call in those logs :)

On Mon, Mar 13, 2017 at 8:42 AM, tal weissler <[hidden email]> wrote:


On Sunday, March 12, 2017 at 6:26:56 PM UTC+2, tal weissler wrote:
I'm trying to connect to adhearsion via asterisk. Adhearsion connected successfully and when I place a call, asterisk shows that it was sent to adhearsion. Yet there is no response from adhearsion or any debug logs.
 
Any thoughts on what I'm doing wrong?


Hi,

I did follow the adhearsion documentation:

extensions.conf:
[adhearsion]
exten => _X.,1,AGI(agi:async)
[adhearsion-redirect]
exten => 1,1,AGI(agi:async)

sip.conf:
[green]
type=friend
secret=*****
qualify=yes  
nat=yes     
host=dynamic 
canreinvite=no 
context=adhearsion

This is the log I get when I connect to adhearsion. I don't get any more logs when I place a call. (the call is placed but doesn't connect to the adhearsion code we wrote)

591c30f10508_appcore_asterisk_1 | XSLT support not found. XML documentation may be incomplete.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] NOTICE[1]: cdr.c:4163 cdr_toggle_runtime_options: CDR simple logging enabled.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] NOTICE[1]: loader.c:1443 load_modules: 303 modules will be loaded.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: res_odbc.c:526 load_odbc_config: The 'pooling', 'shared_connections', 'limit', and 'idlecheck' options were replaced by 'max_connections'.  See res_odbc.conf.sample.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: res_odbc.c:526 load_odbc_config: The 'pooling', 'shared_connections', 'limit', and 'idlecheck' options were replaced by 'max_connections'.  See res_odbc.conf.sample.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] NOTICE[1]: res_odbc.c:1089 load_module: res_odbc loaded.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: res_phoneprov.c:1231 get_defaults: Unable to find a valid server address or name.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: res_config_mysql.c:1223 load_mysql_config: MySQL RealTime: No database user found, using 'asterisk' as default.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: res_config_mysql.c:1229 load_mysql_config: MySQL RealTime: No database password found, using 'asterisk' as default.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: res_config_mysql.c:1235 load_mysql_config: MySQL RealTime: No database host found, using localhost via socket.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: res_config_mysql.c:1241 load_mysql_config: MySQL RealTime: No database name found, using 'asterisk' as default.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: res_config_mysql.c:1247 load_mysql_config: MySQL RealTime: No database port found, using 3306 as default.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: res_config_mysql.c:1264 load_mysql_config: MySQL RealTime: No database socket found (and unable to detect a suitable path).
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] NOTICE[1]: chan_skinny.c:8418 config_load: Configuring skinny from skinny.conf
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: sip/config_parser.c:819 sip_parse_nat_option: nat=yes is deprecated, use nat=force_rport,comedia instead
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: chan_sip.c:31828 display_nat_warning: !!! PLEASE NOTE: Setting 'nat' for a peer/user that differs from the  global setting can make
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: chan_sip.c:31829 display_nat_warning: !!! the name of that peer/user discoverable by an attacker. Replies for non-existent peers/users
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: chan_sip.c:31830 display_nat_warning: !!! will be sent to a different port than replies for an existing peer/user. If at all possible,
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: chan_sip.c:31831 display_nat_warning: !!! use the global 'nat' setting and do not set 'nat' per peer/user.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: chan_sip.c:31832 display_nat_warning: !!! (config category='green' global force_rport='No' peer/user force_rport='Yes')
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] NOTICE[55]: chan_sip.c:24442 handle_response_peerpoke: Peer 'green' is now Reachable. (1ms / 2000ms)
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:48] NOTICE[1]: confbridge/conf_config_parser.c:2094 verify_default_profiles: Adding default_menu menu to app_confbridge
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:48] NOTICE[1]: cel_custom.c:97 load_config: No mappings found in cel_custom.conf. Not logging CEL to custom CSVs.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:48] WARNING[1]: app_voicemail.c:5775 inboxcount2: Failed to obtain database object for 'asterisk'!
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:48] WARNING[1]: app_voicemail.c:5775 inboxcount2: Failed to obtain database object for 'asterisk'!
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:48] WARNING[88]: pbx.c:6991 add_priority: Unable to register extension '1' priority 1 in 'adhearsion-redirect', already in use
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:48] WARNING[87]: pbx.c:6991 add_priority: Unable to register extension '1' priority 1 in 'adhearsion-redirect', already in use
api_1       |  Adhearsion server at /srv/app
api_1       | [2017-03-13 07:09:04.195] INFO  Adhearsion::Console: Launching Adhearsion Console
api_1       | [2017-03-13 07:09:04.207] INFO  Adhearsion::Initializer: Setting RAILS_ENV to "development"
AHN> [2017-03-13 07:09:04.381] DEBUG Punchblock::Connection::Asterisk: Starting up...
api_1       | [2017-03-13 07:09:04.420] INFO  Adhearsion::PunchblockPlugin::Initializer: Starting connection to server
591c30f10508_appcore_asterisk_1 | [Mar 13 07:09:04] WARNING[89]: pbx.c:6991 add_priority: Unable to register extension '1' priority 1 in 'adhearsion-redirect', already in use
api_1       | [2017-03-13 07:09:04.504] INFO  Adhearsion::PunchblockPlugin::Initializer: Connected to Punchblock server
api_1       | [2017-03-13 07:09:04.523] WARN  Punchblock::Translator::Asterisk: Recordings directory /var/punchblock/record does not exist. Recording might not work. This warning can be ignored if Adhearsion is running on a separate machine than Asterisk. See http://adhearsion.com/docs/call-controllers#recording
api_1       | [2017-03-13 07:09:04.535] INFO  Adhearsion::Process: Transitioning from booting to running with 0 active calls due to booted event.
api_1       | [2017-03-13 07:09:04.540] INFO  Adhearsion::Initializer: Adhearsion v2.6.3 initialized in "development"!

I should say that if I don't use adhearsion, the call does follow asterisk dialplan as expected.

Thanks! 
Tal 

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Adhearsion application not recieving calls from asterisk

Andrius Kairiukstis
Have you configured manager.conf?

On 13 March 2017 at 08:44:40, Luca Pradovera ([hidden email]) wrote:

Hello,
there is no Asterisk log of the actual call in those logs :)

On Mon, Mar 13, 2017 at 8:42 AM, tal weissler <[hidden email]> wrote:


On Sunday, March 12, 2017 at 6:26:56 PM UTC+2, tal weissler wrote:
I'm trying to connect to adhearsion via asterisk. Adhearsion connected successfully and when I place a call, asterisk shows that it was sent to adhearsion. Yet there is no response from adhearsion or any debug logs.
 
Any thoughts on what I'm doing wrong?


Hi,

I did follow the adhearsion documentation:

extensions.conf:
[adhearsion]
exten => _X.,1,AGI(agi:async)
[adhearsion-redirect]
exten => 1,1,AGI(agi:async)

sip.conf:
[green]
type=friend
secret=*****
qualify=yes  
nat=yes     
host=dynamic 
canreinvite=no 
context=adhearsion

This is the log I get when I connect to adhearsion. I don't get any more logs when I place a call. (the call is placed but doesn't connect to the adhearsion code we wrote)

591c30f10508_appcore_asterisk_1 | XSLT support not found. XML documentation may be incomplete.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] NOTICE[1]: cdr.c:4163 cdr_toggle_runtime_options: CDR simple logging enabled.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] NOTICE[1]: loader.c:1443 load_modules: 303 modules will be loaded.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: res_odbc.c:526 load_odbc_config: The 'pooling', 'shared_connections', 'limit', and 'idlecheck' options were replaced by 'max_connections'.  See res_odbc.conf.sample.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: res_odbc.c:526 load_odbc_config: The 'pooling', 'shared_connections', 'limit', and 'idlecheck' options were replaced by 'max_connections'.  See res_odbc.conf.sample.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] NOTICE[1]: res_odbc.c:1089 load_module: res_odbc loaded.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: res_phoneprov.c:1231 get_defaults: Unable to find a valid server address or name.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: res_config_mysql.c:1223 load_mysql_config: MySQL RealTime: No database user found, using 'asterisk' as default.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: res_config_mysql.c:1229 load_mysql_config: MySQL RealTime: No database password found, using 'asterisk' as default.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: res_config_mysql.c:1235 load_mysql_config: MySQL RealTime: No database host found, using localhost via socket.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: res_config_mysql.c:1241 load_mysql_config: MySQL RealTime: No database name found, using 'asterisk' as default.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: res_config_mysql.c:1247 load_mysql_config: MySQL RealTime: No database port found, using 3306 as default.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: res_config_mysql.c:1264 load_mysql_config: MySQL RealTime: No database socket found (and unable to detect a suitable path).
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] NOTICE[1]: chan_skinny.c:8418 config_load: Configuring skinny from skinny.conf
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: sip/config_parser.c:819 sip_parse_nat_option: nat=yes is deprecated, use nat=force_rport,comedia instead
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: chan_sip.c:31828 display_nat_warning: !!! PLEASE NOTE: Setting 'nat' for a peer/user that differs from the  global setting can make
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: chan_sip.c:31829 display_nat_warning: !!! the name of that peer/user discoverable by an attacker. Replies for non-existent peers/users
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: chan_sip.c:31830 display_nat_warning: !!! will be sent to a different port than replies for an existing peer/user. If at all possible,
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: chan_sip.c:31831 display_nat_warning: !!! use the global 'nat' setting and do not set 'nat' per peer/user.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] WARNING[1]: chan_sip.c:31832 display_nat_warning: !!! (config category='green' global force_rport='No' peer/user force_rport='Yes')
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:47] NOTICE[55]: chan_sip.c:24442 handle_response_peerpoke: Peer 'green' is now Reachable. (1ms / 2000ms)
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:48] NOTICE[1]: confbridge/conf_config_parser.c:2094 verify_default_profiles: Adding default_menu menu to app_confbridge
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:48] NOTICE[1]: cel_custom.c:97 load_config: No mappings found in cel_custom.conf. Not logging CEL to custom CSVs.
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:48] WARNING[1]: app_voicemail.c:5775 inboxcount2: Failed to obtain database object for 'asterisk'!
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:48] WARNING[1]: app_voicemail.c:5775 inboxcount2: Failed to obtain database object for 'asterisk'!
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:48] WARNING[88]: pbx.c:6991 add_priority: Unable to register extension '1' priority 1 in 'adhearsion-redirect', already in use
591c30f10508_appcore_asterisk_1 | [Mar 13 07:08:48] WARNING[87]: pbx.c:6991 add_priority: Unable to register extension '1' priority 1 in 'adhearsion-redirect', already in use
api_1       |  Adhearsion server at /srv/app
api_1       | [2017-03-13 07:09:04.195] INFO  Adhearsion::Console: Launching Adhearsion Console
api_1       | [2017-03-13 07:09:04.207] INFO  Adhearsion::Initializer: Setting RAILS_ENV to "development"
AHN> [2017-03-13 07:09:04.381] DEBUG Punchblock::Connection::Asterisk: Starting up...
api_1       | [2017-03-13 07:09:04.420] INFO  Adhearsion::PunchblockPlugin::Initializer: Starting connection to server
591c30f10508_appcore_asterisk_1 | [Mar 13 07:09:04] WARNING[89]: pbx.c:6991 add_priority: Unable to register extension '1' priority 1 in 'adhearsion-redirect', already in use
api_1       | [2017-03-13 07:09:04.504] INFO  Adhearsion::PunchblockPlugin::Initializer: Connected to Punchblock server
api_1       | [2017-03-13 07:09:04.523] WARN  Punchblock::Translator::Asterisk: Recordings directory /var/punchblock/record does not exist. Recording might not work. This warning can be ignored if Adhearsion is running on a separate machine than Asterisk. See http://adhearsion.com/docs/call-controllers#recording
api_1       | [2017-03-13 07:09:04.535] INFO  Adhearsion::Process: Transitioning from booting to running with 0 active calls due to booted event.
api_1       | [2017-03-13 07:09:04.540] INFO  Adhearsion::Initializer: Adhearsion v2.6.3 initialized in "development"!

I should say that if I don't use adhearsion, the call does follow asterisk dialplan as expected.

Thanks! 
Tal 

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Adhearsion application not recieving calls from asterisk

tal weissler
In reply to this post by tal weissler
I found the problem. 
It was that 'agi' was missing from read and write in the manager.conf file
This is how it looks now:
read = system,call,log,verbose,agent,user,config,dtmf,reporting,cdr,dialplan,security,agi
write = system,call,agent,user,config,command,reporting,originate,agi

Thanks everyone

On Sunday, March 12, 2017 at 6:26:56 PM UTC+2, tal weissler wrote:
I'm trying to connect to adhearsion via asterisk. Adhearsion connected successfully and when I place a call, asterisk shows that it was sent to adhearsion. Yet there is no response from adhearsion or any debug logs.
 
Any thoughts on what I'm doing wrong?

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.