[Serusers] call routing problem

Steve Blair blairs at isc.upenn.edu
Wed Jul 6 15:42:44 CEST 2005


Maybe. I'm getting lost in what you are trying to accomplish. I thought 
you wanted
an inbound call through the gateway to the asterisk box to be presented 
with a
called party number of 040600 extracted from 08450040600. If this isn't 
the case
then please ignore my suggestion :-)

-Steve

Iqbal wrote:

> but wouldnt that then be avoiding the mapping of 0845xxx to 040600 
> instead, i.e bypassing it,
>
> Steve Blair wrote:
>
>>
>> Can your gateway strip digits? If so use translation rules to strip the
>> prefix from the called party number.
>>
>> Iqbal wrote:
>>
>>> Hi
>>>
>>> I am mapping external numbers to internal ones in a db, eg 
>>> 08450040600 maps to 040600
>>>
>>> So when a call comes from pstn to 08450040600 it hits the ip phone 
>>> on 040600, all well and good.
>>>
>>> Now what I am testing is deploying asterisk for other features like 
>>> call pickup and all. I have managed to create separate contexts in 
>>> asterisk based on company ID (i.e virtual PBX) assigned from a DB.
>>>
>>> And when a call from IP phone A (company id =cid=500) calls out the 
>>> call goes via ser (thats where all IP phones are registered) to 
>>> asterisk, and then out to ser --->pstn (was gonna go out via 
>>> asterisk - pstn, but decided to keep it all within ser). This is 
>>> fine, because asterisk is in the loop.
>>>
>>> Now what I need is for inbound calls to that IP phone to also be 
>>> routed into asterisk, and then to ser and to the ipphone, that way I 
>>> pull all calls for each company into a asterisk context for all its 
>>> pbx functionality.
>>>
>>> The problem is that when 0845 is called from pstn, I cant setflag on 
>>> it, using is_user_in, since From = pstn dialing number, and To = 
>>> 4408450040600, and not 040600, any ideas on what I can match on so 
>>> that I can set the correct flag and divert to asterisk.
>>>
>>> Iqbal
>>>
>>> _______________________________________________
>>> Serusers mailing list
>>> serusers at lists.iptel.org
>>> http://lists.iptel.org/mailman/listinfo/serusers
>>
>>
>>
>>

-- 
  
ISC Network Engineering
The University of Pennsylvania
3401 Walnut Street, Suite 221A
Philadelphia, PA 19104  


voice: 215-573-8396 

       215-746-8001

fax: 215-898-9348    

sip:blairs at upenn.edu




More information about the sr-users mailing list