[asterisk-users] route based from source

Steven J. Douglas stevend at moij.biz
Thu Jan 29 00:20:20 CST 2009


Hi Nhadie,

Yes, you can route based on source. In your case, the "source" is the 
context that you specify for each user. For example,

sip.conf
[100101]
...
context=sip-trunk-100-1
...

[100102]
...
context=sip-trunk-100-2
...

When a call is made for each sip user, the context is used to route the 
call. I hope this explains it.

Regards,
Steve

Nhadie wrote:
> 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
>>
>>     
>
> _______________________________________________
> -- 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