I’ve to configure my softswitch to support number portability with Asterisk.
This is how i am thinking.
SSW will receive the call, it will send the call to asterisks, ast will look in database and will send back the SIP 302 release cause (temporary moved) and the new modified number. SSW will re send the call according to new number.
In above scenario, between SSW and Ast* only signalling will be used, i.e. without any media.
at this point i am not sure how to send back 302 with new modified number, as far i searched, we can send back the number by changing sip header contact.
Any help would be really appreciated.
PS: Is there any better option to get this solution?
Since you are acting just as a proxy. I’m going to suggest using OpenSER/OpenSIPs for this solution as they make more sense to use in this situation than asterisk.
I am connected with TDM switch using PRI line and want to do the same, that means, when call comes from TDM then i want to do a blind transfer without answering, with a “Number changed” release cause with new number.
Look in the dahdi (zaptel) channel driver source code to see if there is an implementation of the transfer method. If there is, it might be possible; if there isn’t, it is definitely not possible.