Hi all..my users are all registered with names...I want to forward their calls to my pstn gw..however those only take numerical ANI numbers. So I need to change the sip packet on the Openser server to a number (diff number per user) before forwarding that to the PSTN Gateway ..any ideas ? Would ENUM work ? THanks
El Jueves, 14 de Agosto de 2008 12:52, Ali Jawad escribió:
Hi all..my users are all registered with names...I want to forward their calls to my pstn gw..however those only take numerical ANI numbers. So I need to change the sip packet on the Openser server to a number (diff number per user) before forwarding that to the PSTN Gateway ..any ideas ? Would ENUM work ? THanks
Better and easier is to have and AVP on DB with the ANI you want to them to use, load that AVP and set a PAI header (if your gateways support it)
Hi That sounds interesting, can you provide more technical detail on how to achieve this ? Thanks
-----Original Message----- From: users-bounces@lists.kamailio.org [mailto:users-bounces@lists.kamailio.org] On Behalf Of Raúl Alexis Betancor Santana Sent: 2008-08-14 15:05 To: users@lists.kamailio.org Subject: Re: [Kamailio-Users] Translate name in RURI to number
El Jueves, 14 de Agosto de 2008 12:52, Ali Jawad escribió:
Hi all..my users are all registered with names...I want to forward their calls to my pstn gw..however those only take numerical ANI numbers. So I need to change the sip packet on the Openser server to a number (diff number per user) before forwarding that to the PSTN Gateway ..any ideas ? Would ENUM work ? THanks
Better and easier is to have and AVP on DB with the ANI you want to them to use, load that AVP and set a PAI header (if your gateways support it)
El Jueves, 14 de Agosto de 2008 13:21, Ali Jawad escribió:
Hi That sounds interesting, can you provide more technical detail on how to achieve this ? Thanks
Take a look at sipwise.com example scripts, look at how them set CLI from loading AVP from DB.
Hi Once I load the alternative number from the database, is there another avp function I could use your should I use some substr function ? Regards
-----Original Message----- From: users-bounces@lists.kamailio.org [mailto:users-bounces@lists.kamailio.org] On Behalf Of Raúl Alexis Betancor Santana Sent: 2008-08-14 15:31 To: users@lists.kamailio.org Subject: Re: [Kamailio-Users] Translate name in RURI to number
El Jueves, 14 de Agosto de 2008 13:21, Ali Jawad escribió:
Hi That sounds interesting, can you provide more technical detail on how to achieve this ? Thanks
Take a look at sipwise.com example scripts, look at how them set CLI from loading AVP from DB.
El Jueves, 14 de Agosto de 2008 13:37, Ali Jawad escribió:
Hi Once I load the alternative number from the database, is there another avp function I could use your should I use some substr function ? Regards
You could apply transformations to the AVP's, take a look at the docs about them.
http://caravan5.webcrossing.com/People/emin-gabrielyan/public/070412-SIP-rec...
Raúl Alexis Betancor Santana escreveu:
El Jueves, 14 de Agosto de 2008 12:52, Ali Jawad escribió:
Hi all..my users are all registered with names...I want to forward their calls to my pstn gw..however those only take numerical ANI numbers. So I need to change the sip packet on the Openser server to a number (diff number per user) before forwarding that to the PSTN Gateway ..any ideas ? Would ENUM work ? THanks
Better and easier is to have and AVP on DB with the ANI you want to them to use, load that AVP and set a PAI header (if your gateways support it)
Did You evaluate the alias capability? Seams to be easier and after the 'lookup("aliases")', You would got the numeric equivalent of the name. Process should go from that point on...
Edson.
El Jueves, 14 de Agosto de 2008 14:21, Edson - Listas escribió:
Raúl Alexis Betancor Santana escreveu:
El Jueves, 14 de Agosto de 2008 12:52, Ali Jawad escribió:
Hi all..my users are all registered with names...I want to forward their calls to my pstn gw..however those only take numerical ANI numbers. So I need to change the sip packet on the Openser server to a number (diff number per user) before forwarding that to the PSTN Gateway ..any ideas ? Would ENUM work ? THanks
Better and easier is to have and AVP on DB with the ANI you want to them to use, load that AVP and set a PAI header (if your gateways support it)
Did You evaluate the alias capability? Seams to be easier and after the 'lookup("aliases")', You would got the numeric equivalent of the name. Process should go from that point on...
lookup("...") is not valid for that, it will change RURI and that isn't what he wants, he wants to change the presentation on the remote UAC.
Raúl Alexis Betancor Santana escreveu:
El Jueves, 14 de Agosto de 2008 14:21, Edson - Listas escribió:
Raúl Alexis Betancor Santana escreveu:
El Jueves, 14 de Agosto de 2008 12:52, Ali Jawad escribió:
Hi all..my users are all registered with names...I want to forward their calls to my pstn gw..however those only take numerical ANI numbers. So I need to change the sip packet on the Openser server to a number (diff number per user) before forwarding that to the PSTN Gateway ..any ideas ? Would ENUM work ? THanks
Better and easier is to have and AVP on DB with the ANI you want to them to use, load that AVP and set a PAI header (if your gateways support it)
Did You evaluate the alias capability? Seams to be easier and after the 'lookup("aliases")', You would got the numeric equivalent of the name. Process should go from that point on...
lookup("...") is not valid for that, it will change RURI and that isn't what he wants, he wants to change the presentation on the remote UAC.
Raul, I didn't understand that way.... He has to change the destination (RURI) _before_ sending to a PSTN-GW, not saying that presentation has to be changed. But if the PSTN forwards also presentation info, then You are right... (és duro admitirlo, pero cuando tenes razon, tenes razon... ;) )