[asterisk-users] route based from source

Nhadie nhadie at gmail.com
Wed Jan 28 23:53:40 CST 2009


Thank You Sir. How about one accountcode has multiple trunks

[sip-trunk-100-1]
....

[sip-trunk-100-2]
....

[sip-trunk-100-3]
....

i would like user 100101 to use [sip-trunk-100-1] user 100102 
[sip-trunk-100-2] and user 100103 to use [sip-trunk-100-3] for outbound 
calls. can i route it based from the source. TIA

Regards,
Nhadie

Steven J. Douglas wrote:
> Use different context for both users in sip.conf. In the context for 
> user 100300, include the context sip-trunk-100. For user 101300, include 
> the context sip-trunk-101.
> 
> Regards,
> Steve
> 
> Nhadie wrote:
>> Hi,
>>
>> Is it possible to detect where the call came from and route it out to 
>> different sip trunks.
>>
>> e.g.
>>
>> i have user 100300 when that user calls outbound i will make him use of 
>> [sip-trunk-100]
>>
>> another user, 101300 when that users calls outbound i will make him use 
>> of [sip-trunk-101]
>>
>> actually the 100 and 101 at the beginning of the username is the 
>> accountcode i used for cdr.
>>
>> hope my question was clear enough. thanks in advanced
>>
>> regards,
>> nhadie
>>
>> _______________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>    http://lists.digium.com/mailman/listinfo/asterisk-users
>>   
> 
> 
> 
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 



More information about the asterisk-users mailing list