asterisk2billing.org
http://forum.asterisk2billing.org/

Receving wholesale calls from Cisco or other gateways
http://forum.asterisk2billing.org/viewtopic.php?f=21&t=6552
Page 1 of 2

Author:  bruce [ Tue Nov 10, 2009 4:16 pm ]
Post subject:  Receving wholesale calls from Cisco or other gateways

Hello Everyone,

What should be changed in AGI CONF to allow a specific IP address from outside to terminate calls at my A2Billing v.141 server? This is to be a wholesale operation and no SIP registration is possible as calls come from a gateway which doesn't register to Asterisk or A2Billing SIP users.

Where do I add the IP of the other side in Asterisk or A2Billing?

Thanks in advance

Author:  skiller [ Tue Nov 10, 2009 5:16 pm ]
Post subject:  Re: Receving wholesale calls from Cisco or other gateways

host=ipadress

Cheers
Skiller

Author:  bruce [ Tue Nov 10, 2009 5:48 pm ]
Post subject:  Re: Receving wholesale calls from Cisco or other gateways

Thanks for the reply skiller. Can you please elaborate as to where host=ipaddress goes? is it a conf file of Asterisk/FreePBX or is it somewhere in A2Billing? Also, how does A2Billing know to charge the appropriate customer account?

Thanks again

Author:  skiller [ Tue Nov 10, 2009 6:04 pm ]
Post subject:  Re: Receving wholesale calls from Cisco or other gateways

See my sreenshoot.

Some Asterisk knowledge is almost welcome!

Cheers
Skiller

Attachments:
A2bill.jpg
A2bill.jpg [ 135.9 KiB | Viewed 10919 times ]

Author:  bruce [ Tue Nov 10, 2009 7:08 pm ]
Post subject:  Re: Receving wholesale calls from Cisco or other gateways

Thanks. I will try this and get back with my findings.

Regards

Author:  jroper [ Tue Nov 10, 2009 7:13 pm ]
Post subject:  Re: Receving wholesale calls from Cisco or other gateways

Also add insecure = port,invite

Author:  bruce [ Wed Nov 11, 2009 7:05 pm ]
Post subject:  Re: Receving wholesale calls from Cisco or other gateways

Hi Guys,

So, I did put the outside gateway IP which terminates to my server into host=111.222.333.444 field and insecure=port,invite field. I can also register to the user using EyeBeam. However, when calls come in they don't get authorized. So, I setup an Asterisk server on the other side instead of the gateway and still I get unauthorized. This is what I put for the SIP trunk on the other side for peer details:

Note: I have turned Anonymous SIP = ON on my A2Billing server.
host=222.222.222.222
username=1838384374
secret=334834398734
type=peer

Thanks again

Author:  bruce [ Thu Nov 12, 2009 3:14 pm ]
Post subject:  Re: Receving wholesale calls from Cisco or other gateways

Hi Guys,

I am still having problems. Please have your input. I am attaching a note file of SIP debug from my A2Billing server as to why it rejects the calls.

Note: IP 111.111.111.111 is my A2Billing server. IP 222.222.222.222 is the other Asterisk server sending calls to my A2Billing with the following dialplan:

exten => s,1,Answer
exten => s,n,Dial(SIP/TestCall/14166356574)

*Where TestCall is a trunk defind in the Asterisk Server which includes user 18811 (which is defiend as a SIP user in A2Billing)

Asterisk Server 222.222.222.222 is registered with register string to server 111.111.111.111 which my A2Billing server.

Thanks a lot

Attachments:
mySIPdebug.txt [5.93 KiB]
Downloaded 605 times

Author:  bruce [ Fri Nov 13, 2009 5:15 pm ]
Post subject:  Re: Receving wholesale calls from Cisco or other gateways

Anything guys?

Author:  marc-puigdalber [ Thu Nov 19, 2009 8:47 pm ]
Post subject:  Re: Receving wholesale calls from Cisco or other gateways

Hi!!

I am using this configuration to terminate calls in wholesale.

It is working!

Cheers!

Attachments:
a2billing wholesale termination.JPG
a2billing wholesale termination.JPG [ 102.76 KiB | Viewed 10924 times ]

Author:  bruce [ Thu Nov 19, 2009 11:18 pm ]
Post subject:  Re: Receving wholesale calls from Cisco or other gateways

Many thanks for the image there.

Can you please explain the following fields:

Host
Defaultip (typo: Default IP)
IP ADDR

They confuse me.

Thanks

Author:  skiller [ Fri Nov 20, 2009 12:09 pm ]
Post subject:  Re: Receving wholesale calls from Cisco or other gateways

Code:
Can you please explain the following fields:

Host
Defaultip (typo: Default IP)
IP ADDR

They confuse me.

Thanks

This shall be the IP from your wholesale customer.

Cheers
Skiller

Author:  bruce [ Fri Nov 20, 2009 11:14 pm ]
Post subject:  Re: Receving wholesale calls from Cisco or other gateways

Thanks for the input, but I mentioned three variables and which one are you refering to?

I would like to know what all of the following relate to:

Host = ?
Defaultip = ?
IP ADDR = ?

Thanks

Author:  skiller [ Sat Nov 21, 2009 4:39 am ]
Post subject:  Re: Receving wholesale calls from Cisco or other gateways

Hi Bruce,

just to be clear. I have running 4 Asterisk (no Trixbox or something else) on different servers cause we are providing
different VoIP services.

In A2billing we are not using this values: Host = ? Defaultip = ? IP ADDR = ?

We are using the value host = IPadress in an other Asterisk for trunks or in your case
for wholesale customers. Set this value when you want to
set a trunk.

I am not sure, I guess you can set the other 2 values to:
;Defaultip = ?
;IP ADDR = ?

Cheers
Skiller

Author:  jroper [ Sat Nov 21, 2009 9:34 am ]
Post subject:  Re: Receving wholesale calls from Cisco or other gateways

From http://www.voip-info.org/wiki/view/Aste ... g+sip.conf - to which Areski has thoughtfully provided a link at the top of that screen.


Quote:
# defaultip = Dotted.Quad.IP.Addr : Default IP address of client if host=dynamic is specified. Used if client has not registered at any other IP address. Valid only for type=peer.


Quote:
# ipaddr : Dotted Quad IP address of the peer. Valid only for realtime peers.

Page 1 of 2 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/