[Freeswitch-users] CallsIN counter on gateway

David Ponzone david.ponzone at ipeva.fr
Fri Apr 22 12:33:22 MSD 2011


Leon,

Personally, as I know I can't always expect to get the right headers in the INVITE to do this matching, and also because I think it's only valid for gateways you register to, I prefer to split the incoming INVITEs based on source IP.
It's also the opportunity to normalize what you need to normalize (caller number, called number) and to inc counters, before transfering to the desired context.
Also, I would not want my dialplan to rely on the good behaviour of the remote gateway, which could decide suddenly to send crap, or a different crap than before, because the guys there decided to upgrade their S...S or they A..E priceless boxes over the weekend.

Sorry if I misunderstood your question.

David Ponzone  Direction Technique
email: david.ponzone at ipeva.fr
tel:      01 74 03 18 97
gsm:   06 66 98 76 34

Service Client IPeva
tel:      0811 46 26 26
www.ipeva.fr  -   www.ipeva-studio.com

Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.




Le 20/04/2011 à 12:59, Leon de Rooij a écrit :

> Hi all,
> 
> I have a gateway that sends me invites with the callerid in the from: header and the destination number in the to: header. I'd like these inbound invites to be matched to the proper gateway (that is used for outbound calls) so that I can use params of the gateway like context, but also so the CallsIN counter gets increased for each inbound call.
> 
> Is this at all possible ? From what I understand from sofia.c, the gateway->ib_calls is only increased when an incoming request contains a gw= param or when destination_number is prefixed by gw+, or is there another way ?
> 
> thanks & kind regards,
> 
> Leon de Rooij
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110422/51be8e20/attachment.html 


More information about the FreeSWITCH-users mailing list