Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Aug 11, 2020 9:43 pm
Predictive Dialer


All times are UTC




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: a2billing sip registration show wrong password.
PostPosted: Wed May 08, 2013 9:44 am 
Offline

Joined: Wed May 08, 2013 9:18 am
Posts: 10
Hello experts,

this is for the first time Installed a2billing and trying to integrate with freepbx. but when I try to make a call to my server from a soft phone (nimbuz), in asterisk cli I get the following error. Please help me what to do.

Code:
Connected to Asterisk 11.3.0 currently running on xyz(pid = 4526)
[2013-05-08 11:39:46] NOTICE[4555]: chan_sip.c:27786 handle_request_register: Registration from '<sip:[email protected]>' failed for 'y.y.y.y:abcd' - Wrong password




Please help me.

Thanks in advance.


Top
 Profile  
 
 Post subject: Re: a2billing sip registration show wrong password.
PostPosted: Thu May 09, 2013 8:11 am 
Offline

Joined: Wed May 08, 2013 9:18 am
Posts: 10
if sip debug is on then the following is shown.

Code:
<--- SIP read from UDP:y.y.y.y:13603 --->
REGISTER sip:x.x.x.x SIP/2.0
Via: SIP/2.0/UDP 192.168.0.20:5061;rport;branch=z9hG4bK770628930703_192.168.0.20
Max-Forwards: 70
To: <sip:[email protected]>
From: <sip:[email protected]>;tag=sip1366205456255
Call-ID: 770628930703_192.168.0.20
CSeq: 1 REGISTER
Contact: <sip:[email protected]:5061>
Expires: 3600
User-Agent: Nimbuzz Single
Content-Length: 0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, NOTIFY, MESSAGE

<------------->
--- (12 headers 0 lines) ---
Sending to y.y.y.y:13603 (NAT)

<--- Transmitting (NAT) to y.y.y.y:13603 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.0.20:5061;branch=z9hG4bK770628930703_192.168.0.20;received=y.y.y.y;rport=13603
From: <sip:[email protected]>;tag=sip1366205456255
To: <sip:[email protected]>;tag=as336676e0
Call-ID: 770628930703_192.168.0.20
CSeq: 1 REGISTER
Server: FPBX2.11.0rc1(11.3.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="39cabb6f"
Content-Length: 0


<------------>
Scheduling destruction of SIP dialog '770628930703_192.168.0.20' in 32000 ms (Method: REGISTER)

<--- SIP read from UDP:y.y.y.y:13603 --->
ACK sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 192.168.0.20:5061;rport;branch=z9hG4bK770628930703_192.168.0.20
Max-Forwards: 70
To: <sip:[email protected]>;tag=as336676e0
From: <sip:[email protected]>;tag=sip1366205456255
Call-ID: 770628930703_192.168.0.20
CSeq: 1 ACK
Contact: <sip:[email protected]:5061>
Expires: 3600
User-Agent: Nimbuzz Single
Content-Length: 0

<------------->
--- (11 headers 0 lines) ---

<--- SIP read from UDP:y.y.y.y:13603 --->
REGISTER sip:x.x.x.x SIP/2.0
Via: SIP/2.0/UDP 192.168.0.20:5061;rport;branch=z9hG4bK5344087869
Max-Forwards: 70
To: <sip:[email protected]>
From: <sip:[email protected]>;tag=sip1366205456255
Call-ID: 770628930703_192.168.0.20
CSeq: 2 REGISTER
Contact: <sip:[email protected]:5061>
Expires: 3600
User-Agent: Nimbuzz Single
Content-Length: 0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, NOTIFY, MESSAGE
Authorization: Digest username="111111111", realm="asterisk", nonce="39cabb6f", uri="sip:x.x.x.x", algorithm=MD5, nc=00000001, response="221eacda1b76cf11558d727040f18208"

<------------->
--- (13 headers 0 lines) ---
Sending to y.y.y.y:13603 (NAT)

<--- Transmitting (NAT) to y.y.y.y:13603 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 192.168.0.20:5061;branch=z9hG4bK5344087869;received=y.y.y.y;rport=13603
From: <sip:[email protected]>;tag=sip1366205456255
To: <sip:[email protected]>;tag=as336676e0
Call-ID: 770628930703_192.168.0.20
CSeq: 2 REGISTER
Server: FPBX2.11.0rc1(11.3.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


<------------>
[2013-05-09 10:01:31] NOTICE[5859]: chan_sip.c:27786 handle_request_register: Registration from '<sip:[email protected]>' failed for 'y.y.y.y:13603' - Wrong password
Scheduling destruction of SIP dialog '770628930703_192.168.0.20' in 32000 ms (Method: REGISTER)



Top
 Profile  
 
 Post subject: Re: a2billing sip registration show wrong password.
PostPosted: Sun May 12, 2013 12:45 pm 
Offline

Joined: Wed May 08, 2013 9:18 am
Posts: 10
no reply;

why? :(


Top
 Profile  
 
 Post subject: Re: a2billing sip registration show wrong password.
PostPosted: Sun May 12, 2013 7:14 pm 
Offline

Joined: Mon Mar 02, 2009 8:56 pm
Posts: 271
How are you integrating A2Billing and FreePBX? Are they on the same server or different servers.

Incorrect password should mean just that. A problem with the SIP user password.


Top
 Profile  
 
 Post subject: Re: a2billing sip registration show wrong password.
PostPosted: Sun May 12, 2013 7:18 pm 
Offline

Joined: Mon Mar 02, 2009 8:56 pm
Posts: 271
Also, how is this SIP username being generated?

Digest username="111111111"

Normally when you create A2Billing SIP details for an account the username is a random string of numbers.


Top
 Profile  
 
 Post subject: Re: a2billing sip registration show wrong password.
PostPosted: Mon May 13, 2013 6:56 am 
Offline

Joined: Wed May 08, 2013 9:18 am
Posts: 10
A2Billing and FreePBX are on the same server. and 1111111 is not the actual user name, its a dummy number I posted.


Top
 Profile  
 
 Post subject: Re: a2billing sip registration show wrong password.
PostPosted: Mon May 13, 2013 7:20 am 
Offline

Joined: Mon Mar 02, 2009 8:56 pm
Posts: 271
I'm not totally sure what your goal is but a possible setup is ...

FreePBX extension registered with FreePBX
A custom FreePBX trunk with a 'local' dial command to pass the call to A2Billing
Set the a2billing customer number as the 'account code' on the FreePBX extension (used for authentication)

You would pass the call between FreePBX and A2Billing using SIP if they were on different servers, but not if they are on the sme server.

(them being on the same server makes it more difficult to debug and figure out what is goin on)


Top
 Profile  
 
 Post subject: Re: a2billing sip registration show wrong password.
PostPosted: Mon May 13, 2013 8:22 am 
Offline

Joined: Wed May 08, 2013 9:18 am
Posts: 10
Thanks for the reply dear, I new to all this, and rented a server just for practice.

If I am not wrong my sip extenstions is SIP/92.


and my extenstions_custom.conf is below.

Code:
[a2billing-all-callback]
exten => _X.,1,DeadAGI(a2billing.php|1|all-callback|1) ;last parameter is the callback area code
exten => _X.,n,Hangup

[a2billing-predictivedialer]
exten => _X.,1,DeadAGI(a2billing.php|1|predictivedialer)
exten => _X.,n,Hangup

[a2billing-did]
exten => _X.,1,DeadAGI(a2billing.php|1|did)
exten => _X.,2,Hangup

[a2billing-voucher]
exten => _X.,1,DeadAGI(a2billing.php|1|voucher)
;exten => _X.,1,AGI(a2billing.php|1|voucher|1) ; will add 44 in front of the callerID for the CID authentication
exten => _X.,n,Hangup

[a2billing-sip]
exten => _X.,1,DeadAGI(a2billing.php|2)
exten => _X.,n,Hangup


Top
 Profile  
 
 Post subject: Re: a2billing sip registration show wrong password.
PostPosted: Mon May 13, 2013 8:39 am 
Offline

Joined: Mon Mar 02, 2009 8:56 pm
Posts: 271
For setting up the trunk (to pass the call from FreePBX to A2Billing) this should help - viewtopic.php?p=15787

A little bit of dial plan, plus a custom trunk in FreePBX.


Top
 Profile  
 
 Post subject: Re: a2billing sip registration show wrong password.
PostPosted: Tue May 14, 2013 6:31 am 
Offline

Joined: Wed May 08, 2013 9:18 am
Posts: 10
thanks dear, tried every thing but still getting the below error:

[2013-05-14 08:22:19] NOTICE[12489] chan_sip.c: Registration from '<sip:[email protected]>' failed for '195.211.48.5:20900' - Wrong password

my sip settings are below:

Code:
Global Settings:
----------------
  UDP Bindaddress:        0.0.0.0:5060
  TCP SIP Bindaddress:    Disabled
  TLS SIP Bindaddress:    Disabled
  Videosupport:           No
  Textsupport:            No
  Ignore SDP sess. ver.:  No
  AutoCreate Peer:        Off
  Match Auth Username:    No
  Allow unknown access:   No
  Allow subscriptions:    Yes
  Allow overlap dialing:  Yes
  Allow promisc. redir:   No
  Enable call counters:   No
  SIP domain support:     No
  Realm. auth:            No
  Our auth realm          asterisk
  Use domains as realms:  No
  Call to non-local dom.: Yes
  URI user is phone no:   No
  Always auth rejects:    Yes
  Direct RTP setup:       No
  User Agent:             FPBX-2.11.0rc1(11.3.0)
  SDP Session Name:       Asterisk PBX 11.3.0
  SDP Owner Name:         root
  Reg. context:           (not set)
  Regexten on Qualify:    No
  Trust RPID:             No
  Send RPID:              No
  Legacy userfield parse: No
  Send Diversion:         Yes
  Caller ID:              Unknown
  From: Domain:           
  Record SIP history:     Off
  Call Events:            On
  Auth. Failure Events:   Off
  T.38 support:           No
  T.38 EC mode:           Unknown
  T.38 MaxDtgrm:          -1
  SIP realtime:           Disabled
  Qualify Freq :          60000 ms
  Q.850 Reason header:    No
  Store SIP_CAUSE:        No

Network QoS Settings:
---------------------------
  IP ToS SIP:             CS3
  IP ToS RTP audio:       EF
  IP ToS RTP video:       AF41
  IP ToS RTP text:        CS0
  802.1p CoS SIP:         4
  802.1p CoS RTP audio:   5
  802.1p CoS RTP video:   6
  802.1p CoS RTP text:    5
  Jitterbuffer enabled:   No

Network Settings:
---------------------------
  SIP address remapping:  Enabled using externaddr
  Externhost:             <none>
  Externaddr:             x.x.x.x:0
  Externrefresh:          10
  Localnet:              x.x.x.0/255.255.255.0

Global Signalling Settings:
---------------------------
  Codecs:                 (gsm|ulaw|alaw)
  Codec Order:            ulaw:20,alaw:20,gsm:20
  Relax DTMF:             No
  RFC2833 Compensation:   No
  Symmetric RTP:          Yes
  Compact SIP headers:    No
  RTP Keepalive:          0 (Disabled)
  RTP Timeout:            30
  RTP Hold Timeout:       300
  MWI NOTIFY mime type:   application/simple-message-summary
  DNS SRV lookup:         No
  Pedantic SIP support:   Yes
  Reg. min duration       60 secs
  Reg. max duration:      3600 secs
  Reg. default duration:  120 secs
  Sub. min duration       60 secs
  Sub. max duration:      3600 secs
  Outbound reg. timeout:  20 secs
  Outbound reg. attempts: 0
  Notify ringing state:   Yes
    Include CID:          No
  Notify hold state:      Yes
  SIP Transfer mode:      open
  Max Call Bitrate:       384 kbps
  Auto-Framing:           No
  Outb. proxy:            <not set>
  Session Timers:         Accept
  Session Refresher:      uas
  Session Expires:        1800 secs
  Session Min-SE:         90 secs
  Timer T1:               500
  Timer T1 minimum:       100
  Timer B:                32000
  No premature media:     Yes
  Max forwards:           70

Default Settings:
-----------------
  Allowed transports:     UDP
  Outbound transport:     UDP
  Context:                from-sip-external
  Record on feature:      automon
  Record off feature:     automon
  Force rport:            Yes
  DTMF:                   rfc2833
  Qualify:                0
  Keepalive:              0
  Use ClientCode:         No
  Progress inband:        Never
  Language:               
  Tone zone:              <Not set>
  MOH Interpret:          default
  MOH Suggest:           
  Voice Mail Extension:   *97



sip_addtional.conf is below:

Code:
[92]
deny=0.0.0.0/0.0.0.0
secret=pakistan007
dtmfmode=auto
canreinvite=no
context=from-internal
host=dynamic
trustrpid=yes
sendrpid=no
type=friend
nat=yes
port=5060
qualify=yes
qualifyfreq=60
transport=udp
encryption=no
callgroup=
pickupgroup=
dial=SIP/92
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=92 <92>
callcounter=yes
faxdetect=no
cc_monitor_policy=generic

[gosiptrafficusd]
secret=alishba007
type=user
context=from-trunk

[SIPTRAFFIC]
host=77.72.169.128
username=gosiptrafficusd
secret=alishba007
type=peer
context=from-trunk-sip-SIPTRAFFIC



Top
 Profile  
 
 Post subject: Re: a2billing sip registration show wrong password.
PostPosted: Tue May 14, 2013 11:25 am 
Offline

Joined: Mon Mar 02, 2009 8:56 pm
Posts: 271
If that's your real SIP credentials you posted I'd change them immediately.

I can't really help more as I don't understand your setup.


Top
 Profile  
 
 Post subject: Re: a2billing sip registration show wrong password.
PostPosted: Wed May 15, 2013 5:35 am 
Offline

Joined: Wed May 08, 2013 9:18 am
Posts: 10
ok thanks a lot I am waiting.


Top
 Profile  
 
 Post subject: Re: a2billing sip registration show wrong password.
PostPosted: Fri May 17, 2013 6:22 am 
Offline

Joined: Wed May 08, 2013 9:18 am
Posts: 10
:( :cry:


Top
 Profile  
 
 Post subject: Re: a2billing sip registration show wrong password.
PostPosted: Mon May 20, 2013 5:40 am 
Offline

Joined: Wed May 08, 2013 9:18 am
Posts: 10
Hello friends,

Please someone help me.


Top
 Profile  
 
 Post subject: Re: a2billing sip registration show wrong password.
PostPosted: Wed May 22, 2013 6:56 am 
Offline

Joined: Wed May 08, 2013 9:18 am
Posts: 10
Sorry to say, but can any one tell me what is this forum for?

No one asking me about any thing, neither helping me.

Even none of the post I saw here solved.

What I think is that professionals want to ask them abt paid help.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Predictive Dialer


All times are UTC


Who is online

Users browsing this forum: No registered users and 10 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group