[Spce-user] Same SIP peer in multiple peer groups.
Jon Bonilla (Manwe)
jbonilla at sipwise.com
Mon Dec 24 04:01:41 EST 2012
El Sun, 23 Dec 2012 21:51:57 +0100
"Joel Smith | VOZELIA" <joel at vozelia.com> escribió:
> Hi,
>
> One of our providers requires me to send them 4 digits before the
> destination number, and depending on those 4 digits we have different
> billing plans applied, I use a simple rewrite rule that does that. The
> thing is I need to add a same peer (with different rewrite rules plan
> applied) into two different peer groups. Yes, I know this is not
> supported by default.
>
> If I drop the "lcr_id_ip_addr_idx" and "lcr_id_gw_name_idx" indexes
> from "kamailio.lcr_gw" table, I'm able to insert multiple peers with
> the same IP manually directly inserting in the "voip_peer_hosts"
> table:
>
> INSERT INTO provisioning.voip_peer_hosts (group_id,name,ip,transport)
> VALUES(XX,'XXX','XXX.XXX.XXX.XXX',1);
>
> Everything works (so far..). If I try instead through the Admin-GUI I
> get a duplicate error and the peer is not added. Can anyone help me
> out with this? What else do I have to touch so the GUI lets me add
> multiple peers with the same IP?
>
>
Regarding the admin GUI, someone else will have to help you. But as a note:
Having the same peer in multiple peer groups might break the billing process.
Are you sure that the right billing profile is chosen for each call?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20121224/aa7ee534/attachment-0001.asc>
More information about the Spce-user
mailing list