Incoming calls rejected

1,351 views
Skip to first unread message

John

unread,
Apr 23, 2013, 2:11:59 PM4/23/13
to as...@googlegroups.com
My incoming DIDs dont seem to get through. I set up everything but I'm not too sure what Im doing wrong

I can see the error display on the logs: 
2013-04-23 19:56:21.304247 [NOTICE] sofia.c:1748 Hangup sofia/internal/+4487...@83.88.29.19 [CS_NEW] [CALL_REJECTED]

Im not sure why the calls are being rejected.
What I did to set up the incoming did (I have the did dialstrings in ASTPP set up, the call comes in so I suspect thats all ok):

I added an external profile:

<include>
<gateway name="gateway1">
<param name="username" value="488843034"/>
<param name="password" value="xxxxx"/>
<param name="caller-id-in-from" value="true"/>
<param name="proxy" value="9940.twilio.com"/>
        <param name="register" value="true"/>
        <param name="inbound-late-negotiation" value="false"/>
    </gateway>
</include>

I changed my auth_calls to false: ? (Is this advisable / other safer way to do it?)
  <X-PRE-PROCESS cmd="set" data="internal_auth_calls=false"/>
  <X-PRE-PROCESS cmd="set" data="external_auth_calls=false"/>


The log trace + sip trace:

  INVITE sip:44713...@34.12.78.3 SIP/2.0
   Via: SIP/2.0/UDP 83.88.29.19:5060;branch=z9hG2bKf34b46eb;rport
   Max-Forwards: 70
   From: "+448739783" <sip:+4487...@83.88.29.19>;tag=as7aa17d52
   Contact: <sip:+4487...@83.88.29.19>
   CSeq: 102 INVITE
   User-Agent: Asterisk PBX 1.6.2.9-2+squeeze5
   Date: Tue, 23 Apr 2013 18:00:38 GMT
   Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
   Supported: replaces, timer
   Content-Type: application/sdp
   Content-Length: 322
   
   v=0
   o=root 1707636379 1707636379 IN IP4 83.88.29.19
   s=Asterisk PBX 1.6.2.9-2+squeeze5
   c=IN IP4 83.88.29.19
   t=0 0
   m=audio 25940 RTP/AVP 0 8 18 101
   a=rtpmap:0 PCMU/8000
   a=rtpmap:8 PCMA/8000
   a=rtpmap:18 G729/8000
   a=fmtp:18 annexb=no
   a=rtpmap:101 telephone-event/8000
   a=fmtp:101 0-16
   a=ptime:20
   a=sendrecv
   ------------------------------------------------------------------------
send 328 bytes to udp/[83.88.29.19]:5060 at 17:56:21.300274:
   ------------------------------------------------------------------------
   SIP/2.0 100 Trying
   Via: SIP/2.0/UDP 83.88.29.19:5060;branch=z9hG2bKf34b46eb;rport=5060
   From: "+448739783" <sip:+4487...@83.88.29.19>;tag=as7aa17d52
   CSeq: 102 INVITE
   User-Agent: GNU Freeswitch
   Content-Length: 0
   
   ------------------------------------------------------------------------
2013-04-23 19:56:21.284255 [NOTICE] switch_channel.c:968 New Channel sofia/internal/+4487...@83.88.29.19 [1b2796fc-ac3f-11e2-abf7-ef576a107fbf]
2013-04-23 19:56:21.284255 [DEBUG] switch_core_session.c:975 Send signal sofia/internal/+4487...@83.88.29.19 [BREAK]
2013-04-23 19:56:21.284255 [DEBUG] switch_core_state_machine.c:415 (sofia/internal/+4487...@83.88.29.19) Running State Change CS_NEW
2013-04-23 19:56:21.284255 [DEBUG] switch_core_session.c:975 Send signal sofia/internal/+4487...@83.88.29.19 [BREAK]
2013-04-23 19:56:21.284255 [DEBUG] switch_core_state_machine.c:433 (sofia/internal/+4487...@83.88.29.19) State NEW
2013-04-23 19:56:21.304247 [WARNING] sofia.c:7722 IP 83.88.29.19 Rejected by acl "domains"
send 685 bytes to udp/[83.88.29.19]:5060 at 17:56:21.323508:
   ------------------------------------------------------------------------
   SIP/2.0 403 Forbidden
   Via: SIP/2.0/UDP 83.88.29.19:5060;branch=z9hG2bKf34b46eb;rport=5060
   From: "+448739783" <sip:+4487...@83.88.29.19>;tag=as7aa17d52
   To: <sip:44713...@34.12.78.3>;tag=jjKr8B4g08F9a
   CSeq: 102 INVITE
   User-Agent: GNU Freeswitch
   Accept: application/sdp
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
   Supported: timer, precondition, path, replaces
   Allow-Events: talk, hold, conference, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
   Content-Length: 0
   
   ------------------------------------------------------------------------
2013-04-23 19:56:21.304247 [DEBUG] switch_core_session.c:975 Send signal sofia/internal/+4487...@83.88.29.19 [BREAK]
2013-04-23 19:56:21.304247 [DEBUG] switch_channel.c:2994 (sofia/internal/+4487...@83.88.29.19) Callstate Change DOWN -> HANGUP
2013-04-23 19:56:21.304247 [NOTICE] sofia.c:1748 Hangup sofia/internal/+4487...@83.88.29.19 [CS_NEW] [CALL_REJECTED]
2013-04-23 19:56:21.304247 [DEBUG] switch_channel.c:3017 Send signal sofia/internal/+4487...@83.88.29.19 [KILL]
2013-04-23 19:56:21.304247 [DEBUG] switch_core_session.c:1283 Send signal sofia/internal/+4487...@83.88.29.19 [BREAK]
2013-04-23 19:56:21.324253 [DEBUG] sofia.c:1051 Channel is already hungup.
2013-04-23 19:56:21.324253 [DEBUG] switch_core_state_machine.c:415 (sofia/internal/+4487...@83.88.29.19) Running State Change CS_HANGUP
2013-04-23 19:56:21.324253 [DEBUG] switch_core_state_machine.c:667 (sofia/internal/+4487...@83.88.29.19) State HANGUP
2013-04-23 19:56:21.324253 [DEBUG] mod_sofia.c:503 Channel sofia/internal/+4487...@83.88.29.19 hanging up, cause: CALL_REJECTED
2013-04-23 19:56:21.344241 [DEBUG] switch_core_state_machine.c:48 sofia/internal/+4487...@83.88.29.19 Standard HANGUP, cause: CALL_REJECTED
2013-04-23 19:56:21.344241 [DEBUG] switch_core_state_machine.c:667 (sofia/internal/+4487...@83.88.29.19) State HANGUP going to sleep
2013-04-23 19:56:21.344241 [DEBUG] switch_core_state_machine.c:446 (sofia/internal/+4487...@83.88.29.19) State Change CS_HANGUP -> CS_REPORTING
2013-04-23 19:56:21.344241 [DEBUG] switch_core_session.c:1283 Send signal sofia/internal/+4487...@83.88.29.19 [BREAK]
2013-04-23 19:56:21.344241 [DEBUG] switch_core_state_machine.c:415 (sofia/internal/+4487...@83.88.29.19) Running State Change CS_REPORTING
2013-04-23 19:56:21.344241 [DEBUG] switch_core_state_machine.c:749 (sofia/internal/+4487...@83.88.29.19) State REPORTING
2013-04-23 19:56:21.344241 [DEBUG] switch_core_state_machine.c:92 sofia/internal/+4487...@83.88.29.19 Standard REPORTING, cause: CALL_REJECTED
2013-04-23 19:56:21.344241 [DEBUG] switch_core_state_machine.c:749 (sofia/internal/+4487...@83.88.29.19) State REPORTING going to sleep
2013-04-23 19:56:21.344241 [DEBUG] switch_core_state_machine.c:440 (sofia/internal/+4487...@83.88.29.19) State Change CS_REPORTING -> CS_DESTROY
2013-04-23 19:56:21.344241 [DEBUG] switch_core_session.c:1283 Send signal sofia/internal/+4487...@83.88.29.19 [BREAK]
2013-04-23 19:56:21.344241 [DEBUG] switch_core_session.c:1488 Session 2 (sofia/internal/+4487...@83.88.29.19) Locked, Waiting on external entities
2013-04-23 19:56:21.344241 [NOTICE] switch_core_session.c:1506 Session 2 (sofia/internal/+4487...@83.88.29.19) Ended
2013-04-23 19:56:21.344241 [NOTICE] switch_core_session.c:1510 Close Channel sofia/internal/+4487...@83.88.29.19 [CS_DESTROY]
2013-04-23 19:56:21.344241 [DEBUG] switch_core_state_machine.c:556 (sofia/internal/+4487...@83.88.29.19) Callstate Change HANGUP -> DOWN
2013-04-23 19:56:21.344241 [DEBUG] switch_core_state_machine.c:559 (sofia/internal/+4487...@83.88.29.19) Running State Change CS_DESTROY
2013-04-23 19:56:21.344241 [DEBUG] switch_core_state_machine.c:569 (sofia/internal/+4487...@83.88.29.19) State DESTROY
2013-04-23 19:56:21.344241 [DEBUG] mod_sofia.c:396 sofia/internal/+4487...@83.88.29.19 SOFIA DESTROY
2013-04-23 19:56:21.344241 [DEBUG] switch_core_state_machine.c:99 sofia/internal/+4487...@83.88.29.19 Standard DESTROY
2013-04-23 19:56:21.344241 [DEBUG] switch_core_state_machine.c:569 (sofia/internal/+4487...@83.88.29.19) State DESTROY going to sleep

Samir Doshi

unread,
Apr 24, 2013, 1:07:36 AM4/24/13
to as...@googlegroups.com, John
Hi John,

2013-04-23 19:56:21.304247 [WARNING] sofia.c:7722 IP 83.88.29.19 Rejected by acl "domains"


It looks like ACL is rejecting calls.
Please check gateway is registered or not. If You are sending call directly to FS ip then add from ip address in ACL to authenticate calls.

Thanks,
Samir Doshi
--
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


John

unread,
Apr 24, 2013, 2:22:47 AM4/24/13
to as...@googlegroups.com, John, sa...@astpp.org
Hi Sameer!

Thank you for your response. I ran 'sofia status' in the CLI and got:

       external::gateway1 gateway                sip: 488843034@83.88.29.19 REGED

So I think its registered. Is there anything like context I need to set? If its registered do I have to set the ACL as well?


On Wednesday, 24 April 2013 07:07:36 UTC+2, Samir Doshi wrote:
Hi John,

2013-04-23 19:56:21.304247 [WARNING] sofia.c:7722 IP 83.88.29.19 Rejected by acl "domains"


It looks like ACL is rejecting calls.
Please check gateway is registered or not. If You are sending call directly to FS ip then add from ip address in ACL to authenticate calls.

Thanks,
Samir Doshi
On 04/23/2013 11:41 PM, John wrote:
My incoming DIDs dont seem to get through. I set up everything but I'm not too sure what Im doing wrong

I can see the error display on the logs: 
2013-04-23 19:56:21.304247 [NOTICE] sofia.c:1748 Hangup sofia/intern...@83.88.29.19 [CS_NEW] [CALL_REJECTED]

Im not sure why the calls are being rejected.
What I did to set up the incoming did (I have the did dialstrings in ASTPP set up, the call comes in so I suspect thats all ok):

I added an external profile:

<include>
<gateway name="gateway1">
<param name="username" value="488843034"/>
<param name="password" value="xxxxx"/>
<param name="caller-id-in-from" value="true"/>
<param name="proxy" value="9940.twilio.com"/>
        <param name="register" value="true"/>
        <param name="inbound-late-negotiation" value="false"/>
    </gateway>
</include>

I changed my auth_calls to false: ? (Is this advisable / other safer way to do it?)
  <X-PRE-PROCESS cmd="set" data="internal_auth_calls=false"/>
  <X-PRE-PROCESS cmd="set" data="external_auth_calls=false"/>


The log trace + sip trace:

  INVITE sip:447...@34.12.78.3 SIP/2.0
   Via: SIP/2.0/UDP 83.88.29.19:5060;branch=z9hG2bKf34b46eb;rport
   Max-Forwards: 70
   From: "+448739783" <sip:+4...@83.88.29.19>;tag=as7aa17d52
   From: "+448739783" <sip:+4...@83.88.29.19>;tag=as7aa17d52
   CSeq: 102 INVITE
   User-Agent: GNU Freeswitch
   Content-Length: 0
   
   ------------------------------------------------------------------------
2013-04-23 19:56:21.284255 [NOTICE] switch_channel.c:968 New Channel sofia/intern...@83.88.29.19 [1b2796fc-ac3f-11e2-abf7-ef576a107fbf]
2013-04-23 19:56:21.284255 [DEBUG] switch_core_session.c:975 Send signal sofia/intern...@83.88.29.19 [BREAK]
2013-04-23 19:56:21.284255 [DEBUG] switch_core_state_machine.c:415 (sofia/intern...@83.88.29.19) Running State Change CS_NEW
2013-04-23 19:56:21.284255 [DEBUG] switch_core_session.c:975 Send signal sofia/intern...@83.88.29.19 [BREAK]
2013-04-23 19:56:21.284255 [DEBUG] switch_core_state_machine.c:433 (sofia/intern...@83.88.29.19) State NEW
2013-04-23 19:56:21.304247 [WARNING] sofia.c:7722 IP 83.88.29.19 Rejected by acl "domains"
send 685 bytes to udp/[83.88.29.19]:5060 at 17:56:21.323508:
   ------------------------------------------------------------------------
   SIP/2.0 403 Forbidden
   Via: SIP/2.0/UDP 83.88.29.19:5060;branch=z9hG2bKf34b46eb;rport=5060
   From: "+448739783" <sip:+4...@83.88.29.19>;tag=as7aa17d52
   To: <sip:447...@34.12.78.3>;tag=jjKr8B4g08F9a
   CSeq: 102 INVITE
   User-Agent: GNU Freeswitch
   Accept: application/sdp
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
   Supported: timer, precondition, path, replaces
   Allow-Events: talk, hold, conference, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
   Content-Length: 0
   
   ------------------------------------------------------------------------
2013-04-23 19:56:21.304247 [DEBUG] switch_core_session.c:975 Send signal sofia/intern...@83.88.29.19 [BREAK]
2013-04-23 19:56:21.304247 [DEBUG] switch_channel.c:2994 (sofia/intern...@83.88.29.19) Callstate Change DOWN -> HANGUP
2013-04-23 19:56:21.304247 [NOTICE] sofia.c:1748 Hangup sofia/intern...@83.88.29.19 [CS_NEW] [CALL_REJECTED]
2013-04-23 19:56:21.304247 [DEBUG] switch_channel.c:3017 Send signal sofia/intern...@83.88.29.19 [KILL]
2013-04-23 19:56:21.304247 [DEBUG] switch_core_session.c:1283 Send signal sofia/intern...@83.88.29.19 [BREAK]
2013-04-23 19:56:21.324253 [DEBUG] sofia.c:1051 Channel is already hungup.
2013-04-23 19:56:21.324253 [DEBUG] switch_core_state_machine.c:415 (sofia/intern...@83.88.29.19) Running State Change CS_HANGUP
2013-04-23 19:56:21.324253 [DEBUG] switch_core_state_machine.c:667 (sofia/intern...@83.88.29.19) State HANGUP
2013-04-23 19:56:21.324253 [DEBUG] mod_sofia.c:503 Channel sofia/intern...@83.88.29.19 hanging up, cause: CALL_REJECTED
2013-04-23 19:56:21.344241 [DEBUG] switch_core_state_machine.c:48 sofia/intern...@83.88.29.19 Standard HANGUP, cause: CALL_REJECTED
2013-04-23 19:56:21.344241 [DEBUG] switch_core_state_machine.c:667 (sofia/intern...@83.88.29.19) State HANGUP going to sleep
2013-04-23 19:56:21.344241 [DEBUG] switch_core_state_machine.c:446 (sofia/intern...@83.88.29.19) State Change CS_HANGUP -> CS_REPORTING
2013-04-23 19:56:21.344241 [DEBUG] switch_core_session.c:1283 Send signal sofia/intern...@83.88.29.19 [BREAK]
2013-04-23 19:56:21.344241 [DEBUG] switch_core_state_machine.c:415 (sofia/intern...@83.88.29.19) Running State Change CS_REPORTING
2013-04-23 19:56:21.344241 [DEBUG] switch_core_state_machine.c:749 (sofia/intern...@83.88.29.19) State REPORTING
2013-04-23 19:56:21.344241 [DEBUG] switch_core_state_machine.c:92 sofia/intern...@83.88.29.19 Standard REPORTING, cause: CALL_REJECTED
2013-04-23 19:56:21.344241 [DEBUG] switch_core_state_machine.c:749 (sofia/intern...@83.88.29.19) State REPORTING going to sleep
2013-04-23 19:56:21.344241 [DEBUG] switch_core_state_machine.c:440 (sofia/intern...@83.88.29.19) State Change CS_REPORTING -> CS_DESTROY
2013-04-23 19:56:21.344241 [DEBUG] switch_core_session.c:1283 Send signal sofia/intern...@83.88.29.19 [BREAK]
2013-04-23 19:56:21.344241 [DEBUG] switch_core_session.c:1488 Session 2 (sofia/intern...@83.88.29.19) Locked, Waiting on external entities
2013-04-23 19:56:21.344241 [NOTICE] switch_core_session.c:1506 Session 2 (sofia/intern...@83.88.29.19) Ended
2013-04-23 19:56:21.344241 [NOTICE] switch_core_session.c:1510 Close Channel sofia/intern...@83.88.29.19 [CS_DESTROY]
2013-04-23 19:56:21.344241 [DEBUG] switch_core_state_machine.c:556 (sofia/intern...@83.88.29.19) Callstate Change HANGUP -> DOWN
2013-04-23 19:56:21.344241 [DEBUG] switch_core_state_machine.c:559 (sofia/intern...@83.88.29.19) Running State Change CS_DESTROY
2013-04-23 19:56:21.344241 [DEBUG] switch_core_state_machine.c:569 (sofia/intern...@83.88.29.19) State DESTROY
2013-04-23 19:56:21.344241 [DEBUG] mod_sofia.c:396 sofia/intern...@83.88.29.19 SOFIA DESTROY
2013-04-23 19:56:21.344241 [DEBUG] switch_core_state_machine.c:99 sofia/intern...@83.88.29.19 Standard DESTROY
2013-04-23 19:56:21.344241 [DEBUG] switch_core_state_machine.c:569 (sofia/intern...@83.88.29.19) State DESTROY going to sleep

John

unread,
Apr 24, 2013, 3:18:25 AM4/24/13
to as...@googlegroups.com, John, sa...@astpp.org
OK I solved this by adding in the ACL and changing my other settings back to normal and removing the registration.

Willymar

unread,
Jan 8, 2019, 8:31:25 AM1/8/19
to ASTPP
Hello John,

I am trying to set up ASTPP with Twilio.

And I can't make it work.

Could you help please?

Which setting steps would be required on ASTPP?


I think my setting on Twilio portal is OK.

Regards

William

Samir Doshi

unread,
Jan 12, 2019, 2:10:53 AM1/12/19
to ASTPP
I just replied in another post for the same. Please refer that. 

Thanks,

Samir Doshi

iNextrix Technologies Pvt. Ltd.

https://www.inextrix.com

https://www.astppbilling.org


Disclaimer:

The information contained in this communication is confidential and may be legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking action in reliance on the contents of this information is strictly prohibited and may be unlawful. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.


Mailtrack Sender notified by
Mailtrack 01/12/19, 12:40:22 PM

   CSeq: 102 INVITE
   User-Agent: GNU Freeswitch
   Content-Length: 0
   
   ------------------------------------------------------------------------
2013-04-23 19:56:21.284255 [NOTICE] switch_channel.c:968 New Channel sofia/intern...@83.88.29.19 [1b2796fc-ac3f-11e2-abf7-ef576a107fbf]
2013-04-23 19:56:21.284255 [DEBUG] switch_core_session.c:975 Send signal sofia/intern...@83.88.29.19 [BREAK]
2013-04-23 19:56:21.284255 [DEBUG] switch_core_state_machine.c:415 (sofia/intern...@83.88.29.19) Running State Change CS_NEW
2013-04-23 19:56:21.284255 [DEBUG] switch_core_session.c:975 Send signal sofia/intern...@83.88.29.19 [BREAK]
2013-04-23 19:56:21.284255 [DEBUG] switch_core_state_machine.c:433 (sofia/intern...@83.88.29.19) State NEW
2013-04-23 19:56:21.304247 [WARNING] sofia.c:7722 IP 83.88.29.19 Rejected by acl "domains"
send 685 bytes to udp/[83.88.29.19]:5060 at 17:56:21.323508:
   ------------------------------------------------------------------------
   SIP/2.0 403 Forbidden
   Via: SIP/2.0/UDP 83.88.29.19:5060;branch=z9hG2bKf34b46eb;rport=5060
   From: "+448739783" <sip:+4...@83.88.29.19>;tag=as7aa17d52
   To: <sip:447...@34.12.78.3>;tag=jjKr8B4g08F9a


--
=====================================================================
Please motivate us by contributing little here: https://www.indiegogo.com/projects/astpp-open-source-voip-billing-solution
 
Documentation: https://astpp.readthedocs.io/
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.
To post to this group, send email to as...@googlegroups.com.
Visit this group at https://groups.google.com/group/astpp.
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/034f36de-a4b3-46d8-b8a0-86825127e66f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages