[Amportal-users] Handling inbound and outbound calls passed

I need to handle the following scenarios:

  1. UA1 --> SIP Proxy --> Asterisk

  2. UA2 --> SIP Proxy --> Asterisk --> PSTN gateway (SIP)

I have configured a trunk to register with the SIP proxy:
trunk1
register=user1:[email protected]/DID1

UA1 calls [email protected] and the call is recognised as being to DID1. I set
up an inbound route for DID1 and route the call as appropriate. That deals
with scenario 1.

I then tried to configure another trunk to handle scenario 2:
trunk2
context=from-internal
host=SIP.Proxy
type=peer
register=user2:[email protected]

A call to PSTN1 from the UA is passed to the SIP proxy which recognises it
as PSTN call. The SIP proxy updates the From details and passes the call to
Asterisk which (I presume) puts the call into the from-internal context and
dials the outbound route appropriately.

However that setup messes up scenario 1 which now gives a 404 back to UA1. I
presume Asterisk is not differentiating between a call made to user1 from
UA1 and a call made to PSTN1 from user2. It’s just seeing a call from
SIP.Proxy and putting it into the from-internal context.

Could anyone advise how I would set up AMP/FreePBX to cope with both these
scenarios? I could setup DID2 but I don’t know how to pass the call onto the
PSTN gateway.

Thanks

Cameron


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


Amportal-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-users

Post generated using Mail2Forum (http://www.mail2forum.com)

If you have a SIP FXO gateway to PSTN, you can follow “Trixbox Without Tears” method of setting up Sipura SPA-3000. http://dumbme.voipeye.com.au/trixbox/trixbox_without_tears.htm#_Toc143175820

Or, if you are using provider’s SIP trunk, refer to http://dumbme.voipeye.com.au/trixbox/trixbox_without_tears.htm#_Toc143175772[/url]