Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Sat Apr 20, 2024 3:55 am
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Wholesale setup - once more !
PostPosted: Fri Oct 09, 2009 7:23 pm 
Offline

Joined: Tue Mar 17, 2009 4:00 pm
Posts: 153
Location: Where the sun shines
Hi

I know the subject has been discussed here... but despite all the seach on the forum, I cant succeed in doing what I want.

I am setting up A2B to be a wholesale system. I will collect calls via SIP and terminate them either via DAHDI/SS7 or SIP.

I expect that users connecting to the system will be be IP-PBXes (or with a gateway).

My issues lie around caller_id propagation and remote party identification.

1. Remote party identification
I create the customer account in A2B - export as SIP friend - and program the customer pbx with the a2b USERNAME and secret code
Yet, that does not work when trying to call any number.
I need to either add host=ipofthecustomer to additional_a2billing_sip.conf
or add a fromuser=USERNAME in the customer original config (but it will not likely be asterisk boxes, so this does not seem very convenient - and I want the simplest setup for the customer)

2. Calling party propagation
in such scenario as describe in previous paragraph, the caller id is changed to the account number - however, I want to present the callerid of the original PBX !


Any help would be much appreciated !

J.


Top
 Profile  
 
 Post subject: Re: Wholesale setup - once more !
PostPosted: Fri Oct 09, 2009 9:17 pm 
Offline

Joined: Tue Mar 17, 2009 4:00 pm
Posts: 153
Location: Where the sun shines
ok - regarding 2) - calling number propagation - just had to remove the "callerid" field in the additional_a2billing_sip.conf

so I am left with my issue 1)

how can I identify a remote pbx using username/password, and no static host ?

thanks for the help,

J.


Top
 Profile  
 
 Post subject: Re: Wholesale setup - once more !
PostPosted: Sat Oct 10, 2009 12:02 pm 
Offline

Joined: Tue Mar 17, 2009 4:00 pm
Posts: 153
Location: Where the sun shines
thanks for the help,

my issue is when I set host=dynamic, I start to get "Forbidden" messages when I try to initiate a call from a remote pbx.

My understanding is that the remote extension is not known by Ast/A2b, and therefore, is rejected (unless I register first).

What puzzles me, is when I send a call to a Betamax provider for instance, they dont have my ip, I dont register, and yet, I send a correct sip messages that allows me to identified properly !

I'd like to reproduce this
J.


Top
 Profile  
 
 Post subject: Re: Wholesale setup - once more !
PostPosted: Mon Nov 02, 2009 6:12 pm 
Offline

Joined: Mon Jul 27, 2009 6:12 pm
Posts: 4
cerien:

i saw this issue as well when i recently set it up for wholesale. when using ip auth you will automatically register with the box. when using the dynamic ip try using a register string in the trunk to send the call. user:[email protected]

hope this helps.

also you will notice you can test with a client, like x-lite without any other settings. but when testing with another asterisk box you need to specify the reg string. or you can just do ip auth and wipe the user and pass form your host box.


Top
 Profile  
 
 Post subject: Re: Wholesale setup - once more !
PostPosted: Thu Jan 14, 2010 4:08 pm 
Offline

Joined: Tue Jan 12, 2010 5:39 pm
Posts: 1
Dear Team

I think there is addithional problem here!

When you send a call from the remote PBX as a wholesale client, you will found that the session opened in the remote SIP client, and if the call failed the remote PBX client will cost that call without talking.

if we apply these reules
exten => _X.,1,Answer
exten => _X.,n,Wait(1)
exten => _X.,n,DeadAGI(a2billing.php|1)
exten => _X.,n,Hangup

the call will open first(Answer)

and if you put it like that

exten => _X.,n,DeadAGI(a2billing.php|1)
exten => _X.,n,Hangup
the call will not go through

what is the solution!!


t


Top
 Profile  
 
 Post subject: Re: Wholesale setup - once more !
PostPosted: Sun Jan 31, 2010 11:48 pm 
Offline

Joined: Sat Jan 30, 2010 7:07 am
Posts: 7
cerien wrote:
1. Remote party identification
I create the customer account in A2B - export as SIP friend - and program the customer pbx with the a2b USERNAME and secret code
Yet, that does not work when trying to call any number.
I need to either add host=ipofthecustomer to additional_a2billing_sip.conf
or add a fromuser=USERNAME in the customer original config (but it will not likely be asterisk boxes, so this does not seem very convenient - and I want the simplest setup for the customer)


If I understand the issue correctly, most wholesale switches authenticate via IP and not user accounts. If you want to authenticate via IP, you need to have insecure=port,invite & and IP address of your client/provider in the host field. The username/secret should be erased. See the following post from the knowledgeable jroper:
viewtopic.php?f=21&t=6752&p=26486&hilit=wholesale+peer#p26486

Additionally, I experienced the same issue and also had to disable real-time (use_realtime = no) via the System Settings > Global List menu.


Top
 Profile  
 
 Post subject: Re: Wholesale setup - once more !
PostPosted: Mon Feb 01, 2010 8:43 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

With port,invite the username is ignored, so can be left in place, however port,invite only works with peer type.

Joe


Top
 Profile  
 
 Post subject: Re: Wholesale setup - once more !
PostPosted: Mon Feb 01, 2010 5:41 pm 
Offline

Joined: Sat Jan 30, 2010 7:07 am
Posts: 7
jroper wrote:
Hi

[...] however port,invite only works with peer type.

Joe


Interesting. Is this specific to A2? I could have sworn I was using type=friend in Asterisk with insecure=port,invite


Top
 Profile  
 
 Post subject: Re: Wholesale setup - once more !
PostPosted: Mon Feb 01, 2010 6:23 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Quote:
Interesting. Is this specific to A2? I could have sworn I was using type=friend in Asterisk with insecure=port,invite


No the settings in A2billing just populate sip.conf. I read that fact somewhere, cannot find the reference to it on voip info now though.

Joe


Top
 Profile  
 
 Post subject: Re: Wholesale setup - once more !
PostPosted: Thu Feb 04, 2010 6:51 pm 
Offline

Joined: Sat Jan 30, 2010 7:07 am
Posts: 7
Maybe this is what you mean:
http://www.voip-info.org/wiki/view/Aste ... er+vs+peer

Just confirmed it on my own system though. Running Asterisk v 1.4.26 & have a number of entries defined as a friend & authenticating them based on IP.

Try it out! =)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 
Voice Broadcast System


All times are UTC


Who is online

Users browsing this forum: No registered users and 31 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